[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

/etc/hosts ignored



Hello.
In the last few days I've been changing some configurations on my
computer. I've been using some initrd scripts to preconfigure my system
for two different environments successfully for quite some time. When I
added the third one, the problems started. It might be, that I simply
made a mistake when copying files and I cannot find it now or that
trying to install nis was responsible. The problem must be commonplace.
Now when I issue "dnsdomainname -v", I get this:
gethostname()=`sonet'
Resolving `sonet' ...
dnsdomainname: Unknown host
I also cannot ping sonet or hladilnik (see below for details). 

Here is the relevant information:
[/etc/hosts]
127.0.0.1   	localhost   sonet.utopija.linux         sonet
192.168.65.72   sonet.utopija.linux sonet
192.168.65.65   hladilnik.utopija.linux hladilnik
192.168.65.1    drugi_sonet drugi_sonet.utopija.linux
192.168.65.2    popoc	

[/etc/host.conf]
order hosts,bind
multi on

[/etc/resolv.conf]
nameserver 193.2.1.66
nameserver 193.2.1.72

[ifconfig]
eth0      Link encap:Ethernet  HWaddr 00:50:FC:37:AC:3D  
          inet addr:192.168.65.72  Bcast:192.168.65.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1

[route]
192.168.65.0    *               255.255.255.0   U     0      0        0 eth0
default         192.168.65.65   0.0.0.0         UG    0      0        0 eth0

192.168.65.65 is my local server, I connect through it to the outside
world. When I remove the default route, dnsdomainname returns the
expected output, however the outside world ceases to exist (as
expected). 

Thanks for any help,

    andrej

-- 
echo ${girl_name} > /etc/dumpdates



Reply to: