Max_G
Posts: 32
Joined: Sat May 28, 2016 8:27 am

[Solved] Changed ISPs, changed DNS servers in dnsmasq: no longer resolving

Fri Feb 02, 2018 8:42 am

I am running a Pi on Jessi v8
It runs dnsmasq, DHCP and Squid proxy; and was running fine, until this afternoon.
I changed ISPs.
The services works, and was tested with a Windows 10 PC with manually configured IP v4 using the new ISPs DNS server.

However, the rPi stopped resolving domain names; which makes sense, becasue it still had the DNS servers listed fomr the previous ISP.
So I changed these two lines by updating the IPs for the new ISP's DNS servers.
I restarted the rPi, however, it still does not resolve domains.

I can ping public IPs, but cannot nslookup these.

Code: Select all

nslookup www.google.com.au
Server:         127.0.0.1
Address:        127.0.0.1#53
** server can't find www.google.com.au: SERVFAIL
When I looked for the dnsmasq service with:

Code: Select all

sudo systemctl status dnsmasq.service
● dnsmasq.service
   Loaded: masked (/dev/null)
   Active: inactive (dead)

Warning: Unit file changed on disk, 'systemctl daemon-reload' recommended.
I tried to start the service with

Code: Select all

sudo /etc/init.d/dnsmasq start
which seems to execute, but the service is still not loaded.

What else could I do? I am clueless.
Last edited by Max_G on Fri Feb 02, 2018 10:33 am, edited 1 time in total.

Max_G
Posts: 32
Joined: Sat May 28, 2016 8:27 am

Re: Changed ISPs, changed DNS servers in dnsmasq: no longer resolving

Fri Feb 02, 2018 10:33 am

After mucking about for 4 hours :(
I did a sudo service --status-all
[ - ] alsa-utils
[ + ] apache2
[ + ] bind9
[ - ] bootlogs
[ - ] bootmisc.sh
[ - ] cgmanager
[ - ] cgproxy
[ - ] cgroup-bin
[ - ] checkfs.sh
[ - ] checkroot-bootclean.sh
[ - ] checkroot.sh
[ + ] console-setup
[ + ] cron
[ + ] dbus
[ - ] dnsmasq

Which shows, I am NOT using dnsmasq but bind9! Duh!
Changing the config and restarting bind and it works.
Sorry for wasting your time.

Return to “Troubleshooting”