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 d2be24e65ff372013da62ec4ec3f6031758ee573acef6552a41a6d4de0353831 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 Mon 2024-02-26 19:15:58 UTC, end at Mon 2024-02-26 19:16:03 UTC. -- Feb 26 19:15:58.427723 osdx systemd-journald[1369]: Runtime journal (/run/log/journal/bb5e03885d754db09ee63ec3d68ce029) is 4.0M, max 16.0M, 12.0M free. Feb 26 19:15:58.447300 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'system journal clear'. Feb 26 19:15:59.127723 osdx osdx-coredump[28737]: Deleting all coredumps in /opt/vyatta/etc/config/coredump... Feb 26 19:15:59.139316 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'system coredump delete all'. Feb 26 19:16:00.174131 osdx OSDxCLI[2572]: User 'admin' entered the configuration menu. Feb 26 19:16:00.297120 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 10.215.168.64/24'. Feb 26 19:16:00.411983 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set protocols static route 0.0.0.0/0 next-hop 10.215.168.1'. Feb 26 19:16:00.565904 osdx kernel: 8021q: adding VLAN 0 to HW filter on device eth0 Feb 26 19:16:00.686471 osdx cfgd[997]: [2572]Completed change to active configuration Feb 26 19:16:00.743012 osdx OSDxCLI[2572]: User 'admin' committed the configuration. Feb 26 19:16:00.793624 osdx OSDxCLI[2572]: User 'admin' left the configuration menu. Feb 26 19:16:01.000959 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. Feb 26 19:16:01.239783 osdx OSDxCLI[2572]: User 'admin' entered the configuration menu. Feb 26 19:16:01.363759 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set system certificate trust running://remote.dns-server.crt'. Feb 26 19:16:01.479089 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy server-name RD'. Feb 26 19:16:01.602596 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-over-https host name remote.dns'. Feb 26 19:16:01.717947 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-over-https ip 10.215.168.1'. Feb 26 19:16:01.839544 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-over-https hash d2be24e65ff372013da62ec4ec3f6031758ee573acef6552a41a6d4de0353831'. Feb 26 19:16:01.952446 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns resolver local'. Feb 26 19:16:02.100557 osdx ca-certificates[28874]: Updating certificates in /etc/ssl/certs... Feb 26 19:16:02.888319 osdx ca-certificates[29858]: 1 added, 0 removed; done. Feb 26 19:16:02.896007 osdx ca-certificates[29862]: Running hooks in /etc/ca-certificates/update.d... Feb 26 19:16:02.902803 osdx ca-certificates[29866]: done. Feb 26 19:16:03.046552 osdx systemd[1]: Started DNSCrypt client proxy. Feb 26 19:16:03.050292 osdx cfgd[997]: [2572]Completed change to active configuration Feb 26 19:16:03.055916 osdx OSDxCLI[2572]: User 'admin' committed the configuration. Feb 26 19:16:03.084187 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [NOTICE] dnscrypt-proxy 2.0.45 Feb 26 19:16:03.084768 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [NOTICE] Network connectivity detected Feb 26 19:16:03.085469 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [NOTICE] Dropping privileges Feb 26 19:16:03.088856 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [NOTICE] Network connectivity detected Feb 26 19:16:03.089159 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [NOTICE] Now listening to 127.0.0.1:53 [UDP] Feb 26 19:16:03.089269 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [NOTICE] Now listening to 127.0.0.1:53 [TCP] Feb 26 19:16:03.089419 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [NOTICE] Firefox workaround initialized Feb 26 19:16:03.089574 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [NOTICE] Loading the set of cloaking rules from [/tmp/tmpHbmZV8] Feb 26 19:16:03.102716 osdx OSDxCLI[2572]: User 'admin' left the configuration menu. Feb 26 19:16:03.318528 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'system journal show | cat'. Feb 26 19:16:03.411535 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [NOTICE] [RD] OK (DoH) - rtt: 275ms Feb 26 19:16:03.411535 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [NOTICE] Server with the lowest initial latency: RD (rtt: 275ms) Feb 26 19:16:03.411535 osdx dnscrypt-proxy[29916]: [2024-02-26 19:16:03] [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.16Show 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 d2be24e65ff372013da62ec4ec3f6031758ee573acef6552a41a6d4de0353831
at DUT0
and expect this output:
Show output
sdns://AgAAAAAAAAAADDEwLjIxNS4xNjguMSDSviTmX_NyAT2mLsTsP2AxdY7lc6zvZVKkGm1N4DU4MQpyZW1vdGUuZG5zCi9kbnMtcXVlcnk
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://AgAAAAAAAAAADDEwLjIxNS4xNjguMSDSviTmX_NyAT2mLsTsP2AxdY7lc6zvZVKkGm1N4DU4MQpyZW1vdGUuZG5zCi9kbnMtcXVlcnk' 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 Mon 2024-02-26 19:16:12 UTC, end at Mon 2024-02-26 19:16:17 UTC. -- Feb 26 19:16:12.429224 osdx systemd-journald[1369]: Runtime journal (/run/log/journal/bb5e03885d754db09ee63ec3d68ce029) is 2.0M, max 16.0M, 14.0M free. Feb 26 19:16:12.447086 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'system journal clear'. Feb 26 19:16:13.120795 osdx osdx-coredump[31562]: Deleting all coredumps in /opt/vyatta/etc/config/coredump... Feb 26 19:16:13.132880 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'system coredump delete all'. Feb 26 19:16:14.173788 osdx OSDxCLI[2572]: User 'admin' entered the configuration menu. Feb 26 19:16:14.297308 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 10.215.168.64/24'. Feb 26 19:16:14.438929 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set protocols static route 0.0.0.0/0 next-hop 10.215.168.1'. Feb 26 19:16:14.591404 osdx kernel: 8021q: adding VLAN 0 to HW filter on device eth0 Feb 26 19:16:14.715202 osdx cfgd[997]: [2572]Completed change to active configuration Feb 26 19:16:14.770074 osdx OSDxCLI[2572]: User 'admin' committed the configuration. Feb 26 19:16:14.819655 osdx OSDxCLI[2572]: User 'admin' left the configuration menu. Feb 26 19:16:15.028154 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. Feb 26 19:16:15.262380 osdx OSDxCLI[2572]: 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 d2be24e65ff372013da62ec4ec3f6031758ee573acef6552a41a6d4de0353831'. Feb 26 19:16:15.470854 osdx OSDxCLI[2572]: User 'admin' entered the configuration menu. Feb 26 19:16:15.595357 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set system certificate trust running://remote.dns-server.crt'. Feb 26 19:16:15.736879 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy server-name RD'. Feb 26 19:16:15.868421 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy static RD stamp 'sdns://AgAAAAAAAAAADDEwLjIxNS4xNjguMSDSviTmX_NyAT2mLsTsP2AxdY7lc6zvZVKkGm1N4DU4MQpyZW1vdGUuZG5zCi9kbnMtcXVlcnk''. Feb 26 19:16:15.969183 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns resolver local'. Feb 26 19:16:16.126578 osdx ca-certificates[31695]: Updating certificates in /etc/ssl/certs... Feb 26 19:16:16.908344 osdx ca-certificates[32680]: 1 added, 0 removed; done. Feb 26 19:16:16.916592 osdx ca-certificates[32684]: Running hooks in /etc/ca-certificates/update.d... Feb 26 19:16:16.922624 osdx ca-certificates[32688]: done. Feb 26 19:16:17.060753 osdx systemd[1]: Started DNSCrypt client proxy. Feb 26 19:16:17.064607 osdx cfgd[997]: [2572]Completed change to active configuration Feb 26 19:16:17.074037 osdx OSDxCLI[2572]: User 'admin' committed the configuration. Feb 26 19:16:17.098979 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [NOTICE] dnscrypt-proxy 2.0.45 Feb 26 19:16:17.099658 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [NOTICE] Network connectivity detected Feb 26 19:16:17.100346 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [NOTICE] Dropping privileges Feb 26 19:16:17.107690 osdx OSDxCLI[2572]: User 'admin' left the configuration menu. Feb 26 19:16:17.108458 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [NOTICE] Network connectivity detected Feb 26 19:16:17.108637 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [NOTICE] Now listening to 127.0.0.1:53 [UDP] Feb 26 19:16:17.108743 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [NOTICE] Now listening to 127.0.0.1:53 [TCP] Feb 26 19:16:17.108879 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [NOTICE] Firefox workaround initialized Feb 26 19:16:17.108994 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [NOTICE] Loading the set of cloaking rules from [/tmp/tmplPIjju] Feb 26 19:16:17.323860 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'system journal show | cat'. Feb 26 19:16:17.396028 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [NOTICE] [RD] OK (DoH) - rtt: 239ms Feb 26 19:16:17.396028 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [NOTICE] Server with the lowest initial latency: RD (rtt: 239ms) Feb 26 19:16:17.396028 osdx dnscrypt-proxy[32738]: [2024-02-26 19:16:17] [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.16Show 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
9f:5f:11:66:a4:9d:1d:1e:3c:92:32:26:75:1d:ea:58:f7:e9:b1:9b:46:32:96:0a:71:97:b0:56:15:e3:ee:6f
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 9f:5f:11:66:a4:9d:1d:1e:3c:92:32:26:75:1d:ea:58:f7:e9:b1:9b:46:32:96:0a:71:97:b0:56:15:e3:ee:6f 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 Mon 2024-02-26 19:16:26 UTC, end at Mon 2024-02-26 19:16:31 UTC. -- Feb 26 19:16:26.430091 osdx systemd-journald[1369]: Runtime journal (/run/log/journal/bb5e03885d754db09ee63ec3d68ce029) is 2.0M, max 16.0M, 14.0M free. Feb 26 19:16:26.447891 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'system journal clear'. Feb 26 19:16:27.119977 osdx osdx-coredump[1961]: Deleting all coredumps in /opt/vyatta/etc/config/coredump... Feb 26 19:16:27.131746 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'system coredump delete all'. Feb 26 19:16:28.171543 osdx OSDxCLI[2572]: User 'admin' entered the configuration menu. Feb 26 19:16:28.295501 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 10.215.168.64/24'. Feb 26 19:16:28.439327 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set protocols static route 0.0.0.0/0 next-hop 10.215.168.1'. Feb 26 19:16:28.593522 osdx kernel: 8021q: adding VLAN 0 to HW filter on device eth0 Feb 26 19:16:28.715339 osdx cfgd[997]: [2572]Completed change to active configuration Feb 26 19:16:28.770764 osdx OSDxCLI[2572]: User 'admin' committed the configuration. Feb 26 19:16:28.821035 osdx OSDxCLI[2572]: User 'admin' left the configuration menu. Feb 26 19:16:29.029239 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. Feb 26 19:16:29.216379 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'service dns proxy dnscrypt public-key running://dnscrypt.crt'. Feb 26 19:16:29.423322 osdx OSDxCLI[2572]: User 'admin' entered the configuration menu. Feb 26 19:16:29.547016 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set system certificate trust running://remote.dns-server.crt'. Feb 26 19:16:29.689185 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy server-name RD'. Feb 26 19:16:29.812135 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-crypt ip 10.215.168.1'. Feb 26 19:16:29.927864 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-crypt port 8443'. Feb 26 19:16:30.048566 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-crypt provider name 2.dnscrypt-cert.remote.dns'. Feb 26 19:16:30.173205 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy static RD protocol dns-crypt provider public-key 9f:5f:11:66:a4:9d:1d:1e:3c:92:32:26:75:1d:ea:58:f7:e9:b1:9b:46:32:96:0a:71:97:b0:56:15:e3:ee:6f'. Feb 26 19:16:30.273175 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns resolver local'. Feb 26 19:16:30.431812 osdx ca-certificates[2096]: Updating certificates in /etc/ssl/certs... Feb 26 19:16:31.211934 osdx ca-certificates[3083]: 1 added, 0 removed; done. Feb 26 19:16:31.219518 osdx ca-certificates[3087]: Running hooks in /etc/ca-certificates/update.d... Feb 26 19:16:31.226337 osdx ca-certificates[3091]: done. Feb 26 19:16:31.372416 osdx systemd[1]: Started DNSCrypt client proxy. Feb 26 19:16:31.376178 osdx cfgd[997]: [2572]Completed change to active configuration Feb 26 19:16:31.386550 osdx OSDxCLI[2572]: User 'admin' committed the configuration. Feb 26 19:16:31.411179 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] dnscrypt-proxy 2.0.45 Feb 26 19:16:31.411764 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] Network connectivity detected Feb 26 19:16:31.412492 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] Dropping privileges Feb 26 19:16:31.415716 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] Network connectivity detected Feb 26 19:16:31.415960 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] Now listening to 127.0.0.1:53 [UDP] Feb 26 19:16:31.416076 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] Now listening to 127.0.0.1:53 [TCP] Feb 26 19:16:31.416217 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] Firefox workaround initialized Feb 26 19:16:31.416374 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] Loading the set of cloaking rules from [/tmp/tmpMc4iCu] Feb 26 19:16:31.417977 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] [RD] OK (DNSCrypt) - rtt: 0ms Feb 26 19:16:31.418118 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] Server with the lowest initial latency: RD (rtt: 0ms) Feb 26 19:16:31.418247 osdx dnscrypt-proxy[3141]: [2024-02-26 19:16:31] [NOTICE] dnscrypt-proxy is ready - live servers: 1 Feb 26 19:16:31.429568 osdx OSDxCLI[2572]: 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.16Show 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
9f:5f:11:66:a4:9d:1d:1e:3c:92:32:26:75:1d:ea:58:f7:e9:b1:9b:46:32:96:0a:71:97:b0:56:15:e3:ee:6f
Step 2: Run command service dns proxy stamp calculate dns-crypt provider-name 2.dnscrypt-cert.remote.dns provider-key 9f:5f:11:66:a4:9d:1d:1e:3c:92:32:26:75:1d:ea:58:f7:e9:b1:9b:46:32:96:0a:71:97:b0:56:15:e3:ee:6f ip 10.215.168.1 port 8443
at DUT0
and expect this output:
Show output
sdns://AQAAAAAAAAAAETEwLjIxNS4xNjguMTo4NDQzIJ9fEWaknR0ePJIyJnUd6lj36bGbRjKWCnGXsFYV4-5vGjIuZG5zY3J5cHQtY2VydC5yZW1vdGUuZG5z
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://AQAAAAAAAAAAETEwLjIxNS4xNjguMTo4NDQzIJ9fEWaknR0ePJIyJnUd6lj36bGbRjKWCnGXsFYV4-5vGjIuZG5zY3J5cHQtY2VydC5yZW1vdGUuZG5z' 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 Mon 2024-02-26 19:16:40 UTC, end at Mon 2024-02-26 19:16:45 UTC. -- Feb 26 19:16:40.426275 osdx systemd-journald[1369]: Runtime journal (/run/log/journal/bb5e03885d754db09ee63ec3d68ce029) is 2.0M, max 16.0M, 14.0M free. Feb 26 19:16:40.444837 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'system journal clear'. Feb 26 19:16:41.126369 osdx osdx-coredump[4783]: Deleting all coredumps in /opt/vyatta/etc/config/coredump... Feb 26 19:16:41.137711 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'system coredump delete all'. Feb 26 19:16:42.181081 osdx OSDxCLI[2572]: User 'admin' entered the configuration menu. Feb 26 19:16:42.304423 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set interfaces ethernet eth0 address 10.215.168.64/24'. Feb 26 19:16:42.446180 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set protocols static route 0.0.0.0/0 next-hop 10.215.168.1'. Feb 26 19:16:42.599129 osdx kernel: 8021q: adding VLAN 0 to HW filter on device eth0 Feb 26 19:16:42.719643 osdx cfgd[997]: [2572]Completed change to active configuration Feb 26 19:16:42.778428 osdx OSDxCLI[2572]: User 'admin' committed the configuration. Feb 26 19:16:42.827426 osdx OSDxCLI[2572]: User 'admin' left the configuration menu. Feb 26 19:16:43.035818 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'ping 10.215.168.1 count 1 size 56 timeout 1'. Feb 26 19:16:43.216239 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'service dns proxy dnscrypt public-key running://dnscrypt.crt'. Feb 26 19:16:43.379433 osdx OSDxCLI[2572]: User 'admin' executed a new command: 'service dns proxy stamp calculate dns-crypt provider-name 2.dnscrypt-cert.remote.dns provider-key 9f:5f:11:66:a4:9d:1d:1e:3c:92:32:26:75:1d:ea:58:f7:e9:b1:9b:46:32:96:0a:71:97:b0:56:15:e3:ee:6f ip 10.215.168.1 port 8443'. Feb 26 19:16:43.585919 osdx OSDxCLI[2572]: User 'admin' entered the configuration menu. Feb 26 19:16:43.709617 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set system certificate trust running://remote.dns-server.crt'. Feb 26 19:16:43.851047 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy server-name RD'. Feb 26 19:16:43.982806 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns proxy static RD stamp 'sdns://AQAAAAAAAAAAETEwLjIxNS4xNjguMTo4NDQzIJ9fEWaknR0ePJIyJnUd6lj36bGbRjKWCnGXsFYV4-5vGjIuZG5zY3J5cHQtY2VydC5yZW1vdGUuZG5z''. Feb 26 19:16:44.082260 osdx OSDxCLI[2572]: User 'admin' added a new cfg line: 'set service dns resolver local'. Feb 26 19:16:44.237430 osdx ca-certificates[4918]: Updating certificates in /etc/ssl/certs... Feb 26 19:16:45.023904 osdx ca-certificates[5902]: 1 added, 0 removed; done. Feb 26 19:16:45.032166 osdx ca-certificates[5906]: Running hooks in /etc/ca-certificates/update.d... Feb 26 19:16:45.038314 osdx ca-certificates[5910]: done. Feb 26 19:16:45.175735 osdx systemd[1]: Started DNSCrypt client proxy. Feb 26 19:16:45.179428 osdx cfgd[997]: [2572]Completed change to active configuration Feb 26 19:16:45.189227 osdx OSDxCLI[2572]: User 'admin' committed the configuration. Feb 26 19:16:45.214318 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] dnscrypt-proxy 2.0.45 Feb 26 19:16:45.214949 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] Network connectivity detected Feb 26 19:16:45.215706 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] Dropping privileges Feb 26 19:16:45.222439 osdx OSDxCLI[2572]: User 'admin' left the configuration menu. Feb 26 19:16:45.223686 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] Network connectivity detected Feb 26 19:16:45.223874 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] Now listening to 127.0.0.1:53 [UDP] Feb 26 19:16:45.223981 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] Now listening to 127.0.0.1:53 [TCP] Feb 26 19:16:45.224125 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] Firefox workaround initialized Feb 26 19:16:45.224236 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] Loading the set of cloaking rules from [/tmp/tmpyizngH] Feb 26 19:16:45.226113 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] [RD] OK (DNSCrypt) - rtt: 0ms Feb 26 19:16:45.226345 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] Server with the lowest initial latency: RD (rtt: 0ms) Feb 26 19:16:45.226466 osdx dnscrypt-proxy[5960]: [2024-02-26 19:16:45] [NOTICE] dnscrypt-proxy is ready - live servers: 1
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.16Show output
teldat.com has address 19.18.17.16