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.

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

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:

[email protected]# 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:

[email protected]# cat /etc/hosts | grep test
1.1.1.1         test1.com 
2a00:1450:400f:802::200e test2.com

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).