Static

Test suite to validate using one of the DNS options available in an upstream server

DNS-over-HTTPS Server

Description

Configures DUT0 to connect, using DNS-over-HTTPS (DoH) over an upstream server.

Scenario

Step 1: Set the following configuration in DUT0:

set system certificate trust running://remote.dns-server.crt
set service dns proxy server-name RD
set service dns proxy static RD protocol dns-over-https host name remote.dns
set service dns proxy static RD protocol dns-over-https ip 10.215.168.1
set service dns proxy static RD protocol dns-over-https hash ec4467518bda940b10464a7630c570e7717035cc032e5ae3bec7c4f937f00d8e
set service dns resolver local

Step 2: Run command system journal show | cat at DUT0 and check if output matches the following regular expressions:

^(?m)^.*\[RD\] OK \(DoH\) - rtt: \d+ms$
Show output
-- Logs begin at Thu 2024-06-20 17:42:47 UTC, end at Thu 2024-06-20 17:42:51 UTC. --
Jun 20 17:42:47.388751 osdx systemd-journald[1713]: Runtime journal (/run/log/journal/4bdaa9d5a32b43918ba3b0d5647305f4) is 2.0M, max 16.0M, 14.0M free.
Jun 20 17:42:47.420452 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'system journal clear'.
Jun 20 17:42:48.067084 osdx osdx-coredump[8933]: Deleting all coredumps in /opt/vyatta/etc/config/coredump...
Jun 20 17:42:48.076340 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'system coredump delete all'.
Jun 20 17:42:48.889353 osdx OSDxCLI[19773]: User 'admin' entered the configuration menu.
Jun 20 17:42:49.023898 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 10.215.168.64/24'.
Jun 20 17:42:49.102688 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set protocols static route 0.0.0.0/0 next-hop 10.215.168.1'.
Jun 20 17:42:49.265188 osdx kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Jun 20 17:42:49.348267 osdx cfgd[1341]: [19773]Completed change to active configuration
Jun 20 17:42:49.388887 osdx OSDxCLI[19773]: User 'admin' committed the configuration.
Jun 20 17:42:49.426430 osdx OSDxCLI[19773]: User 'admin' left the configuration menu.
Jun 20 17:42:49.604489 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'ping 10.215.168.1      count 1 size 56 timeout 1'.
Jun 20 17:42:49.804955 osdx OSDxCLI[19773]: User 'admin' entered the configuration menu.
Jun 20 17:42:49.933373 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set system certificate trust running://remote.dns-server.crt'.
Jun 20 17:42:50.039321 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy server-name RD'.
Jun 20 17:42:50.190834 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-over-https host name remote.dns'.
Jun 20 17:42:50.269024 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-over-https ip 10.215.168.1'.
Jun 20 17:42:50.373348 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-over-https hash ec4467518bda940b10464a7630c570e7717035cc032e5ae3bec7c4f937f00d8e'.
Jun 20 17:42:50.487182 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns resolver local'.
Jun 20 17:42:50.633515 osdx ca-certificates[9045]: Updating certificates in /etc/ssl/certs...
Jun 20 17:42:51.343110 osdx ca-certificates[10028]: 1 added, 0 removed; done.
Jun 20 17:42:51.347682 osdx ca-certificates[10035]: Running hooks in /etc/ca-certificates/update.d...
Jun 20 17:42:51.352373 osdx ca-certificates[10037]: done.
Jun 20 17:42:51.477014 osdx systemd[1]: Started DNSCrypt client proxy.
Jun 20 17:42:51.479058 osdx cfgd[1341]: [19773]Completed change to active configuration
Jun 20 17:42:51.482506 osdx OSDxCLI[19773]: User 'admin' committed the configuration.
Jun 20 17:42:51.499597 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] dnscrypt-proxy 2.0.45
Jun 20 17:42:51.499862 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] Network connectivity detected
Jun 20 17:42:51.499981 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] Dropping privileges
Jun 20 17:42:51.502947 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] Network connectivity detected
Jun 20 17:42:51.502947 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] Now listening to 127.0.0.1:53 [UDP]
Jun 20 17:42:51.502947 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] Now listening to 127.0.0.1:53 [TCP]
Jun 20 17:42:51.502947 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] Firefox workaround initialized
Jun 20 17:42:51.502947 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] Loading the set of cloaking rules from [/tmp/tmpRwU1e9]
Jun 20 17:42:51.556131 osdx OSDxCLI[19773]: User 'admin' left the configuration menu.
Jun 20 17:42:51.656931 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] [RD] OK (DoH) - rtt: 123ms
Jun 20 17:42:51.656931 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] Server with the lowest initial latency: RD (rtt: 123ms)
Jun 20 17:42:51.656931 osdx dnscrypt-proxy[10087]: [2024-06-20 17:42:51] [NOTICE] dnscrypt-proxy is ready - live servers: 1

