VyOS 1.4 - static-host-mapping and IPv6

I’ve a question about the static-host-mapping.

If i have settings mentioned below:

set system static-host-mapping host-name ipv6.host.domain.loc inet xxxx:xxxx:xxxx:xxxx::x
set system static-host-mapping host-name ipv6.host.domain.loc alias host.domain.loc

set system static-host-mapping host-name ipv4.host.domain.loc inet xxx.xxx.xxx.xxx
set system static-host-mapping host-name ipv4.host.domain.loc alias host.domain.loc

I can’t get the ipv6 address of host.domain.loc, dig AAAA xxxx:xxxx:xxxx:xxxx::x host.domain.loc

-> % dig AAAA @xxxx:xxxx:xxxx:xxxx::x  ipv6.host.domain.loc

; <<>> DiG 9.16.22-Debian <<>> AAAA @xxxx:xxxx:xxxx:xxxx::x   ipv6.host.domain.loc
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 26108
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;ipv6.host.domain.loc	IN	AAAA

;; AUTHORITY SECTION:
host.domain.loc.	3583	IN	SOA	localhost. root. 1 604800 86400 2419200 604800

;; Query time: 0 msec
;; SERVER: xxxx:xxxx:xxxx:xxxx::x #53(xxxx:xxxx:xxxx:xxxx::x)
;; WHEN: Tue Mar 01 18:38:05 CET 2022
;; MSG SIZE  rcvd: 98
ping host.domain.loc # uses ipv4
ping6 host.domain.loc # ping: ipv6.host.domain.loc: Name or service not known

But: dig A xxxx:xxxx:xxxx:xxxx::x host.domain.loc , gave me the ipv4 as it should.

I’ve tried so much, but static-host-mapping does not work with IPv6, even if i try only just ipv6 to host, without an ipv4 address, i get no ip at all.

Is there a other way to mapping ipv6 to hosts, or should i use a seperate named server ?

Best regards

Andi

Edit:
If i ping from VyOS itself, “ping host.domain.loc”
it takes the ipv6 … what is going on here :slight_smile: