tldr: migrating from router running OpenWrt ‘19.07.3’ to ‘TurrisOS 5.0.2’ running on Turris Omnia,
for home network, nslookup for names won’t return IPv6 address, after doing the same process in Luci GUI (it work in OpenWrt)
Details:
I would like to receive dynamic IP addresses (both IPv4 and IPv6) from the router for home network devices, that will be returned in dns lookups as well.
On OpenWrt 19.07.3 router after setting in:
http://192.168.1.1/cgi-bin/luci/admin/network/dhcp
/home.arpa/
in Local server
home.arpa
in Local domain
nslookup command from my computer return IPv4 & IPv6 addresses for devices in home network
user@comp2 ~>>nslookup comp1.home.arpa 192.168.1.1
Server: 192.168.1.1
Address: 192.168.1.1#53
Name: comp1.home.arpa
Address: 192.168.1.20
Name: comp1.home.arpa
Address: fd11:1111:1111::20
On Turris omnia running ‘TurrisOS 5.0.2’ after applying the same configuration nslookup won’t return ip addresses at all (no IPv4 or IPv6)
user@comp2 ~>>nslookup comp1.home.arpa 192.168.1.1
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find comp1.home.arpa: NXDOMAIN
I tried to solved this myself by:
adding custom configuration for kresd resolver by:
editing file /etc/config/resolver
then adding:
option include_config '/etc/kresd/custom.conf'
after config resolver 'kresd'
line.
The content of custom configuration at /etc/kresd/custom.conf
is:
local internalDomains = policy.todnames({
'home.arpa.',
'1.168.192.in-addr.arpa.',
})
policy.add(policy.suffix(policy.PASS, internalDomains))
Then running /etc/init.d/resolver restart
to apply configuration.
Running nslookup will return only IPv4 address for devices in home network.
user@comp2 ~>>nslookup comp1.home.arpa 192.168.1.1
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: comp1.home.arpa
Address: 192.168.1.20
How to make nslookup return IPv6 address as well?
Is there more changes need to be done to custom.conf file?
Or is there another way to make dns lookups works?
Or maybe it’s a bug that it’s not working out of box as expected on TurrisOS (works in OpenWrt)