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 experienced VMware Architect with more than 20 years in the IT industry. Main focus is VMware vSphere, Horizon View and Hyper Converged with a deep interest into performance and architecture. Michael is VCDX 210 certified, has been rewarded with the vExpert title from 2011, Nutanix Tech Champion and a Nutanix Platform Professional.

RSS feed for comments on this post.

Leave a Reply

You must be logged in to post a comment.