On Tue, 09 May 2023 15:05:17 +0200 Ingeborg Hellemo ingeborg.hellemo@uit.no wrote:
/ipdevinfo contains a button named "DNS" which shows all the IP-addresses connected to the device and their hostnames.
I have one device which is correctly registered i DNS. Even so, the DNS info says "No addresses found".
Why? Where to start debugging?
The DNS lookup works like this:
1. A forward lookup for AAAA and A records for the "Full sysname" value is performed.
2. For each of the found IP addresses (if any), a reverse lookup is performed.
The code normally uses the settings of `/etc/resolv.conf` to discover which resolver to query.
Does your NAV web server log any errors when you click the "DNS" button?
ipdevpolld -J dns -n <ip-address> runs as expected.
The dns plugin in ipdevpoll doesn't have the same task as the DNS button in the user interface: It only performs a PTR lookup for the configured IP address of an IP Device and sets the device's sysname attribute from that.