Version 15.4 fixed some issues regarding selecting device or VRF for "DNS Server Local End Points" which is handy if you use VRFs.
However I assume since neither DNS Server IPV4 Source Addresses or DNS Server IPv6 Source Addresses allows the new syntax of %VRF this means that DNS-over-TCP works with the builtin DNS Client but not DNS-over-UDP.
Current settings:
Settings -> General -> DNS Server Local End Points: 192.168.1.20%PROD:53
Settings -> General -> DNS Server IPv4 Source Addresses: 192.168.1.20
Settings -> General -> DNS Server IPv6 Source Addresses: ::
Above works for incoming DNS queries both regarding DNS-over-UDP and DNS-over-TCP (verified with "dig @192.168.1.20 localhost" aswell as "dig @192.168.1.20 +tcp localhost").
But when using DNS Client through the webgui with "Server" set to "This Server (this-server)" then egressing DNS-over-TCP works but not DNS-over-UDP who gets timeout:
Error! DnsClient failed to resolve the request 'ping.sunet.se. A IN': request timed out for name server [vyos1.example.com (192.168.1.20)]. Connection timed out
Nothing obvious is seen in the log even with stack trace enabled.
Doing a tcpdump I do see the requests leaving and returning to the interface but then nothing:
14:24:29.727360 IP 192.168.1.20.55410 > 192.168.1.20.domain: 62546+ [1au] A? ping.sunet.se. (42)
14:24:29.727956 IP 192.168.1.20.domain > 192.168.1.20.55410: 62546 1/0/1 A 192.36.125.18 (58)
14:24:39.728945 IP 192.168.1.20.52958 > 192.168.1.20.domain: 62546+ A? ping.sunet.se. (31)
14:24:39.729508 IP 192.168.1.20.domain > 192.168.1.20.52958: 62546 1/0/0 A 192.36.125.18 (47)
I also see several "ICMP 192.168.1.20 udp port unreachable" being sent by 192.168.1.20 back to external DNS servers?
Version 15.4 fixed some issues regarding selecting device or VRF for "DNS Server Local End Points" which is handy if you use VRFs.
However I assume since neither DNS Server IPV4 Source Addresses or DNS Server IPv6 Source Addresses allows the new syntax of %VRF this means that DNS-over-TCP works with the builtin DNS Client but not DNS-over-UDP.
Current settings:
Settings -> General -> DNS Server Local End Points: 192.168.1.20%PROD:53
Settings -> General -> DNS Server IPv4 Source Addresses: 192.168.1.20
Settings -> General -> DNS Server IPv6 Source Addresses: ::
Above works for incoming DNS queries both regarding DNS-over-UDP and DNS-over-TCP (verified with "dig @192.168.1.20 localhost" aswell as "dig @192.168.1.20 +tcp localhost").
But when using DNS Client through the webgui with "Server" set to "This Server (this-server)" then egressing DNS-over-TCP works but not DNS-over-UDP who gets timeout:
Nothing obvious is seen in the log even with stack trace enabled.
Doing a tcpdump I do see the requests leaving and returning to the interface but then nothing:
14:24:29.727360 IP 192.168.1.20.55410 > 192.168.1.20.domain: 62546+ [1au] A? ping.sunet.se. (42)
14:24:29.727956 IP 192.168.1.20.domain > 192.168.1.20.55410: 62546 1/0/1 A 192.36.125.18 (58)
14:24:39.728945 IP 192.168.1.20.52958 > 192.168.1.20.domain: 62546+ A? ping.sunet.se. (31)
14:24:39.729508 IP 192.168.1.20.domain > 192.168.1.20.52958: 62546 1/0/0 A 192.36.125.18 (47)
I also see several "ICMP 192.168.1.20 udp port unreachable" being sent by 192.168.1.20 back to external DNS servers?