Operating System - HP-UX
1847873 Members
2897 Online
104021 Solutions
New Discussion

dig or nslookup without "non-authoritative answer"

 
Ho_5
Advisor

dig or nslookup without "non-authoritative answer"

Do you know how can I do a dns query without using the DNS cache??
There is two way, one flush the cache or maybe add some extra parameters in the command dig or nslookup, but I don't know what/how??

for example:
nslookup www.cnn.com

C:\>nslookup cnn.com
Server: eo-office01.ben.nl
Address: 192.168.120.49

Non-authoritative answer:
Name: cnn.com
Addresses: 64.236.16.52, 64.236.16.84, 64.236.16.116, 64.236.24.4
64.236.24.12, 64.236.24.20, 64.236.24.28, 64.236.16.20

I don't want to get "Non-authoritative answer"
If I do sig_named restart, it will flush ALL cache, but I just want to flush www.cnn.com

Hope you can help me

Regards,

John
5 REPLIES 5
Massimo Bianchi
Honored Contributor

Re: dig or nslookup without "non-authoritative answer"

Hi,
i think that there is a little confusion between the "non authoritative answer" and the cache.

See this link for a clarification of the "non authoritative answer"

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x12dbf9beca68d511abcd0090277a778c,00.html

It only measn that is not directly depending. I think that clearing the cache will be of little use.

Massimo

Sergejs Svitnevs
Honored Contributor

Re: dig or nslookup without "non-authoritative answer"

1) Try to use BIND 9 "rndc" (or BIND 8 "ndc")utility.
"rndc flush" will flush all entries from dns cache.

In rndc ver. 9.3.0, will be able to flush individual entries by using the syntax:
rndc flushname

example: rndc flushname cnn.com

2) You can disable cache in named.conf file using "max-cache-ttl 0" option.

Regards,
Sergejs
Steven E. Protter
Exalted Contributor

Re: dig or nslookup without "non-authoritative answer"

If you control the DNS server, prior answers can help you make that message go away.

I get the message in a few contexts:

1) One of my dns servers in /etc/resolv.conf is not a valid dns server, this confuses the clients anc generates that message.
2) DNS configuration problem on the server I'm trying to look up. Not much I can do about that. I don't own the Internet

As far as cnn goes, I'd like to flush them too. Thats a political opinion though. :-)

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Wouter Jagers
Honored Contributor

Re: dig or nslookup without "non-authoritative answer"

As far as I know, you can only get an authorative answer from the DNS server which 'defines' the host you are looking for.

Your primary DNS server will return authorative answers when queried about your hosts, but to get authorative answers for cnn.com you would need to ask 'their' DNS server:

# nslookup
> server 149.174.213.151
> cnn.com

Because the whole point of DNS is to use your 'own' DNS server, you will almost never get authoritive answers. Hence, nothing to worry about !

regards
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
Wouter Jagers
Honored Contributor

Re: dig or nslookup without "non-authoritative answer"

By the way, your DNS resolves the IP's of cnn.com correctly :-)

greets
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.