Re: Cannot resolve localhost

2013-02-14 Thread Rick Miller
Does the 'hosts' line in the nsswitch.conf direct the resolver to try 'files' before 'dns'? On 2/14/13, Martin Pola martin.p...@kottnet.net wrote: Hi, I'm trying to get my FreeBSD system to resolve localhost into 127.0.0.1, but unfortunately it doesn't work. It appears the resolver is never

Re: Cannot resolve localhost

2013-02-14 Thread Matthew Seaman
On 14/02/2013 22:35, Martin Pola wrote: I'm trying to get my FreeBSD system to resolve localhost into 127.0.0.1, but unfortunately it doesn't work. It appears the resolver is never reading from /etc/hosts, where I have this line: 127.0.0.1 localhost Here's a sample output of what I get when

Re: Cannot resolve localhost

2013-02-14 Thread Erich Dollansky
Hi, On Thu, 14 Feb 2013 23:35:12 +0100 Martin Pola martin.p...@kottnet.net wrote: I'm trying to get my FreeBSD system to resolve localhost into 127.0.0.1, but unfortunately it doesn't work. It appears the resolver is never reading from /etc/hosts, where I have this line: 127.0.0.1 localhost

Re: cannot resolve localhost

2003-05-29 Thread Roberto Nunnari
I have nsswitch.conf in place -bash-2.05b# cat /etc/nsswitch.conf hosts: files dns and removed host.conf and rebooted the machine. rc.network recreated correctly host.conf from nsswitch.conf as: -bash-2.05b# cat /etc/host.conf # Auto-generated from nsswitch.conf, do not edit hosts bind but the