Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jul 2005 13:54:51 -0400 (EDT)
From:      Gerald <gcoon@inch.com>
To:        freebsd-stable@freebsd.org
Cc:        gcoon@inch.com
Subject:   Confusing DNS issue behind FreeBSD NAT
Message-ID:  <20050706133130.H86744@kod.inch.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050706133130.H86744>