TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

mDNS, Avahi and Docker non-root containers

72 pointsby gnaneshalmost 5 years ago

7 comments

viraptoralmost 5 years ago
I made a project to solve this issue from the other end in my home network: <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;viraptor&#x2F;docker_mdns" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;viraptor&#x2F;docker_mdns</a><p>You can run the app on the host with docker containers and traefik and any service.local domain configured in labels will be announced via mdns. Services themselves don&#x27;t have to be mdns aware and will be registered&#x2F;removed as they come up&#x2F;down. It works without traefik too, but you have to include the port then as well.
pottertheotteralmost 5 years ago
This is timely! I installed Wireshark last night for fun and have been looking at traffic on my network. There&#x27;s quite a bit from mDNS, which is all new to me.
评论 #23385583 未加载
teddyhalmost 5 years ago
<a href="http:&#x2F;&#x2F;zeroconf.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;zeroconf.org&#x2F;</a><p><a href="http:&#x2F;&#x2F;www.dns-sd.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.dns-sd.org&#x2F;</a><p><a href="http:&#x2F;&#x2F;www.multicastdns.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.multicastdns.org&#x2F;</a>
giancarlostoroalmost 5 years ago
I&#x27;m a big fan of Zeroconf &#x2F; MDNS &#x2F; Avahi &#x2F; Bonjour (it has many names due to the differing packages that can be used for it across platforms). It&#x27;s a great way to make any type of service discoverable, whether it&#x27;s a web service, or what have you. Having had used something like Eureka from Netflix I think mdns is way simpler, especially on Linux, if you can install Avahi all you need to do is write an XML file to a directory and you&#x27;re broadcasting a service immediately.
评论 #23382982 未加载
评论 #23382015 未加载
评论 #23383545 未加载
L3viathanalmost 5 years ago
&gt; If it is IPv6, it&#x27;s nearly impossible to remember the address.<p>Why should that be the case? If you have 1000 nodes, you could organize your network such that node one gets prefix::00:01, node two gets prefix::00:02, node 138 gets prefix::01:38, etc.<p>There is so much space in IPv6 that you can group things more logically than was ever doable in the IPv4 world.
ac29almost 5 years ago
&quot;But still, on most of the local systems, we don&#x27;t have a DNS server and we have to remember the IP addresses of the systems.&quot;<p>Perhaps I&#x27;m misunderstanding this, but why would your systems not have access to a local DNS server? My routers respond just fine to DNS queries for &quot;hostname.local&quot;-like requests without using something like mDNS.
评论 #23386890 未加载
badrabbitalmost 5 years ago
This is such a pet-peeve for me. A noisy network service turned on by default where most users won&#x27;t use it,but all users are exposed to the network through it. (Edit: I mean in most Linux Distros not in this example, of course I have no problem with anyone intentionally doing anything to their own system)<p>In my opinion, modern systems shouldn&#x27;t run services in case something needs them, they should be dynamically loaded and unloaded (isn&#x27;t this what dbus is for??). If Chrome needs mDNS it can ask for it. If network resources are accessed at login, the login processes can request avahi to be loaded and then unloaded once they&#x27;re done. What really feels like insult to injury is how systemd was forced on unwilling users because of features like this, yet avahi,cups,etc... Just sit there idle even if you didn&#x27;t start any application that has a need for them.<p>I think maybe I am seeing it from the wrong perspective?
评论 #23387563 未加载
评论 #23386853 未加载
评论 #23387727 未加载