Did you try the line hosts:...... on /etc/nsswitch.conf?? it shold look something like this : hosts: files dns
On Fri, 27 Aug 1999, Fredrik Ax wrote: > > My problem is that the /etc/hosts files doesn't seem to be used > when resolving hostnames. > > I'm runing Debian 2.1 r2 with > Linux kernel 2.2.11 (downloaded recompiled source) > glibc 2.0.7 (libc6_2.0.7.19981211-6.deb) > libresolv 2.0.7 (libc6_2.0.7.19981211-6.deb) > > > Here are some config files. Things whithin <> of course > have real values in the files. > > --- /etc/resolv.conf ----------------------------------- > nameserver 127.0.0.1 > search <domain1.net> <domain2.net> <domain3.net> > nameserver <ipaddress> > nameserver <ipaddress> > nameserver <ipaddress> > > > --- /etc/host.conf ------------------------------------- > order hosts,bind > multi on > > > > --- /etc/hosts ----------------------------------------- > 127.0.0.1 localhost > <ipaddress1> <hostname1.domain1.net> <hostname1> > <ipaddress2> <hostname2.domain2.net> <hostname2> > <ipaddress3> <hostname3> > > ... and so on. > > I have a working nameserver and no problems with DNS registered > names. But for hosts not in the DNS but only in the /etc/hosts > file the names can't be resolved. > > Ex. (% == shell prompt): > > % ping <ipaddress3> > PING <ipaddress3> (<ipaddress3>): 56 data bytes > 64 bytes from <ipaddress3>: icmp_seq=1 ttl=64 time=1.3 ms > 64 bytes from <ipaddress3>: icmp_seq=2 ttl=64 time=0.6 ms > ... > > % ping <hostname3> > ping: unknown host <hostname3> > > > Any suggestions? > > TIA > Fredrik > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null >