Step 3: Run command show host lookup teldat.com type A at DUT0 and check if output contains the following tokens:

teldat.com has address 19.18.17.16
Show output
teldat.com has address 19.18.17.16

DNS-over-HTTPS Server With Stamp

Description

Configures DUT0 to connect, using DNS-over-HTTPS (DoH) over an upstream server (generating a DNS stamp and using it to configure the connection).

Scenario

Step 1: Run command service dns proxy stamp calculate dns-over-https host-name remote.dns host-path /dns-query host-port 443 ip 10.215.168.1 hash ec4467518bda940b10464a7630c570e7717035cc032e5ae3bec7c4f937f00d8e at DUT0 and expect this output:

Show output
sdns://AgAAAAAAAAAADDEwLjIxNS4xNjguMSDsRGdRi9qUCxBGSnYwxXDncXA1zAMuWuO-x8T5N_ANjgpyZW1vdGUuZG5zCi9kbnMtcXVlcnk

Step 2: Set the following configuration in DUT0:

set system certificate trust running://remote.dns-server.crt
set service dns proxy server-name RD
set service dns proxy static RD stamp 'sdns://AgAAAAAAAAAADDEwLjIxNS4xNjguMSDsRGdRi9qUCxBGSnYwxXDncXA1zAMuWuO-x8T5N_ANjgpyZW1vdGUuZG5zCi9kbnMtcXVlcnk'
set service dns resolver local

Step 3: Run command system journal show | cat at DUT0 and check if output matches the following regular expressions:

^(?m)^.*\[RD\] OK \(DoH\) - rtt: \d+ms$
Show output
-- Logs begin at Thu 2024-06-20 17:42:59 UTC, end at Thu 2024-06-20 17:43:03 UTC. --
Jun 20 17:42:59.000344 osdx systemd-timedated[20209]: Changed local time to Thu Jun 20 17:42:59 2024
Jun 20 17:42:59.002831 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'set date 2024-06-20 17:42:59'.
Jun 20 17:42:59.406109 osdx systemd-journald[1713]: Runtime journal (/run/log/journal/4bdaa9d5a32b43918ba3b0d5647305f4) is 4.0M, max 16.0M, 11.9M free.
Jun 20 17:42:59.435159 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'system journal clear'.
Jun 20 17:43:00.008659 osdx osdx-coredump[11740]: Deleting all coredumps in /opt/vyatta/etc/config/coredump...
Jun 20 17:43:00.017238 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'system coredump delete all'.
Jun 20 17:43:00.942095 osdx OSDxCLI[19773]: User 'admin' entered the configuration menu.
Jun 20 17:43:01.082981 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 10.215.168.64/24'.
Jun 20 17:43:01.160803 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set protocols static route 0.0.0.0/0 next-hop 10.215.168.1'.
Jun 20 17:43:01.291710 osdx kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Jun 20 17:43:01.376051 osdx cfgd[1341]: [19773]Completed change to active configuration
Jun 20 17:43:01.422599 osdx OSDxCLI[19773]: User 'admin' committed the configuration.
Jun 20 17:43:01.458269 osdx OSDxCLI[19773]: User 'admin' left the configuration menu.
Jun 20 17:43:01.652068 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'ping 10.215.168.1      count 1 size 56 timeout 1'.
Jun 20 17:43:01.904329 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'service dns proxy stamp calculate dns-over-https host-name remote.dns host-path /dns-query host-port 443 ip 10.215.168.1 hash ec4467518bda940b10464a7630c570e7717035cc032e5ae3bec7c4f937f00d8e'.
Jun 20 17:43:02.093763 osdx OSDxCLI[19773]: User 'admin' entered the configuration menu.
Jun 20 17:43:02.192264 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set system certificate trust running://remote.dns-server.crt'.
Jun 20 17:43:02.295488 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy server-name RD'.
Jun 20 17:43:02.408383 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy static RD stamp 'sdns://AgAAAAAAAAAADDEwLjIxNS4xNjguMSDsRGdRi9qUCxBGSnYwxXDncXA1zAMuWuO-x8T5N_ANjgpyZW1vdGUuZG5zCi9kbnMtcXVlcnk''.
Jun 20 17:43:02.544204 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns resolver local'.
Jun 20 17:43:02.677437 osdx ca-certificates[11862]: Updating certificates in /etc/ssl/certs...
Jun 20 17:43:03.408617 osdx ca-certificates[12846]: 1 added, 0 removed; done.
Jun 20 17:43:03.413007 osdx ca-certificates[12853]: Running hooks in /etc/ca-certificates/update.d...
Jun 20 17:43:03.419200 osdx ca-certificates[12855]: done.
Jun 20 17:43:03.547252 osdx systemd[1]: Started DNSCrypt client proxy.
Jun 20 17:43:03.549481 osdx cfgd[1341]: [19773]Completed change to active configuration
Jun 20 17:43:03.553503 osdx OSDxCLI[19773]: User 'admin' committed the configuration.
Jun 20 17:43:03.574025 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] dnscrypt-proxy 2.0.45
Jun 20 17:43:03.574025 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] Network connectivity detected
Jun 20 17:43:03.574025 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] Dropping privileges
Jun 20 17:43:03.577374 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] Network connectivity detected
Jun 20 17:43:03.577502 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] Now listening to 127.0.0.1:53 [UDP]
Jun 20 17:43:03.577502 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] Now listening to 127.0.0.1:53 [TCP]
Jun 20 17:43:03.577502 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] Firefox workaround initialized
Jun 20 17:43:03.577502 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] Loading the set of cloaking rules from [/tmp/tmp5EqL7K]
Jun 20 17:43:03.580667 osdx OSDxCLI[19773]: User 'admin' left the configuration menu.
Jun 20 17:43:03.763294 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'system journal show | cat'.
Jun 20 17:43:03.834563 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] [RD] OK (DoH) - rtt: 209ms
Jun 20 17:43:03.834563 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] Server with the lowest initial latency: RD (rtt: 209ms)
Jun 20 17:43:03.834563 osdx dnscrypt-proxy[12905]: [2024-06-20 17:43:03] [NOTICE] dnscrypt-proxy is ready - live servers: 1

Step 4: Run command show host lookup teldat.com type A at DUT0 and check if output contains the following tokens:

teldat.com has address 19.18.17.16
Show output
teldat.com has address 19.18.17.16

DNSCrypt Server

Description

Configures DUT0 to connect, using DNSCrypt over an upstream server.

Scenario

Step 1: Run command service dns proxy dnscrypt public-key running://dnscrypt.crt at DUT0 and expect this output:

Show output
82:1f:89:52:02:93:8a:f7:8b:09:88:f2:a2:e0:16:06:43:5c:cb:66:63:57:03:92:02:f4:eb:33:88:f8:5b:2b

Step 2: Set the following configuration in DUT0:

set system certificate trust running://remote.dns-server.crt
set service dns proxy server-name RD
set service dns proxy static RD protocol dns-crypt ip 10.215.168.1
set service dns proxy static RD protocol dns-crypt port 8443
set service dns proxy static RD protocol dns-crypt provider name 2.dnscrypt-cert.remote.dns
set service dns proxy static RD protocol dns-crypt provider public-key 82:1f:89:52:02:93:8a:f7:8b:09:88:f2:a2:e0:16:06:43:5c:cb:66:63:57:03:92:02:f4:eb:33:88:f8:5b:2b
set service dns resolver local

Step 3: Run command system journal show | cat at DUT0 and check if output matches the following regular expressions:

^(?m)^.*\[RD\] OK \(DNSCrypt\) - rtt: \d+ms$
Show output
-- Logs begin at Thu 2024-06-20 17:43:12 UTC, end at Thu 2024-06-20 17:43:16 UTC. --
Jun 20 17:43:12.365902 osdx systemd-journald[1713]: Runtime journal (/run/log/journal/4bdaa9d5a32b43918ba3b0d5647305f4) is 4.0M, max 16.0M, 11.9M free.
Jun 20 17:43:12.389630 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'system journal clear'.
Jun 20 17:43:13.058555 osdx osdx-coredump[14562]: Deleting all coredumps in /opt/vyatta/etc/config/coredump...
Jun 20 17:43:13.067237 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'system coredump delete all'.
Jun 20 17:43:13.985881 osdx OSDxCLI[19773]: User 'admin' entered the configuration menu.
Jun 20 17:43:14.120634 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 10.215.168.64/24'.
Jun 20 17:43:14.199846 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set protocols static route 0.0.0.0/0 next-hop 10.215.168.1'.
Jun 20 17:43:14.203142 osdx zebra[1282]: [RZ3YY-GPH41][EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
Jun 20 17:43:14.203280 osdx zebra[1282]: [RZ3YY-GPH41][EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
Jun 20 17:43:14.342886 osdx kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Jun 20 17:43:14.424548 osdx cfgd[1341]: [19773]Completed change to active configuration
Jun 20 17:43:14.462411 osdx OSDxCLI[19773]: User 'admin' committed the configuration.
Jun 20 17:43:14.525181 osdx OSDxCLI[19773]: User 'admin' left the configuration menu.
Jun 20 17:43:14.694174 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'ping 10.215.168.1      count 1 size 56 timeout 1'.
Jun 20 17:43:14.872404 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'service dns proxy dnscrypt public-key running://dnscrypt.crt'.
Jun 20 17:43:15.042245 osdx OSDxCLI[19773]: User 'admin' entered the configuration menu.
Jun 20 17:43:15.148197 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set system certificate trust running://remote.dns-server.crt'.
Jun 20 17:43:15.275514 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy server-name RD'.
Jun 20 17:43:15.370459 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-crypt ip 10.215.168.1'.
Jun 20 17:43:15.461885 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-crypt port 8443'.
Jun 20 17:43:15.561892 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-crypt provider name 2.dnscrypt-cert.remote.dns'.
Jun 20 17:43:15.662345 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-crypt provider public-key 82:1f:89:52:02:93:8a:f7:8b:09:88:f2:a2:e0:16:06:43:5c:cb:66:63:57:03:92:02:f4:eb:33:88:f8:5b:2b'.
Jun 20 17:43:15.781855 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns resolver local'.
Jun 20 17:43:15.920234 osdx ca-certificates[14677]: Updating certificates in /etc/ssl/certs...
Jun 20 17:43:16.612661 osdx ca-certificates[15660]: 1 added, 0 removed; done.
Jun 20 17:43:16.617039 osdx ca-certificates[15667]: Running hooks in /etc/ca-certificates/update.d...
Jun 20 17:43:16.623400 osdx ca-certificates[15669]: done.
Jun 20 17:43:16.740723 osdx systemd[1]: Started DNSCrypt client proxy.
Jun 20 17:43:16.743712 osdx cfgd[1341]: [19773]Completed change to active configuration
Jun 20 17:43:16.747441 osdx OSDxCLI[19773]: User 'admin' committed the configuration.
Jun 20 17:43:16.766809 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] dnscrypt-proxy 2.0.45
Jun 20 17:43:16.766809 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] Network connectivity detected
Jun 20 17:43:16.766809 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] Dropping privileges
Jun 20 17:43:16.769423 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] Network connectivity detected
Jun 20 17:43:16.769521 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] Now listening to 127.0.0.1:53 [UDP]
Jun 20 17:43:16.769521 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] Now listening to 127.0.0.1:53 [TCP]
Jun 20 17:43:16.769521 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] Firefox workaround initialized
Jun 20 17:43:16.769521 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] Loading the set of cloaking rules from [/tmp/tmpk1lBXL]
Jun 20 17:43:16.770326 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] [RD] OK (DNSCrypt) - rtt: 0ms
Jun 20 17:43:16.770326 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] Server with the lowest initial latency: RD (rtt: 0ms)
Jun 20 17:43:16.770326 osdx dnscrypt-proxy[15719]: [2024-06-20 17:43:16] [NOTICE] dnscrypt-proxy is ready - live servers: 1
Jun 20 17:43:16.800428 osdx OSDxCLI[19773]: User 'admin' left the configuration menu.

Step 4: Run command show host lookup teldat.com type A at DUT0 and check if output contains the following tokens:

teldat.com has address 19.18.17.16
Show output
teldat.com has address 19.18.17.16

DNSCrypt Server With Stamp

Description

Configures DUT0 to connect, using DNSCrypt over an upstream server (generating a DNS stamp and using it to configure the connection).

Scenario

Step 1: Run command service dns proxy dnscrypt public-key running://dnscrypt.crt at DUT0 and expect this output:

Show output
82:1f:89:52:02:93:8a:f7:8b:09:88:f2:a2:e0:16:06:43:5c:cb:66:63:57:03:92:02:f4:eb:33:88:f8:5b:2b

Step 2: Run command service dns proxy stamp calculate dns-crypt provider-name 2.dnscrypt-cert.remote.dns provider-key 82:1f:89:52:02:93:8a:f7:8b:09:88:f2:a2:e0:16:06:43:5c:cb:66:63:57:03:92:02:f4:eb:33:88:f8:5b:2b ip 10.215.168.1 port 8443 at DUT0 and expect this output:

Show output
sdns://AQAAAAAAAAAAETEwLjIxNS4xNjguMTo4NDQzIIIfiVICk4r3iwmI8qLgFgZDXMtmY1cDkgL06zOI-FsrGjIuZG5zY3J5cHQtY2VydC5yZW1vdGUuZG5z

Step 3: Set the following configuration in DUT0:

set system certificate trust running://remote.dns-server.crt
set service dns proxy server-name RD
set service dns proxy static RD stamp 'sdns://AQAAAAAAAAAAETEwLjIxNS4xNjguMTo4NDQzIIIfiVICk4r3iwmI8qLgFgZDXMtmY1cDkgL06zOI-FsrGjIuZG5zY3J5cHQtY2VydC5yZW1vdGUuZG5z'
set service dns resolver local

Step 4: Run command system journal show | cat at DUT0 and check if output matches the following regular expressions:

