Page MenuHomeVyOS Platform

'system static-host-mapping' only allows one IP address per hostname, it should allow one IPv4 and one IPv6 simultaneously
Needs testing, WishlistPublicENHANCEMENT

Description

The hosts manpage says a single hostname can have just one entry in /etc/hosts:

For each host a single line should be present with the following information:

But this is inacurate as it can have one IPv4 and one IPv6 entry (line). Programs using getaddrinfo(3) will prefer IPv6 by default (can be changed in /etc/gai.conf), others that directly parse the hosts file (pdns-recursor) will use their own methods.

The 'inet' node should be changed to multi, the host_name.py script modified to support multiple 'inet' lines and a check added that allows only one IPv4 and IPv6 address.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

jjakob triaged this task as Wishlist priority.Jun 22 2020, 10:37 AM
jjakob created this task.
jjakob created this object in space S1 VyOS Public.
jjakob changed the subtype of this task from "Task" to "Enhancement".
erkin set Issue type to Improvement (missing useful functionality).Aug 29 2021, 2:13 PM
erkin removed a subscriber: Active contributors.
Viacheslav changed the task status from Open to Needs testing.Mon, Oct 25, 7:14 PM