Knot resolve local ipv6 adresses

Hi, on my mox kresd is able to resolve local hostnames for ipv4 just fine. unfortunately it does not for ipv6, so I added the line list hostname_config '/tmp/hosts/odhcpd'to the kresd section in /etc/config/resolver in order to make Knot aware of the additional hosts file generated by odhcpd. In /tmp/kresd/hints.tmpI can now see the ipv6 hosts and their hostnames (without a domain).

Unfortunately I cannot resolve those names on the mox. nslookup hostname ::1 only returns the IPv4 record.

What am I missing?

That file will only get read once when (re)starting the resolver, so I don’t think such a scheme can reliably do what you want.

You are right, it does not. My internal network is quite static and also uses IPv6-ULA thus reading that file on each restart of the resolver might suffice. But when the router reboots /tmp/hosts/odhcpd does not even exist when kresd starts, thus the file is never read at all.

In addition:
The file /tmp/hosts/odhcpd contains the ipv6 address and the hostname. /tmp/kresd/hints.tmp contains ipaddress and the hostname.domain.

When I copy the file /tmp/hosts/odhcpd to, let’s say /tmp/v6dns, and extend all hostnames with my internal domain name, nslookup returns the ipv4, the ipv6-ula, and the external ipv6 as well.

For my use-case it should be sufficient to create a static file listing the ipv6-ULA and the hostnames+domain

Yes, if you can do with a static hosts file, I think that’s the best way right now.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.