From owner-freebsd-questions@FreeBSD.ORG Wed Aug 15 13:23:59 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F3C916A417 for ; Wed, 15 Aug 2007 13:23:59 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 455F613C483 for ; Wed, 15 Aug 2007 13:23:59 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.12.11) with ESMTP id l7FDNppl076366; Wed, 15 Aug 2007 08:23:52 -0500 (CDT) Message-Id: <6.0.0.22.2.20070815081214.02698e18@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Wed, 15 Aug 2007 08:23:23 -0500 To: Nicholas Wieland From: Derek Ragona In-Reply-To: <3537FB4C-1B89-4019-A22D-DB20FA5A033C@gmail.com> References: <41FB0507-8216-416A-86FB-F3A1CE56D753@gmail.com> <6.0.0.22.2.20070815015421.02690b68@mail.computinginnovations.com> <3537FB4C-1B89-4019-A22D-DB20FA5A033C@gmail.com> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Local domain with Bind X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2007 13:23:59 -0000 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@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 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.