bonjour
bonjour copied to clipboard
Publish foreign IP address
My use case is that I need to publish an IP address under some domain name. It seems that when not publishing something running on localhost I only have the option to specify a foreign host name which I can publish under some different name but there is no way to publish a foreign IP under a domain name.
I'm not even publishing a new service in the normal sense, just want to create an artifical DNS record for some IP.
I can best describe this situation by showing how we are currently implementing it using avahi and dns-sd:
- avahi-publish -a myservice.local 172.12.0.4
- dns-sd -P myservice _http._tcp "" 1111 myservice.local 172.12.0.4
You can see that dns-sd is not that friendly to publishing this as I have to specify quite a few unecessary parameters but it does get the job done.
What do you think, can bonjour
be used or extended to support this? I would be glad to help out if it some relatively simple modification. Using bonjour
would give us a nice platform independent way instead of having to rely on platform specific command line apis.