cunnie / sslip.io

Golang-based DNS server which maps DNS records with embedded IP addresses to those addresses.
Apache License 2.0
646 stars 77 forks source link

change server name returned by dns querie #33

Closed avivsalman closed 6 months ago

avivsalman commented 10 months ago

Hello,

i am tring to use this repository and deploy my own server, and when i query for some record i always get the "sslip.io" in the dns query reponse, how can i change it to my custom domain?

image

Thanks, Aviv

cunnie commented 6 months ago

hi @avivsalman : Yup, I hard-coded the reverse-lookup: https://github.com/cunnie/sslip.io/blob/2c8a9c84a5344e0f0da60f6d8bb60f95f0290caa/src/sslip.io-dns-server/xip/xip.go#L830-L829

If you want to change it, probably introduce a new flag, -reverse-domain=jammy.nano.io; I'm willing to review PRs.

By the way, I have a machine whose hostname is "jammy.nono.io", so when I saw your hostnames I did a double-take.