CCNA Network Services and Security • Set 34
CCNA Network Services and Security Practice Test 34 — 15 questions with explanations. Free, no signup.
You are connected to R1. The network uses DNS to resolve hostnames for remote device management. Currently, R1 cannot resolve the hostname 'ServerA' via DNS. Using the nslookup and dig commands, you have gathered the following outputs:
nslookup ServerA Server: 203.0.113.1 Address: 203.0.113.1#53
Name: ServerA.example.com Address: 203.0.113.10
dig ServerA ... ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: ... ...
The show running-config command shows that 'ip domain-lookup' is enabled, the name-server is 203.0.113.1, and no static host entries are configured. Diagnose and fix the DNS resolution failure. Ensure that R1 can successfully resolve 'ServerA' to its intended IP address 198.51.100.10.
R1# show running-config | section ip domain ip domain lookup ip name-server 203.0.113.1 ip domain name example.com ! R1# show ip dns server DNS server: 203.0.113.1 Default domain: example.com R1# nslookup ServerA Server: 203.0.113.1 Address 1: 203.0.113.1 Name: ServerA.example.com Address 1: 203.0.113.10 R1# dig ServerA ; <<>> DiG 9.8.3 <<>> ServerA ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 1234 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ServerA. IN A ;; Query time: 10 msec ;; SERVER: 203.0.113.1#53(203.0.113.1) ;; WHEN: Thu Jan 18 12:00:00 2024 ;; MSG SIZE rcvd: 28 R1# ping ServerA Translating "ServerA"...domain server (203.0.113.1) % Unrecognized host or address, or protocol not running.
R1# show running-config | section ip domain ip domain lookup ip name-server 203.0.113.1 ip domain name example.com ! R1# show ip dns server DNS server: 203.0.113.1 Default domain: example.com R1# nslookup ServerA Server: 203.0.113.1 Address 1: 203.0.113.1 Name: ServerA.example.com Address 1: 203.0.113.10 R1# dig ServerA ; <<>> DiG 9.8.3 <<>> ServerA ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 1234 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ServerA. IN A ;; Query time: 10 msec ;; SERVER: 203.0.113.1#53(203.0.113.1) ;; WHEN: Thu Jan 18 12:00:00 2024 ;; MSG SIZE rcvd: 28 R1# ping ServerA Translating "ServerA"...domain server (203.0.113.1) % Unrecognized host or address, or protocol not running.