ZebMcKayhan
Very Senior Member
One is the Avahi deamon, the other is the grep command you just executed to get this output.Is there 2 copies of it in the router or something? Thats the only way I can explain this.
One is the Avahi deamon, the other is the grep command you just executed to get this output.Is there 2 copies of it in the router or something? Thats the only way I can explain this.
I can see that, but avahi says it's running yet running with --debug flag shows an error output which means that it could not be running ... How could it be lol?One is the Avahi deamon, the other is the grep command you just executed to get this output.
Didnt we read somewere that Avahi required a specific user group? How the firmware got it running without this is beyond me, but it looks like its preventing you from starting the debug session.I can see that, but avahi says it's running yet running with --debug flag shows an error output which means that it could not be running ... How could it be lol?
I can't even get it to resolve ... so your setup is one step ahead of me already ...Didnt we read somewere that Avahi required a specific user group? How the firmware got it running without this is beyond me, but it looks like its preventing you from starting the debug session.
Like usual, the more you poking around at something you just making a bigger hole.
I had hoped someone else here at snbforum with deep knowledge of mDNS/Avahi/multicast routing would hop in and just explain all this mess.
I see different announces depending on mdns browser I use, the router announcement seems to be Alexa at RT-AX86U_PRO.local at 192.168.128.2 but if I ping on the router RT-AX86U_PRO.local it resolves to 192.168.128.1... wierd...
ip link set wgc1 multicast on
But this is the only .local address I can resolve on the router. Not my NAS or my LibreELEC devices...I can't even get it to resolve ... so your setup is one step ahead of me already ...
Sure, put it in wgserver-start hook script. Example here:Incidentally, is it possible to add a script somewhere so that this applies on every reboot?
Then we're back to where I said we were ... something deep in the firmware is set up potentially wrong. All this hacking to get avahi to work properly shouldn't be necessary ...But this is the only .local address I can resolve on the router. Not my NAS or my LibreELEC devices...
Im not convinced it should be able to lookup mDNS. My Android phone (Samsung S9) cant seem to do it natevely but with the right apps i can browse mDNS announcements. Avahi only handles announcements right?Then we're back to where I said we were ... something deep in the firmware is set up potentially wrong. All this hacking to get avahi to work properly shouldn't be necessary ...
You are right, as Ive said before I dont really know about this, but Im interersted in learning. Knowing how to get mDNS discovery over Wireguard would be useful even though there may be limitations on the client side.@ZebMcKayhan I think you are conflating Avahi (mDNS/DNS-SD) with multicast in general, which covers much more than mDNS and DNS-SD.
RT-AX58U-5468:/tmp/home/root# /opt/etc/init.d/S42avahi-daemon start
Starting avahi-daemon... done.
alex@RT-AX58U-5468:/tmp/home/root# ps | grep avahi
3697 nobody 3144 S avahi-daemon: running [RT-AX58U-5468.local]
6616 nobody 4260 S avahi-daemon: running [RT-AX58U-5468.local]
Something is 100% borked under the hood here.
You don't use a central name server (on the router or anywhere else) for mDNS, that's the whole point. The only purpose of Avahi on the router* (that I'm aware of) is to advertise its presence on the local network via mDNS. That's useful if it's running the iTunes server.So, tell me, what part of our router (if any) should intercept .local lookups and perform the nessisary lookup (or keep cache). Would this be dnsmasq? Or Avahi? Or something else? Or is this not a function really part of our router, as I dont really see it needed for something?
No I don't - lets try and keep this chat related at least. Why can others on the internet multicast over VPN/WireGuard and I can't?RT-AX58U? I believe you have too many things under the hood of this one.
Thanks, but this part I have already figured out.You don't use a central name server (on the router or anywhere else) for mDNS, that's the whole point. The only purpose of Avahi on the router* (that I'm aware of) is to advertise its presence on the local network via mDNS. That's useful if it's running the iTunes server.
* Running stock firmware
RT-AX58U-5468:/tmp/home/root# avahi-browse --all
+ br0 IPv4 Sky Q 2TB Box1582 _http._tcp local
+ br0 IPv4 Sky Q Mini9832 _http._tcp local
+ br0 IPv4 2047EDD40D8A@Sky Q 2TB Box1582 _raop._tcp local
+ br0 IPv4 783E53B1FEFA@Sky Q Mini9832 _raop._tcp local
+ br0 IPv4 Sky Q 2TB Box1582 _airplay._tcp local
+ br0 IPv4 Sky Q Mini9832 _airplay._tcp local
sendmsg() to 224.0.0.251 failed: Required key not available
sendmsg() to 224.0.0.251 failed: Required key not available
sendmsg() to 224.0.0.251 failed: Required key not available
If you're using the ping command then you are using Name Service Switch to resolve the name. The router's NSS doesn't support mDNS because there's normally nothing on the router that would need it to. So like a lot of unnecessary modules it's excluded to save space. RMerlin said in this post that he might consider including it in the future.My question was more related to why I (we) cannot seem to ping any .local address announced by other on our network on the router itself.
As you said, .local is handled very differently so some sw needs to realize this and not send the query to dns server but instead keep track of other advertized mDNS hosts (or send out the question).
Are you saying "run opkg install libnss-mdns" then?If you're using the ping command then you are using the Name Service Switch to resolve the name. The router's NSS doesn't support mDNS because there's normally nothing on the router that would need to. So like a lot of unnecessary modules it's excluded to save space. RMerlin said in this post that he might consider including it in the future.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!