SLP DA giving out services with 127.0.0.1 and SLP DA status show up as NORSP in slpinfo

I noticed with a tool called slpsnoop, that service advertise them self with a ip adress 127.0.0.1

When I look for example at /etc/slp.reg.d/ntp.reg I see the following registration:

service:ntp://$HOSTNAME:123,en,65535

When I do a echo $HOSTNAME I get the servername back. But when I ping the server name I ping 127.0.0.1. So I looked at the /etc/hosts file and there I see the following record:

127.0.0.1   localhost    servername    servername.dnsname.nl

192.168.0.1  servername    servername.dnsname.nl

So the first record DNS finds is 127.0.0.1 and that is what get advertised. If you remove the part after localhost everything works fine!

Update 2008-09-03:

It seems that a customized template for Vmware ESX alters the /etc/hosts file for 172.0.0.1. So watch out!

About Michael
Michael Wilmsen is a VMware training/consultant (no specific order) with more than 15 years in the IT industry. Main focus is VMware vSphere, Horizon View and Site Recovery Manager with a deepdive to performance. Michael is VCDX 210, VCAP 4/5 certified, has been rewarded with the vExpert title from 2011, is a PernixPro, Nutanix Tech Champion and a Nutanix Platform Professional.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

You must be logged in to post a comment.