From owner-freebsd-net@FreeBSD.ORG Wed Jan 21 14:03: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 9D87B106571B for ; Wed, 21 Jan 2009 14:03:34 +0000 (UTC) (envelope-from fbsdmail@dnswatch.com) Received: from fast.dnswatch.com (fast.dnswatch.com [75.160.109.234]) by mx1.freebsd.org (Postfix) with ESMTP id 47A3E8FC1F for ; Wed, 21 Jan 2009 14:03:34 +0000 (UTC) (envelope-from fbsdmail@dnswatch.com) Received: from webmail.dnswatch.com (localhost.dnswatch.com [127.0.0.1]) by fast.dnswatch.com (8.14.2/8.14.2) with ESMTP id n0LE3RFn060760 for ; Wed, 21 Jan 2009 06:03:33 -0800 (PST) (envelope-from fbsdmail@dnswatch.com) Received: from hitme.hitometer.net ([75.160.109.235]) (DNSwatchWebMail authenticated user infos) by webmail.dnswatch.com with HTTP; Wed, 21 Jan 2009 06:03:33 -0800 (PST) Message-ID: <2253907a4c901ac606155f1da61286c7.dnswclient@webmail.dnswatch.com> In-Reply-To: <20090121131151.150540@gmx.net> References: <20090121131151.150540@gmx.net> Date: Wed, 21 Jan 2009 06:03:33 -0800 (PST) From: fbsdmail@dnswatch.com To: freebsd-net@freebsd.org User-Agent: DNSwatchWebMail/1.5.2 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: 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 14:03:35 -0000 Hello, I can't help notice that in /etc/resolv.conf you have: search localdomain Yet you make no mention or definition of/for localdomain in any other place. So, you'll either need to create a CNAME for localdomain in a DNS zone file - or better; search: localhost, or local in your resolv.conf file. :) Best wishes. --Chris On Wed, January 21, 2009 5:11 am, votdev@gmx.de wrote: > 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 search localdomain > > > 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 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >