Local domain with Bind

Nicholas Wieland nicholas.wieland at gmail.com
Wed Aug 15 03:10:10 PDT 2007


Il giorno 15/ago/07, alle ore 09:01, Derek Ragona ha scritto:

> At 06:44 PM 8/14/2007, Nicholas Wieland wrote:
>
> This looks like the DNS settings on your other server,  
> chienandalusia (192.168.0.3), is not setup correctly.  Check /etc/ 
> resolv.conf on this server, and be sure the first nameserver is:
> nameserver      192.168.0.2
>
> In fact on this server you should have only that entry, as your  
> server at 192.168.0.2 should forward any other unknown DNS requests  
> upstream to the forwarders.

Hi Derek, thanks for your answer.

ngw at chienandalusia ~$ cat /etc/resolv.conf
nameserver 192.168.0.2

Logs for a request to my local domain done with my Apple notebook:

Aug 15 12:06:00 luna named[667]: 15-Aug-2007 12:06:00.201 client:  
debug 3: client 192.168.0.3#49376: send
Aug 15 12:06:00 luna named[667]: 15-Aug-2007 12:06:00.201 client:  
debug 3: client 192.168.0.3#49376: sendto
Aug 15 12:06:00 luna named[667]: 15-Aug-2007 12:06:00.201 client:  
debug 3: client 192.168.0.3#49376: senddone
Aug 15 12:06:00 luna named[667]: 15-Aug-2007 12:06:00.201 client:  
debug 3: client 192.168.0.3#49376: next
Aug 15 12:06:00 luna named[667]: 15-Aug-2007 12:06:00.201 client:  
debug 3: client 192.168.0.3#49376: endrequest
Aug 15 12:06:00 luna named[667]: 15-Aug-2007 12:06:00.201 resolver:  
debug 3: fctx 0x8220e00(www.apple.com.akadns.net/A'): doshutdown
Aug 15 12:06:00 luna named[667]: 15-Aug-2007 12:06:00.201 resolver:  
debug 3: fctx 0x8220e00(www.apple.com.akadns.net/A'): stopeverything
Aug 15 12:06:00 luna named[667]: 15-Aug-2007 12:06:00.201 resolver:  
debug 3: fctx 0x8220e00(www.apple.com.akadns.net/A'): cancelqueries
Aug 15 12:06:00 luna named[667]: 15-Aug-2007 12:06:00.201 resolver:  
debug 3: fctx 0x8220e00(www.apple.com.akadns.net/A'): destroy

Forwarding works like a charme, so actually my client connects to  
bind and in case of an external domain it is served. If the domain is  
my local one no chance.
Even more weird:

luna# ping hg.subbacultcha.local
PING subbacultcha.local (192.168.0.2): 56 data bytes
64 bytes from 192.168.0.2: icmp_seq=0 ttl=64 time=0.041 ms
64 bytes from 192.168.0.2: icmp_seq=1 ttl=64 time=0.033 ms

Actually I think it's Bind refusing connections from the outside, but  
pretending to always forward.
I can't see the mistake in my configuration though.

TIA,
   ngw

-- 
Nicholas Wieland
nicholas.wieland at gmail.com





More information about the freebsd-questions mailing list