On Mon, Mar 25, 2002 at 10:40:49AM +1100, Ben Donohue wrote: > hi slugs, > > I've setup a slave name server on debain. > I'm just trying to figure how you *KNOW* it's working. > I know you can dump the cache, ndc dumpdb and there are lots of entries etc. > fine. > > from the secondary DNS box (IP = 172.31.8.12) > when I do a... > nslookup www.mazda.com > it replies... > Server: xxx.xxx.com.au > Address: 172.31.32.21 (This is the Primary DNS) > > Non-authoritative answer: > Name: www.mazda.com > Address: 203.136.225.116 > > All OK there.
Not really; nslookup is _using_ 172.31.8.12 to perform its lookups (recursively). > however then I do a > nslookup www.mazda.com 172.31.8.12 (this is the new secondary DNS) > it replies... > *** Can't find server name for address 172.31.8.12: Non-existent host/domain > *** Default servers are not available > > Why isn't it looking to its own cache for this resolution? Quite possibly it isn't authoritative. I tend to find the `dig' command simpler to use; try $ dig www.mazda.com then $ dig www.mazda.com @172.31.8.12 The @<ip> causes to dig to only query that particular server. You'll want to look for the response header section and see that there is no 'NXDOMAIN' or `NOHOST'. It should be 'NOERROR' if all is well and return the data you expect. Anand -- `` We are shaped by our thoughts, we become what we think. When the mind is pure, joy follows like a shadow that never leaves. '' -- Buddha, The Dhammapada -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
