static dns entry for ipv4only.arpa

Greetings all,

I’m trying to create an entry in the static dns cache for the special name ‘ipv4only.arpa’. The entry needs to resolve to two v4 and two v6 addresses (RFC https://www.rfc-editor.org/rfc/rfc8880.html, Appendix B). I executed the required command to create this entry which seemingly succeeded (no error messages on the console) but in both cases each resulting entry resolved to just one address (the first one).

The test results are as follows:

Name resolution results against ISP
(no entry in routeros dns cache, ISP does not report AAAA records either, as expected):

**PS > Resolve-DnsName ipv4only.arpa

Name Type TTL Section IPAddress


ipv4only.arpa A 49750 Answer 192.0.0.171
ipv4only.arpa A 49750 Answer 192.0.0.170**

I now execute these commands (RouterOS v 7.11.2):

/ip/dns/static
add name=“ipv4only.arpa” address=192.0.0.170 address=192.0.0.171
add name=“ipv4only.arpa” address=64:ff9b::192.0.0.170 address=64:ff9b::192.0.0.170 type=AAAA

(Specifying the addresses as a comma separated list results in an error. The above versions worked, i.e. no error output on the console)

What I get after the running the commands:

**PS > Resolve-DnsName ipv4only.arpa

Name Type TTL Section IPAddress


ipv4only.arpa AAAA 86400 Answer 64:ff9b::c000:aa
ipv4only.arpa A 86400 Answer 192.0.0.170**

What I was really expecting was 4 address rows, 2 for IPv6 and 2 for IPv4.

What am I doing wrong and/or how do I create a static entry that resolves to all 4 addresses specified in RFC 8080? OTOH, if my understanding is fundamentally incorrect, I’d really appreciate it if you folks could set me straight! :slight_smile:

Tia
:slight_smile:
dnz

You can add the same name= multiple times, so you need four entries. Using two address= does not work (although it may expect that).

But Mikrotik will only return one A or AAAA record in response.

Thanks for the fast response! that did the trick. Many thanks! :slight_smile:

I can now see all 4 addresses:

**PS > Resolve-DnsName ipv4only.arpa

Name Type TTL Section IPAddress


ipv4only.arpa AAAA 86400 Answer 64:ff9b::c000:aa
ipv4only.arpa AAAA 86400 Answer 64:ff9b::c000:ab
ipv4only.arpa A 86400 Answer 192.0.0.170
ipv4only.arpa A 86400 Answer 192.0.0.171**



Should others run into the same issue, I’m repro’ing the commands below (RouterOS v7.11.2):

/ip/dns/static
add name=“ipv4only.arpa” address=192.0.0.170
add name=“ipv4only.arpa” address=192.0.0.171
add name=“ipv4only.arpa” address=64:ff9b::192.0.0.170 address=64:ff9b::192.0.0.170 type=AAAA
add name=“ipv4only.arpa” address=64:ff9b::192.0.0.171 address=64:ff9b::192.0.0.170 type=AAAA