diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-05-13 01:20:24 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-05-13 01:20:24 +0200 |
commit | f4b3a976631668876920ef6a8d7bbee63a7fff03 (patch) | |
tree | f98a2411e34f42cde91231c62b6897ac2f7f52b8 | |
parent | 0f5879b87f4c3e28adfbc486de5fe573618e0833 (diff) | |
download | mdns-resolver-f4b3a976631668876920ef6a8d7bbee63a7fff03.tar mdns-resolver-f4b3a976631668876920ef6a8d7bbee63a7fff03.zip |
Make .local root explicitly
-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, |