<div dir="ltr">Ok, let me elaborate more.<br><br>I have following setup:<br><br>Linux router server:<br>- OS: Ubuntu 18.04<br>- wide-dhcp-client on external(internet facing) nic<br>- dnsmasq on lan interface(hostname: router) as dns, ipv4 + ipv6 dhcp<br>- lan interface IPv6 configure by wide-dhcp-client, IPv4 static(172.16.168.1) via netplan<br>- internal domain: <a href="http://int.johnsiu.com">int.johnsiu.com</a>(configure in dnsmasq)<br><br>Servers on LAN<br>- couple mac, linux machines on lan network<br>- all have static dhcp ipv4 from dnsmasq.<br>- all have ipv4 entry in router /etc/hosts<br><br>dnsmasq is able to do dns resolve for all linux machines for both ipv4 and ipv6. eg:<br><br>ssh -4 <a href="http://test.int.johnsiu.com">test.int.johnsiu.com</a><br>ssh -6 <a href="http://test.int.johnsiu.com">test.int.johnsiu.com</a><br><br>However, this does not work for the router lan interface. I already did following:<br><br>In /etc/hosts:<br><br>  172.16.168.1 router<br><br>In /etc/dnsmasq.d/lan.conf, I have following lines for router:<br><br>  dhcp-host=e2:1d:6b:2d:33:e7,172.16.168.1,router,infinite<br><br>While "ssh -4 <a href="http://router.int.johnsiu.com">router.int.johnsiu.com</a>" works, "ssh -6 <a href="http://router.int.johnsiu.com">router.int.johnsiu.com</a>" doesn't.<br><br>Is there a way to make it happen?</div>