Friday, June 16, 2017

funny /etc/hosts behaviour

Someone entered 2 lines in /etc/hosts, specifying the same host and 2 different IPs

cat /etc/hosts | grep myvp.pippo.net

116.8.194.82   myvp.pippo.net 
119.57.52.83   myvp.pippo.net



the funny thing is that:

nslookup myvp.pippo.net 
Name: myvp.pippo.net
Address: 119.57.52.83


but

telnet myvp.pippo.net 443
Trying 116.8.194.82...



so nslookup and telnet don't follow the same strategy to pick up the IP...

At least on Linux 2.6.18-417.el5 RHAT 5.11 Tikanga

Weird that Linux doesn't report the issue...

No comments: