From owner-freebsd-questions@FreeBSD.ORG Fri Sep 28 18:48:48 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 3D7E616A469 for ; Fri, 28 Sep 2007 18:48:48 +0000 (UTC) (envelope-from tomdean@speakeasy.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id 122C513C49D for ; Fri, 28 Sep 2007 18:48:48 +0000 (UTC) (envelope-from tomdean@speakeasy.org) Received: (qmail 24033 invoked from network); 28 Sep 2007 18:48:47 -0000 Received: from dsl081-173-150.sea1.dsl.speakeasy.net (HELO dv6000) ([64.81.173.150]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 28 Sep 2007 18:48:47 -0000 Received: from dv6000 (localhost [127.0.0.1]) by dv6000 (8.14.1/8.14.1) with ESMTP id l8SImkCJ001441 for ; Fri, 28 Sep 2007 11:48:46 -0700 (PDT) (envelope-from tomdean@dv6000) Received: (from tomdean@localhost) by dv6000 (8.14.1/8.14.1/Submit) id l8SImkef001438; Fri, 28 Sep 2007 11:48:46 -0700 (PDT) (envelope-from tomdean) Date: Fri, 28 Sep 2007 11:48:46 -0700 (PDT) Message-Id: <200709281848.l8SImkef001438@dv6000> From: "Thomas D. Dean" To: freebsd-questions@freebsd.org Subject: DHCP and DNS 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: Fri, 28 Sep 2007 18:48:48 -0000 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