PDA

View Full Version : [ubuntu] Strange dns problem with 'Non-authoritative answer'



farbror_ace
August 17th, 2012, 12:23 PM
I have this scenario happening to me several times a day:

While browsing, suddenly I just get an error page from my browser saying cannot find server/site or something similar.
For a few seconds refreshing the page will just give me the same error and then suddenly it all works again.

If I hurry to a shell when i get this error and do a nslookup it will give me an 'Non-authoritative answer' but with the right IP address.

Then I just repeat the nslookup until the 'Non-authoritative answer' line disappears, then I know I can go back to my browser and everything will be ok again.

Reading about 'Non-authoritative answer' it shouldnt be a problem?
But everything dns related just stops on my machine while I get this line.

Examples:

When things are not working I get this:

claes:~/tmp$ nslookup www.vg.no
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
Name: www.vg.no
Address: 195.88.55.16
Name: www.vg.no
Address: 195.88.54.16


When things are working I get this:

claes:~/tmp$ nslookup www.vg.no
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: www.vg.no
Address: 195.88.54.16


Any ideas welcome.

sanderj
August 17th, 2012, 02:29 PM
"Non-authoritative answer:" is indeed no problem.

My advice: use 8.8.8.8 as your first nameserver

Kleenux
August 17th, 2012, 07:31 PM
Or 8.8.4.4, both are Google DNS servers. Reliable, fast.

However some people have some privacy concerns using Google DNS servers [ as Google gets aware of what your IP is resolving at any time [ except when it's in the cache of course ] ]

farbror_ace
August 20th, 2012, 09:34 AM
Im really not familiar with the new DNS system, where is the 'best practice' place to do this override? (Im using DHCP)

sanderj
August 20th, 2012, 11:09 AM
Im really not familiar with the new DNS system, where is the 'best practice' place to do this override? (Im using DHCP)

... in ... your modem! Then all devices will get that 8.8.8.8 setting via DHCP.

farbror_ace
August 20th, 2012, 01:29 PM
Yea.. you see this is a work computer and none of my windows companions has my problems.
And I highly doubt my entire organisation is going to swap DNS-provider because of me.

Edit: To clarify where in the new resolvconf setup of ubuntu 12-> is this best to do?

sanderj
August 20th, 2012, 03:17 PM
Yea.. you see this is a work computer and none of my windows companions has my problems.


Oh? If so, there is no DNS problem, I would say.

Can it be a network problem? If you keep "ping 8.8.8.8" running, do you get good responses all the time?

farbror_ace
August 20th, 2012, 04:10 PM
Yes my network is ok during the entire duration.
Eg. ping on ip-addresses will work but namebased network operations will not.

farbror_ace
August 20th, 2012, 04:17 PM
Ill read up on how to override DNS-servers in the new architecture and report back how it works.
Editing resolve.conf doesnt do it for me atm, my entries keep disappearing.

CharlesA
August 20th, 2012, 04:20 PM
Just disable DNSMASQ and go on with your life.
http://ubuntuforums.org/showpost.php?p=11923702&postcount=40

farbror_ace
September 3rd, 2012, 11:49 AM
Thank you, been running without DNSMASQ for a week now and things are back to normal.
Seems a bit odd to roll out something so central when it seems unpolished.