On Mon, 26 Feb 1996, Peter Tobias wrote: > This normally happens when you use the localhost entry for the hostname. > To fix it just add the dummy device, assign an IP number to it (e.g. > one of the 192.168.x.x numbers) and add an entry with your hostname > to /etc/hosts. > > Example: > 127.0.0.1 localhost > 192.168.20.1 myhostname.foo.bar myhostname
A better solution is to add these lines to the file, /etc/ppp/ip-up, assuming you use ppp. --cut-- # # edit /etc/hosts # myip=$4 myname=`nslookup $myip | sed -n 's/Name: *\(.*\)/\1/p'` sed -e "/femto/s/.*/$myip $myname femto/" /etc/hosts > /tmp/hosts mv -f /tmp/hosts /etc/hosts chmod +r /etc/hosts --cut-- Note that the big space on the sed line is a tab, but it's just for readability. Then put your machine's name on the /etc/hosts the first time with a bogus address. Don't put it in the loopback line; and replace femto aboce with whatever your machine's name is. My /etc/hosts looks like this for example: 127.0.0.1 loopback localhost 128.83.111.163 slip-33-3.ots.utexas.edu femto 128.83.204.246 telesys1.ots.utexas.edu telesys1 telesys 128.83.185.40 ns1.utexas.edu 128.83.185.41 ns2.utexas.edu Guy

