From owner-freebsd-net@FreeBSD.ORG Wed Jan 21 13:38:34 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F8C310658B5 for ; Wed, 21 Jan 2009 13:38:34 +0000 (UTC) (envelope-from votdev@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 88D668FC14 for ; Wed, 21 Jan 2009 13:38:33 +0000 (UTC) (envelope-from votdev@gmx.de) Received: (qmail 15618 invoked by uid 0); 21 Jan 2009 13:11:51 -0000 Received: from 85.93.64.96 by www047.gmx.net with HTTP; Wed, 21 Jan 2009 14:11:50 +0100 (CET) Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="iso-8859-1" Date: Wed, 21 Jan 2009 14:11:51 +0100 From: votdev@gmx.de Message-ID: <20090121131151.150540@gmx.net> MIME-Version: 1.0 To: freebsd-net@freebsd.org X-Authenticated: #1412882 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1/PXFlDbUrPQHctdKmV/FHlnYhj58l78isyCx03Mx vXIhtX3KCXkxhOrJvgNrTcxa703bdItFfpjw== X-GMX-UID: LyhCfbt9TiE+Y2HucmRwpNp9ZUVSRJeF X-FuHaFi: 0.6 Subject: Cannot resolve hostname; DNS problem when using DHCP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2009 13:38:36 -0000 Hello, i have a strange DNS problem. If i use DHCP i'm not able to ping myself using the hostname (and hostname+domain). The strange thing is that i can't reproduce this on my 'real' system (with Fritzbox router) but in a VM (VMWare Player). Also some FreeNAS users have the same problem with 'real' hardware, too. I can ping the VM from the host system without problems using the VM hostname 'freenasl.local', so there is no problem with the internal VMWare DNS server. Below i've listed everything i think it's necessary to find out what's wrong. Can anyone give me some hints or tipps? Maybe i'm totally blind. Regards Volker freenas:~# hostname freenas.local freenas:~# cat /etc/resolv.conf search localdomain nameserver 172.16.194.2 freenas:~# cat /etc/hosts ::1 localhost localhost.local 127.0.0.1 localhost localhost.local freenas:~# netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 172.16.194.2 UGS 0 0 em0 localhost localhost UH 0 10 lo0 freenas:~# cat /etc/hosts.allow ALL : ALL : allow freenas:~# cat /etc/nsswitch.conf group: compat group_compat: nis hosts: files dns networks: files passwd: compat passwd_compat: nis shells: files services: compat services_compat: nis protocols: files rpc: files freenas:~# ping freenas ping: cannot resolve freenas: Host name lookup failure freenas:~# ping freenas.local ping: cannot resolve freenas.local: Unknown host -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHNXCQQRVm5zo0XcQRArr0AJsG4kOOYIJZq3JFLFYPzI15Qb3EhwCeN8IY Cegr732xUv0FcHCaEGVUePQ= =7wNc -----END PGP SIGNATURE----- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger