Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Sep 2007 11:48:46 -0700 (PDT)
From:      "Thomas D. Dean" <tomdean@speakeasy.org>
To:        freebsd-questions@freebsd.org
Subject:   DHCP and DNS
Message-ID:  <200709281848.l8SImkef001438@dv6000>

next in thread | raw e-mail | index | archive | help
I had a wired network with a FreeBSD gateway/firewall.  The gateway
died and I converted to a mixed network with a Belkin N1 wireless
router.

I have 2 windows machines and 3 FreeBSD 6.2-stable machines.

fix etc/rc.conf and reboot.

dhclient is running.  I have leases and can access the web.

All machines can ping the outside world by name and any other machine
by IP.

The windows machines can ping any other maching by name.

The FreeBSD machines can not ping any local machine by name.

What accesses the router to get DHCP info?

# cat /etc/hosts | sed '/^#/d'
::1                     localhost localhost.my.domain
127.0.0.1               localhost localhost.my.domain
# hostname
dv6000
# ping dv6000
ping: cannot resolve dv6000: Unknown host

I am missing something.  What?

tomdean


# cat /var/db/dhclient*
lease {
  interface "fxp0";
  fixed-address 192.168.2.5;
  option subnet-mask 255.255.255.0;
  option routers 192.168.2.1;
  option domain-name-servers 192.168.2.1,66.93.87.2,216.231.41.2;
  option domain-name "tddhome";
  option dhcp-lease-time 283824000;
  option dhcp-message-type 5;
  option dhcp-server-identifier 192.168.2.1;
  renew 3 2012/3/28 05:36:11;
  rebind 3 2015/8/12 02:36:11;
  expire 0 2016/9/25 17:36:11;
}

I cannot get DNS for machines inside the router
# dig dv6000
; <<>> DiG 9.3.4-P1 <<>> dv6000
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 42504
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;dv6000.                                IN      A
;; Query time: 0 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Fri Sep 28 11:37:49 2007
;; MSG SIZE  rcvd: 24

But, I can see machines outside the router
# dig mail.speakeasy.org
; <<>> DiG 9.3.4-P1 <<>> mail.speakeasy.org
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27174
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;mail.speakeasy.org.            IN      A
;; ANSWER SECTION:
mail.speakeasy.org.     60      IN      A       69.17.117.59
;; Query time: 1 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Fri Sep 28 11:46:20 2007
;; MSG SIZE  rcvd: 52



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