Page MenuHomeVyOS Platform

no dual stack in system static-host-mapping host-name
Backport candidate, Requires assessmentPublic

Description

hi,

I tried to set an hostname for dns via "set system static-host-mapping $hostname inet $IP".
I can't give an hostname an ipv4 and an ipv6 address.

I would prefer to give an hostname and ipv4 and an ipv6.

We could extent it with a new syntax:

set system static-host-mapping $hostname inet $IPv4
set system static-host-mapping $hostname inet6 $IPv6

Details

Difficulty level
Unknown (require assessment)
Version
1.2.5
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

rherold created this object in space S1 VyOS Public.
erkin set Issue type to Feature (new functionality).Aug 29 2021, 1:55 PM
erkin removed a subscriber: Active contributors.

PR https://github.com/vyos/vyos-1x/pull/1037

set system static-host-mapping host-name host.local inet 192.0.2.1
set system static-host-mapping host-name host.local inet 2001:db8::1
commit

vyos@r1-roll# sudo cat /etc/hosts | tail -n 5

# From 'system static-host-mapping' and DHCP server
# system
192.0.2.1       host.local 
2001:db8::1     host.local 
[edit]
vyos@r1-roll#
Viacheslav changed the task status from Open to In progress.Oct 22 2021, 12:07 PM
Viacheslav changed the task status from In progress to Needs testing.Oct 25 2021, 7:14 PM