News for hackers. Stuff that matters.
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by ace2358 on Saturday October 28, 2023 @03:43PM (#38052759)
Is that what is required so I can do my server.local and have it work? I’ve struggled a lot of .local stuff with various routers and port openings etc. I know that .local isn’t a standard or something and I’m meant to use something else. I’ve never known what to google to fix it though
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by JamesSwift on Saturday October 28, 2023 @05:05PM (#38053367)
.local is a standard. Its a part of mDNS (multicast DNS). Dont use it for your own DNS records.

I'm not sure what exact issue you are having, but if you are trying to resolve mDNS .local across internal networks then you need to look up mDNS reflection. If you are trying to use .local for your own DNS records then pick something else (ideally using an actual registered TLD, so e.g. if you own foo.com then you could use lan.foo.com for your internal records).

Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by Dathuil on Saturday October 28, 2023 @07:20PM (#38054401)
I ran into this issue a few months ago when I got sometime to actually setup my home server and wanted to use urls like nas.local and homeassistant.local on my home network to make things easy for my family to access.

Worked fine on windows but all the Apple devices in the house had a conniption when trying to connect. I ended up just using my personal domain replacing .local. Am currently investigating a wildecard DNS SSL cert to get HTTPS working on the LAN, but that's more out of curiosity than anything else

Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by pdntspa on Saturday October 28, 2023 @09:48PM (#38055192)
Why bother with the .local suffix? Just do the device's DNS name itself. http://servername/ should work fine, clients register themselves during the DHCP handshake and the router's DNS server records the name.
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by joshspankit on Saturday October 28, 2023 @09:57PM (#38055240)
Not always, and in many cases the OS is actually adding .local or .[your domain] automatically
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by pdntspa on Saturday October 28, 2023 @10:30PM (#38055395)
Which OS? My home network works perfectly fine this way and I have or had Windows, Linux, BSD, and Mac.
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by joshspankit on Sunday October 29, 2023 @09:22AM (#38058373)
> clients register themselves during the DHCP handshake and the router's DNS server records the name.

This is not always true as it’s a feature of the specific router and not part of the spec. To be fair, it’s a feature that’s now fairly common because of how handy it is.

Additionally; many flavours and types of operating systems transparently handle local discovery and resolution just not all of them.

For anyone looking to test this, open a terminal and ping the short domain. In the response it will show what domain it actually used. In my case ‘ping proxmox’ shows ‘proxmox.<my personal domain>.com’.

This is entirely pedantic but I think interesting if you have a mind for optimizing: The discovery/search does introduce some delay.

Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by somehnguy on Sunday October 29, 2023 @12:40AM (#38055838)
That’s very dependent of your home network setup. Many consumer grade routers use dnsmasq behind the scenes which handles that for you by default. Once you get out of the consumer grade aio routers it’s much less likely to work out of the box.
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by josephcsible on Saturday October 28, 2023 @07:45PM (#38054542)
What should you use for internal records if you don't own a domain?
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by ibbtown on Saturday October 28, 2023 @08:36PM (#38054816)
.loc instead of .local government is fine
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by josephcsible on Saturday October 28, 2023 @08:38PM (#38054829)
But that TLD isn't reserved, so couldn't someone register it as a real gTLD tomorrow?
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by joshspankit on Saturday October 28, 2023 @09:59PM (#38055250)
You can use anything that’s not already a domain (and unlikely to be one created by someone else).

josephcsibleinternaldomain.com as a spitball

Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by NewJazz on Saturday October 28, 2023 @10:47PM (#38055455)
.internal
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by dylan604 on Saturday October 28, 2023 @11:41PM (#38055666)
I've seen .test used in some guides
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by yoshamano on Sunday October 29, 2023 @01:29AM (#38056011)
Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by jaeckel on Sunday October 29, 2023 @04:11AM (#38056687)
One can also use one of the three .home .corp or .mail as of [0]. I'm not aware of an RFC that writes down that those are OK to use, but if the iCANN already pinky sweared that this is OK, what could go wrong?

[0] https://www.icann.org/resources/board-material/resolutions-2...

Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by globular-toast on Sunday October 29, 2023 @04:33AM (#38056764)
.home.arpa is meant for this. It's supposed never resolve to any internet address so even if a DNS query ends up outside your network (like if an application handles DNS itself) it won't resolve to an internet address and send data there.

You can add .home.arpa to you DNS search path (configurable with DHCP) so you don't have to type it, e.g. if you look up "nas" your computer will try "nas.home.arpa" too.

Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by nilespotter on Sunday October 29, 2023 @02:40AM (#38056298)
> .local is a standard. Its a part of mDNS (multicast DNS). Dont use it for your own DNS records.

Hell to the no. They should have camped on less valuable real estate if they wanted it exclusively. I use .local for every host on my local network and I will never stop.

In debian 12 I just change this:

hosts: files resolve [!UNAVAIL=return] dns

to this:

hosts: files dns resolve [!UNAVAIL=return]

in /etc/nsswitch.conf, and everything acts just fine.

> ideally using an actual registered TLD

wat

Re:WireHole is a combination of WireGuard, Pi-hole, and Unbound by globular-toast on Sunday October 29, 2023 @05:05AM (#38056873)
It's so convenient having a standard for mDNS, though. If someone brings a laptop or tablet or something it won't just work on your network.

Why do you even care what your local domain is? Set your search path correctly and you never even type it. .home.arpa is arguably a better choice anyway.