TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

mDNS, Avahi and Docker non-root containers

72 点作者 gnanesh将近 5 年前

7 条评论

viraptor将近 5 年前
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.
pottertheotter将近 5 年前
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 未加载
teddyh将近 5 年前
<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>
giancarlostoro将近 5 年前
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 未加载
L3viathan将近 5 年前
&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.
ac29将近 5 年前
&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 未加载
badrabbit将近 5 年前
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 未加载