ipname - hostnames for all

A few day ago, I was introduced to
TLDR; You can have hostname for any IP Address!

$ dig +short



It uses the powerdns pipe backend to run a (187 lines) bash script, that strips the IP from the hostname and returns the IP. This works so well, that a few services depends on xip!

I was playing with the idea of using dnsdist to do that with the embedded Lua supports that dnsdist has. And the proof-of-concept result is about 10lines of Lua code.

The project is here: ipname on github


But not only returns you an IP Address for any (dynamic) hostname you ask, but you can also use this free & public service as a what-is-my-ip project over DNS.

$ dig +short

PS The code also validates the IPv4 Addresses!

Tag(s): ipname, dnsdist