diff options
-rwxr-xr-x | mdns-resolver | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdns-resolver b/mdns-resolver index cbaf35b..78d0169 100755 --- a/mdns-resolver +++ b/mdns-resolver @@ -80,7 +80,7 @@ while run do begin if q.qType.to_i == Net::DNS::A addresses = Set.new - Socket.getaddrinfo(host+'.local', nil, :INET).each { |addr| addresses << addr[3] } + Socket.getaddrinfo(host+'.local.', nil, :INET).each { |addr| addresses << addr[3] } addresses.each do |addr| packet.answer << Net::DNS::RR::A.new(:name => q.qName, @@ -91,7 +91,7 @@ while run do end elsif q.qType.to_i == Net::DNS::AAAA addresses = Set.new - Socket.getaddrinfo(host+'.local', nil, :INET6).each { |addr| addresses << addr[3] } + Socket.getaddrinfo(host+'.local.', nil, :INET6).each { |addr| addresses << addr[3] } addresses.each do |addr| packet.answer << Net::DNS::RR::AAAA.new(:name => q.qName, |