Confusing DNS issue behind FreeBSD NAT

Gerald gcoon at inch.com
Wed Jul 6 17:55:18 GMT 2005


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 at 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 at 10.4.10.75:/usr/obj/usr/src/sys/WEB-NOIPV6  i386
Wed Jul 06  12:30:28
root at 10:( /usr/src/) $  cat /etc/resolve.conf 
nameserver 10.4.10.1
nameserver 24.153.158.62
Wed Jul 06  12:30:31
root at 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 at 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 at 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 at 10:( /usr/src/) $

Gerald


More information about the freebsd-stable mailing list