Date: Wed, 21 Jan 2009 06:03:33 -0800 (PST) From: fbsdmail@dnswatch.com To: freebsd-net@freebsd.org Subject: Re: Cannot resolve hostname; DNS problem when using DHCP Message-ID: <2253907a4c901ac606155f1da61286c7.dnswclient@webmail.dnswatch.com> In-Reply-To: <20090121131151.150540@gmx.net> References: <20090121131151.150540@gmx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2253907a4c901ac606155f1da61286c7.dnswclient>