I tried other DNS, like DNSMASQ/Pi-hole in a Docker container and they return NOERROR instead.
Unfortunately Alpine always asks for A and AAAA record and if one return NXDOMAIN, it fails. Even if a IPv4 record does exist.
Any idea how to change the RouterOS response to not return NXDOMAIN?
Here is my configuration:
Code: Select all
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=10.0.0.17 name=ess
Alpine fails to ping:
Code: Select all
mosquitto:~# ping ess
ping: bad address 'ess'
Here is the reason:
Code: Select all
mosquitto:~# nslookup ess
Server: 10.0.0.1
Address: 10.0.0.1:53
Non-authoritative answer:
Name: ess
Address: 10.0.0.17
** server can't find ess: NXDOMAIN
Debug IPv4:
Code: Select all
mosquitto:~# nslookup -type=a -debug ess 10.0.0.1
Server: 10.0.0.1
Address: 10.0.0.1:53
Query #0 completed in 1ms:
Non-authoritative answer:
Name: ess
Address: 10.0.0.17
Debug IPv6:
Code: Select all
mosquitto:~# nslookup -type=aaaa -debug ess 10.0.0.1
Server: 10.0.0.1
Address: 10.0.0.1:53
Query #0 completed in 3ms:
** server can't find ess: NXDOMAIN
This is how DNSMASQ/Pi-hole @10.0.0.6 responses in the same configuration:
Code: Select all
mosquitto:~# nslookup -type=aaaa -debug ess 10.0.0.6
Server: 10.0.0.6
Address: 10.0.0.6:53
Query #0 completed in 0ms:
Non-authoritative answer: