# Quiz

## Question 1

Which of the following Windows command prompt commands will display the PC's DNS server? (select two).

1. `ipconfig`
2. `ipconfig /all`
3. `ipconfig /displaydns`
4. `nslookup`

<details>

<summary>Solution</summary>

2. `ipconfig /all`

4) `nslookup`

</details>

## Question 2

Which of the following statements about DNS are true? (select two)

1. Messages greater than 512 bytes in size are sent using UDP.
2. 'A' records map hostnames to IPv4 addresses.
3. 'AAA' records map hostnames to IPv6 addresses.
4. A Cisco router can be configured as a DNS server and DNS client at the same time.

<details>

<summary>Solution</summary>

2. 'A' records map hostnames to IPv4 addresses.

4) A Cisco router can be configured as a DNS server and DNS client at the same time.

</details>

## Question 3

PC1 is configured to use an external server, 8.8.8.8, as its DNS server. What DNS command is necessary on R1 to enable this?

<figure><img src="https://1474932522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAgItg4KAZpnXjAFPWRf8%2Fuploads%2FsrmWlOk0WI7VYwRLS0Lw%2FScreenshot%20from%202023-08-01%2014-29-02.png?alt=media&#x26;token=d68ccbaa-643e-43ef-b0e1-667c842ab6a0" alt=""><figcaption></figcaption></figure>

1. `R1(config)# ip domain lookup`
2. `R1(config)# ip name-server 8.8.8.8`
3. `R1(config)# ip dns server`
4. No DNS configurations are needed on R1.

<details>

<summary>Solution</summary>

4. No DNS configurations are needed on R1.

</details>

## Question 4

Which of the following Cisco IOS commands shows the cached name/IP address mappings learned via DNS?

1. `R1# show hosts`
2. `R1# show dns cache`
3. `R1# ipconfig /displaydnd`
4. `R1# show dns hosts`

<details>

<summary>Solution</summary>

1. `R1# show hosts`

</details>

## Question 5

Which of the following protocols can hosts use to automatically learn the address of their DNS server?

1. DNS
2. SSH
3. DHCP
4. IP

<details>

<summary>Solution</summary>

3. DHCP

</details>
