You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, I apologise that this is a really basic question. I have two machines on the same network. On machine 1 I have this script, which just listens for all queries:
varmdns=require('multicast-dns')()mdns.on('query',function(query){console.log('got a query packet:',query)});
On the other machine I have this script, which makes a query every second:
varmdns=require('multicast-dns')()mdns.on('response',function(response){console.log('got a response packet:',response)})setInterval(function(){mdns.query({questions:[{name: 'myservice.local',type: 'A'}]})},1000);
I was expecting the query from machine 2 to be received at machine 1 but there's no output at all from machine 1. I can see the DNS packets being sent from machine 2 in Wireshark:
Any pointers on why this doesn't work as I was expecting?
The text was updated successfully, but these errors were encountered:
Firstly, I apologise that this is a really basic question. I have two machines on the same network. On machine 1 I have this script, which just listens for all queries:
On the other machine I have this script, which makes a query every second:
I was expecting the query from machine 2 to be received at machine 1 but there's no output at all from machine 1. I can see the DNS packets being sent from machine 2 in Wireshark:
Any pointers on why this doesn't work as I was expecting?
The text was updated successfully, but these errors were encountered: