From f4b3a976631668876920ef6a8d7bbee63a7fff03 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 13 May 2012 01:20:24 +0200 Subject: Make .local root explicitly --- mdns-resolver | 4 ++-- 1 file 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, -- cgit v1.2.3