Page MenuHomeVyOS Platform

IPv6 addresses in static-host-mapping don't resolve via local DNS
Closed, WontfixPublicBUG

Description

If you add an IPv6 address using the static-host-mapping feature, it gets added to the /etc/hosts file but unlike IPv4, it doesn't resolve via the local DNS server:

show system static-host-mapping 
 host-name router-lan.example.org {
     inet 10.108.65.1
     inet 2001:8b0:108:65::1
 }

On local machine:

% host -t A router-lan.example.org
router-lan.example.org has address 10.108.65.1
% host -t AAAA router-lan.example.org
router-lan.example.org has no AAAA record

Just tested using 2025.04.19-0018-rolling.

Details

Version
2025.04.19-0018-rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav triaged this task as Normal priority.Apr 19 2025, 7:14 PM

I've noticed this as well. It doesn't appear to be related to IPv4 vs. IPv6; it appears to return whichever entry is first in /etc/hosts.

Viacheslav claimed this task.