Page MenuHomeVyOS Platform

static-host-mapping only working on ipv4 addresses
Closed, DuplicatePublicBUG

Description

Hello,

Static-host-mapping is not working on ipv6 addresses, i have tried to both use "set service dns forwaring system" and not.

dp@vyos# set system static-host-mapping host-name test1.com inet 1.1.1.1
[edit]
dp@vyos# set system static-host-mapping host-name test2.com inet 2a00:1450:400f:802::200e
[edit]
dp@vyos# commit
dp@vyos# dig a test1.com +short @172.21.50.1
1.1.1.1
[edit]
dp@vyos# dig aaaa test2.com +short @172.21.50.1
[edit]
dp@vyos#

Any idea on how to solve this?

I'm using 1.4-rolling-202202110630.

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202202110630
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Related Objects

Event Timeline

In hosts we can see 2 entries:

vyos@r11-roll# run show conf com | match test
set system static-host-mapping host-name test1.com inet '1.1.1.1'
set system static-host-mapping host-name test2.com inet '2a00:1450:400f:802::200e'

hosts:

vyos@r11-roll# cat /etc/hosts | grep test
1.1.1.1         test1.com 
2a00:1450:400f:802::200e test2.com
Unknown Object (User) added a subscriber: Unknown Object (User).Feb 25 2022, 7:59 AM

Sure, but its not being applied in the pdns recursor so I cant use static host mapping for ipv6 in my network, only locally on the vyos host. (It works fine with ipv4).