From owner-freebsd-stable@FreeBSD.ORG Wed Jul 6 17:55:18 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DD3516A41C for ; Wed, 6 Jul 2005 17:55:18 +0000 (GMT) (envelope-from gcoon@inch.com) Received: from util.inch.com (mx.inch.com [216.223.198.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3924943D45 for ; Wed, 6 Jul 2005 17:55:18 +0000 (GMT) (envelope-from gcoon@inch.com) Received: from kod.inch.com (kod.inch.com [216.223.192.68]) by util.inch.com (8.12.10/8.12.10/UTIL-INCH-3.0.10) with ESMTP id j66HspuG019770; Wed, 6 Jul 2005 13:54:51 -0400 (EDT) (envelope-from gcoon@inch.com) Date: Wed, 6 Jul 2005 13:54:51 -0400 (EDT) From: Gerald To: freebsd-stable@freebsd.org Message-ID: <20050706133130.H86744@kod.inch.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: gcoon@inch.com Subject: Confusing DNS issue behind FreeBSD NAT X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2005 17:55:18 -0000 Summary: 2 Freebsd -stable machines. 1 is NAT/Gateway for the other. The machine behind the gateway can not resolve DNS for anything that matters like cvsup, but dig and nslookup resolve fine. By all appearances it's ignoring /etc/resolv.conf and selectively answering programs. As a test, a windows machine was hooked up on the network and static-ly provided an IP address (problem machine is static too) and it could resolve fine on the 24.153.158.62 nameserver. These are from the machine behind the nat/gateway. Notice without specifying what server to query with dig, it ignores /etc/resolv.conf and queries localhost. What am I missing? (digs are trimmed to practical information for brevity.) Wed Jul 06 12:30:23 root@10:( /usr/src/) $ uname -a FreeBSD 10.4.10.75 5.4-STABLE FreeBSD 5.4-STABLE #1: Thu Jun 23 10:59:58 CDT 2005 root@10.4.10.75:/usr/obj/usr/src/sys/WEB-NOIPV6 i386 Wed Jul 06 12:30:28 root@10:( /usr/src/) $ cat /etc/resolve.conf nameserver 10.4.10.1 nameserver 24.153.158.62 Wed Jul 06 12:30:31 root@10:( /usr/src/) $ make update -------------------------------------------------------------- >>> Running /usr/local/bin/cvsup -------------------------------------------------------------- Parsing supfile "/usr/share/examples/cvsup/stable-supfile" Name lookup failure for "cvsup6.freebsd.org": Host name lookup failed Will retry at 12:36:00 ^C Wed Jul 06 12:30:41 root@10:( /usr/src/) $ dig cvsup6.freebsd.org ; <<>> DiG 9.3.1 <<>> cvsup6.freebsd.org ;; QUESTION SECTION: ;cvsup6.freebsd.org. IN A ;; ANSWER SECTION: cvsup6.freebsd.org. 3515 IN CNAME sanmateo.ecn.purdue.edu. sanmateo.ecn.purdue.edu. 86316 IN A 128.46.156.46 ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Jul 6 12:30:48 2005 Wed Jul 06 12:30:48 root@10:( /usr/src/) $ dig @10.4.10.1 cvsup6.freebsd.org ; <<>> DiG 9.3.1 <<>> @10.4.10.1 cvsup6.freebsd.org ;; QUESTION SECTION: ;cvsup6.freebsd.org. IN A ;; ANSWER SECTION: cvsup6.freebsd.org. 3534 IN CNAME sanmateo.ecn.purdue.edu. sanmateo.ecn.purdue.edu. 86334 IN A 128.46.156.46 ;; SERVER: 10.4.10.1#53(10.4.10.1) ;; WHEN: Wed Jul 6 12:31:01 2005 Wed Jul 06 12:31:01 root@10:( /usr/src/) $ Gerald