Copy /etc/resolv.conf with some other name
# cp /etc/resolv.conf /etc/resolv1.conf
Edit dnsmasq configuration. Define new file:
# vi /etc/dnsmasq.conf
…
> resolv-file=/etc/resolv1.conf
Change in NetworkManager (or some other) or resolv.conf directry, if not use some manager, to your local nameserver 127.0.0.1
Start dnsmasq
systemctl start dnsmasq
Check result starting
systemctl status dnsmasq
Enable autoload
systemctl enable dnsmasq
You can redirect some domains to other adress by dnsmasq
> address=/loc/127.0.0.1
All domains *.loc will be redirected to local machine.
# cp /etc/resolv.conf /etc/resolv1.conf
Edit dnsmasq configuration. Define new file:
# vi /etc/dnsmasq.conf
…
> resolv-file=/etc/resolv1.conf
Change in NetworkManager (or some other) or resolv.conf directry, if not use some manager, to your local nameserver 127.0.0.1
Start dnsmasq
systemctl start dnsmasq
Check result starting
systemctl status dnsmasq
Enable autoload
systemctl enable dnsmasq
You can redirect some domains to other adress by dnsmasq
> address=/loc/127.0.0.1
All domains *.loc will be redirected to local machine.
Комментариев нет:
Отправить комментарий