I have a small LAN and a cablemodem for connecitng to the internet. As
long as I am not connected to the internet all names of my local hosts
resolve fine. Also when I type route it gives me the name of the
networks as in:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
cablemodem * 255.255.255.240 U 0 0 3
eth0
intranet * 255.255.255.0 U 0 0
2 eth1
loopback * 255.0.0.0 U 0 0
0 lo
now when I connect with ppp (My cablemodem requires me to dial out my
modem).
my /etc/hosts and /etc/networks stop working completely.
I can use the internet normally and DNS works properly but when trying
to connect
to my local hosts it gives me a resolving error. a
when I delete the default route it works normally when I add it again it
stops
working.
Also route does not
resolve the names of the networks so it looks like this;
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
max5.ds9-ca-us. * 255.255.255.255 UH 0 0 0
ppp0
10.0.0.0 * 255.255.255.240 U 0 0
4 eth0
192.168.0.0 * 255.255.255.0 U 0 0
2 eth1
127.0.0.0 * 255.0.0.0 U 0
0 0 lo
default max5.ds9-ca-us. 0.0.0.0 UG 0 0
1 ppp0
so names that can be resolved by dns are resolved but the local stuff
isn't.
I have a correctly set up /etc/hosts.conf file with
order hosts,bind
This is really strange and I've been struggling for weeks to get it to
work. Any ideas what could be going wrong with this??