Local domain with Bind

Derek Ragona derek at computinginnovations.com
Wed Aug 15 06:23:59 PDT 2007


At 05:10 AM 8/15/2007, Nicholas Wieland wrote:
>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(<http://www.apple.com.akadns.net/A'>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(<http://www.apple.com.akadns.net/A'>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(<http://www.apple.com.akadns.net/A'>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(<http://www.apple.com.akadns.net/A'>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

I don't see anything in the bind configuration file either, AND it all 
works on the DNS server and your mac so we know that the BIND configuration 
is fine.

Check on the .3 server /etc/nsswitch.conf

be sure you have a line like:
hosts: files dns

in this file.

If that doesn't fix it, check your gateway setting, netmask, and other 
settings on your ethernet interface.

         -Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



More information about the freebsd-questions mailing list