daithi Posted September 16, 2022 Share Posted September 16, 2022 I used to access my old router at dlink.local - I thought nothing of it because I figured my router just handled it and intercepted the url. I've recently started using unraid and the url tower.local just worked out of the box with no input from me. How does this happen? Is it possible to set my Docker containers up like that as well? Sonarr.local or krusader.local for example. Quote Link to comment
Solution John_M Posted September 16, 2022 Solution Share Posted September 16, 2022 The .local domain is a special case. It's a pseudo-top level domain that has been set aside for use by the multicast DNS (mDNS) service, originally developed by Apple as Rendezvous and more recently known as Bonjour, with the aim to provide "zero-configuration networking". Apple released the protocol to the open source community in a series of RFCs and it has been adopted and incorporated into other operating systems, e.g. the avahi daemon provides mDNS for Linux. Instead of querying a centralised DNS server, mDNS requests are multicast to all hosts on the local network and if an mDNS-supporting host recognises its own name it responds with its IP address, using a similar data structure to that used by a conventional DNS server. For a particular container to support mDNS it would need to be built with avahi included. 3 Quote Link to comment
Evedoescomputerstuff Posted September 17, 2022 Share Posted September 17, 2022 7 hours ago, John_M said: The .local domain is a special case. It's a pseudo-top level domain that has been set aside for use by the multicast DNS (mDNS) service, originally developed by Apple as Rendezvous and more recently known as Bonjour, with the aim to provide "zero-configuration networking". Apple released the protocol to the open source community in a series of RFCs and it has been adopted and incorporated into other operating systems, e.g. the avahi daemon provides mDNS for Linux. Instead of querying a centralised DNS server, mDNS requests are multicast to all hosts on the local network and if an mDNS-supporting host recognises its own name it responds with its IP address, using a similar data structure to that used by a conventional DNS server. For a particular container to support mDNS it would need to be built with avahi included. AVAHI is harder than it seems to get running on some containers, at least with the tiny bit I played with it. Sucks but what can you do. Sort of related, a docker that can essentially act as an internal reverse proxy that supports broadcasting a bunch of .local mDNS domains and then routing said requests would be absurdly useful. Does that exist? Quote Link to comment
BRiT Posted September 17, 2022 Share Posted September 17, 2022 13 hours ago, daithi said: Is it possible to set my Docker containers up like that as well? Sonarr.local or krusader.local for example. It's possible through a slightly different means. Use IPVLAN for those dockers so they each have a unique IP. Setup dnsmasq on your router. Configure the hostname.local as entries for the specified IPs. I have emby.local, transmission.local, eggdrop.local, and speedtest.local pointing to the respective IP addresses. Quote Link to comment
daithi Posted September 17, 2022 Author Share Posted September 17, 2022 20 hours ago, John_M said: The .local domain is a special case. It's a pseudo-top level domain that has been set aside for use by the multicast DNS (mDNS) service, originally developed by Apple as Rendezvous and more recently known as Bonjour, with the aim to provide "zero-configuration networking". Apple released the protocol to the open source community in a series of RFCs and it has been adopted and incorporated into other operating systems, e.g. the avahi daemon provides mDNS for Linux. Instead of querying a centralised DNS server, mDNS requests are multicast to all hosts on the local network and if an mDNS-supporting host recognises its own name it responds with its IP address, using a similar data structure to that used by a conventional DNS server. For a particular container to support mDNS it would need to be built with avahi included. Thanks that's interesting. Time for a dive down a rabbit hole 8 hours ago, BRiT said: It's possible through a slightly different means. Use IPVLAN for those dockers so they each have a unique IP. Setup dnsmasq on your router. Configure the hostname.local as entries for the specified IPs. I have emby.local, transmission.local, eggdrop.local, and speedtest.local pointing to the respective IP addresses. I might try something like this. I really just want it for the ease of my password manager! Having everything pointed to 192.168...... works but it's cumbersome. Quote Link to comment
daithi Posted September 25, 2022 Author Share Posted September 25, 2022 Not sure if anyone will read this but I just discovered that in BitWarden if you change the Match Detection of a URI to Host instead of Default Match Detection it won't suggest passwords that don't match the trailing Port. That's good enough for me that I don't need to mess around with anything else. Quote Link to comment
OverripeDuck Posted December 2, 2022 Share Posted December 2, 2022 On 9/16/2022 at 9:01 PM, Evedoescomputerstuff said: AVAHI is harder than it seems to get running on some containers, at least with the tiny bit I played with it. Sucks but what can you do. Sort of related, a docker that can essentially act as an internal reverse proxy that supports broadcasting a bunch of .local mDNS domains and then routing said requests would be absurdly useful. Does that exist? I'm setting up something similar to this right now. I'm planning to use nginx to route my internal traffic to my dockers' ports based on which name is used to access the server. I've set up Avahi to broadcast the mDNS addresses all pointing to the docker host. Right now, I'm just having issues getting Windows 10 to resolve the mDNS addresses. Quote Link to comment
biaspoint Posted January 12, 2023 Share Posted January 12, 2023 (edited) On 12/1/2022 at 7:57 PM, OverripeDuck said: I'm setting up something similar to this right now. I'm planning to use nginx to route my internal traffic to my dockers' ports based on which name is used to access the server. I've set up Avahi to broadcast the mDNS addresses all pointing to the docker host. Right now, I'm just having issues getting Windows 10 to resolve the mDNS addresses. FYI, Windows will only resolve mDNS without subdomains, wont do 2 dots... so foo.bar is ok, notso.foo.bar is no good on windows. ref: https://andrewdupont.net/2022/01/27/using-mdns-aliases-within-your-home-network/ Edited January 12, 2023 by biaspoint grammar Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.