^(?m)^.*\[RD\] OK \(DNSCrypt\) - rtt: \d+ms$
Show output
-- Logs begin at Thu 2024-06-20 17:43:24 UTC, end at Thu 2024-06-20 17:43:29 UTC. --
Jun 20 17:43:24.000353 osdx systemd-timedated[20209]: Changed local time to Thu Jun 20 17:43:24 2024
Jun 20 17:43:24.002734 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'set date 2024-06-20 17:43:24'.
Jun 20 17:43:24.433999 osdx systemd-journald[1713]: Runtime journal (/run/log/journal/4bdaa9d5a32b43918ba3b0d5647305f4) is 4.0M, max 16.0M, 11.9M free.
Jun 20 17:43:24.472012 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'system journal clear'.
Jun 20 17:43:25.210921 osdx osdx-coredump[17370]: Deleting all coredumps in /opt/vyatta/etc/config/coredump...
Jun 20 17:43:25.221160 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'system coredump delete all'.
Jun 20 17:43:26.164536 osdx OSDxCLI[19773]: User 'admin' entered the configuration menu.
Jun 20 17:43:26.354877 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 10.215.168.64/24'.
Jun 20 17:43:26.508441 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set protocols static route 0.0.0.0/0 next-hop 10.215.168.1'.
Jun 20 17:43:26.657003 osdx kernel: 8021q: adding VLAN 0 to HW filter on device eth0
Jun 20 17:43:26.746167 osdx cfgd[1341]: [19773]Completed change to active configuration
Jun 20 17:43:26.796143 osdx OSDxCLI[19773]: User 'admin' committed the configuration.
Jun 20 17:43:26.821616 osdx OSDxCLI[19773]: User 'admin' left the configuration menu.
Jun 20 17:43:27.008724 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'ping 10.215.168.1      count 1 size 56 timeout 1'.
Jun 20 17:43:27.142772 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'service dns proxy dnscrypt public-key running://dnscrypt.crt'.
Jun 20 17:43:27.297341 osdx OSDxCLI[19773]: User 'admin' executed a new command: 'service dns proxy stamp calculate dns-crypt provider-name 2.dnscrypt-cert.remote.dns provider-key 82:1f:89:52:02:93:8a:f7:8b:09:88:f2:a2:e0:16:06:43:5c:cb:66:63:57:03:92:02:f4:eb:33:88:f8:5b:2b ip 10.215.168.1 port 8443'.
Jun 20 17:43:27.523542 osdx OSDxCLI[19773]: User 'admin' entered the configuration menu.
Jun 20 17:43:27.635268 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set system certificate trust running://remote.dns-server.crt'.
Jun 20 17:43:27.754591 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy server-name RD'.
Jun 20 17:43:27.881760 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns proxy static RD stamp 'sdns://AQAAAAAAAAAAETEwLjIxNS4xNjguMTo4NDQzIIIfiVICk4r3iwmI8qLgFgZDXMtmY1cDkgL06zOI-FsrGjIuZG5zY3J5cHQtY2VydC5yZW1vdGUuZG5z''.
Jun 20 17:43:28.004003 osdx OSDxCLI[19773]: User 'admin' added a new cfg line: 'set service dns resolver local'.
Jun 20 17:43:28.183688 osdx ca-certificates[17485]: Updating certificates in /etc/ssl/certs...
Jun 20 17:43:28.409430 osdx zebra[1282]: [RZ3YY-GPH41][EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
Jun 20 17:43:28.409557 osdx zebra[1282]: [RZ3YY-GPH41][EC 100663310] snmp[warning]: Warning: Failed to connect to the agentx master agent ([NIL]):
Jun 20 17:43:28.928079 osdx ca-certificates[18471]: 1 added, 0 removed; done.
Jun 20 17:43:28.932736 osdx ca-certificates[18477]: Running hooks in /etc/ca-certificates/update.d...
Jun 20 17:43:28.937414 osdx ca-certificates[18479]: done.
Jun 20 17:43:29.072673 osdx systemd[1]: Started DNSCrypt client proxy.
Jun 20 17:43:29.076138 osdx cfgd[1341]: [19773]Completed change to active configuration
Jun 20 17:43:29.080172 osdx OSDxCLI[19773]: User 'admin' committed the configuration.
Jun 20 17:43:29.102477 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] dnscrypt-proxy 2.0.45
Jun 20 17:43:29.102477 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] Network connectivity detected
Jun 20 17:43:29.102477 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] Dropping privileges
Jun 20 17:43:29.105815 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] Network connectivity detected
Jun 20 17:43:29.105927 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] Now listening to 127.0.0.1:53 [UDP]
Jun 20 17:43:29.105927 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] Now listening to 127.0.0.1:53 [TCP]
Jun 20 17:43:29.105927 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] Firefox workaround initialized
Jun 20 17:43:29.105927 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] Loading the set of cloaking rules from [/tmp/tmpoT_7rM]
Jun 20 17:43:29.106995 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] [RD] OK (DNSCrypt) - rtt: 0ms
Jun 20 17:43:29.106995 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] Server with the lowest initial latency: RD (rtt: 0ms)
Jun 20 17:43:29.107180 osdx dnscrypt-proxy[18529]: [2024-06-20 17:43:29] [NOTICE] dnscrypt-proxy is ready - live servers: 1
Jun 20 17:43:29.116298 osdx OSDxCLI[19773]: User 'admin' left the configuration menu.

Step 5: Run command show host lookup teldat.com type A at DUT0 and check if output contains the following tokens:

teldat.com has address 19.18.17.16
Show output
teldat.com has address 19.18.17.16