Live data from Hacker News

Ask HN: Local hostnames without root/admin

news.ycombinator.com

11–20 of 35 posts

Re: Ask HN: Local hostnames without root/admin

#11
post #2

I want to note that I mean to use such internal hostnames to reach services inside a VPN. If solutions such as IPsec or OpenVPN can somehow push and manifest host->IP correlations for the OS, as an alternative to pushing an additional DNS resolver living inside the VPN, that would also be a viable solution.

Tailscale is very easy to set up and provides resolvable hostnames (at an OS level) for all connected devices.

Re: Ask HN: Local hostnames without root/admin

#13

1. Buy domain for your service 2. Make wildcard record to point to 127.0.0.1 3. User can apply any.thing.here.yourcompanyinternal.xxx

https://en.wikipedia.org/wiki/DNS_rebinding protection will stop this from working "hopefully" ;)

but `--host-resolver-rules` may work, https://chromium.googlesource.com/chromium/src/+/main/net/ba... @terry_hc

Re: Ask HN: Local hostnames without root/admin

#14

1. Buy domain for your service 2. Make wildcard record to point to 127.0.0.1 3. User can apply any.thing.here.yourcompanyinternal.xxx

https://en.wikipedia.org/wiki/DNS_rebinding protection will stop this from working "hopefully" ;) but `--host-resolver-rules` may work, https://chromium.googlesource.com/chromium/src/+/main/net/ba... @terry_hc

> https://en.wikipedia.org/wiki/DNS_rebinding protection will stop this from working "hopefully" ;)

Does anyone actually ban 127 resolution to stop dns rebinding? I feel like that would probably break a lot of things while not actually preventing dns rebinding.

Re: Ask HN: Local hostnames without root/admin

#15
post #14

Earlier quoted context omitted.

https://en.wikipedia.org/wiki/DNS_rebinding protection will stop this from working "hopefully" ;) but `--host-resolver-rules` may work, https://chromium.googlesource.com/chromium/src/+/main/net/ba... @terry_hc

> https://en.wikipedia.org/wiki/DNS_rebinding protection will stop this from working "hopefully" ;) Does anyone actually ban 127 resolution to stop dns rebinding? I feel like that would probably break a lot of things while not actually preventing dns rebinding.

https://docs.google.com/document/d/1QQkqehw8umtAgz5z0um7THx-... is in Beta channel now

Re: Ask HN: Local hostnames without root/admin

#16
post #12

https://nip.io/

Or if you need records other than A/AAAA, like MX for delivering email: https://anyz.one

e.g. 10.2.3.4.anyz.one will refer the recursive resolver to query 10.2.3.4 for the answer to the query. You can also buy a domain and configure it to do that, but this is quicker

Disclosure: I wrote anyzone

Re: Ask HN: Local hostnames without root/admin

#18
post #11
post #2

I want to note that I mean to use such internal hostnames to reach services inside a VPN. If solutions such as IPsec or OpenVPN can somehow push and manifest host->IP correlations for the OS, as an alternative to pushing an additional DNS resolver living inside the VPN, that would also be a viable solution.

Tailscale is very easy to set up and provides resolvable hostnames (at an OS level) for all connected devices.

[deleted]

Re: Ask HN: Local hostnames without root/admin

#19
post #11
post #2

I want to note that I mean to use such internal hostnames to reach services inside a VPN. If solutions such as IPsec or OpenVPN can somehow push and manifest host->IP correlations for the OS, as an alternative to pushing an additional DNS resolver living inside the VPN, that would also be a viable solution.

Tailscale is very easy to set up and provides resolvable hostnames (at an OS level) for all connected devices.

Tailscale requires superuser/admin

Re: Ask HN: Local hostnames without root/admin

#20
post #8

1. Buy domain for your service 2. Make wildcard record to point to 127.0.0.1 3. User can apply any.thing.here.yourcompanyinternal.xxx

_Someone_ must have already done this, right?

Would it be a problem to disclose it, in terms of it getting shutdown?
Post reply on HN