4.3 DHCP and DNS Flashcards

Summarize the role of DHCP and DNS within the network. (30 cards)

1
Q

What are two key functions of DNS?

A
  1. It resolves hostnames to IP addresses.
  2. It stores mail server details for domains.

DNS translates domain names into IP addresses, facilitating web navigation, and it maintains information necessary for email routing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What protocol does DNS use for queries?

A

UDP on port 53 but switches to TCP for large queries.

DNS primarily uses UDP for fast, lightweight queries. If a response exceeds 512 bytes, it switches to TCP for reliability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the main types of DNS records?

A
  1. A
  2. AAAA
  3. MX
  4. CNAME
  5. PTR

A – Maps a domain to an IPv4 address.

AAAA – Maps a domain to an IPv6 address.

MX – Identifies mail servers for a domain.

CNAME – Maps an alias to a canonical domain name.

PTR – Resolves an IP address to a domain name (reverse lookup).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What command can be used to query a DNS server for domain resolution?

A

nslookup (Windows) or dig (Linux/macOS).

nslookup is commonly used in Windows environments, while dig provides more detailed DNS query analysis in Linux and macOS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What’s the difference between authoritative and recursive DNS servers?

A
  • Authoritative DNS: Stores domain name information and provides final answers.
  • Recursive DNS: Queries other DNS servers to resolve names.

Recursive resolvers act as intermediaries, retrieving DNS information from authoritative servers when requested by clients.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What DNS record is used for reverse DNS lookups?

A

PTR

(Pointer Record)

A PTR record maps an IP address to a hostname, enabling reverse lookups often used in email verification and security measures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

True or False:

A root DNS server directs queries to TLD servers (e.g., .com, .org).

A

True

Root DNS servers are the foundation of the DNS hierarchy, managing requests for top-level domains (TLD) and guiding queries to authoritative servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the difference between a recursive and an iterative DNS query?

A
  • Recursive query: The DNS server resolves the request completely before responding.
  • Iterative query: The DNS server provides referrals to other servers for resolution.

In recursive queries, the client relies on a DNS server to complete the resolution process, while in iterative queries, the client may need to contact multiple DNS servers until it gets a final answer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of a DNS forwarder?

A

It forwards DNS queries to external servers.

A DNS forwarder reduces the load on internal DNS servers by offloading external queries to another server, improving efficiency and response time for domain resolution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is DHCP’s primary function?

A

It automates IPv4 configuration.

DHCP (Dynamic Host Configuration Protocol) assigns IP addresses dynamically to hosts, reducing the need for manual configuration in a TCP/IP network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Fill in the blank:

Hosts use the address ______ to communicate when they have not yet received an IP address from DHCP.

A

0.0.0.0

The address 0.0.0.0 is utilized by hosts that lack an assigned IP address, allowing them to send DHCP Discover messages. In contrast, 255.255.255.255 is used for local broadcasts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

List four essential pieces of information needed to set up a DHCP server.

A
  1. Default router
  2. DNS server addresses
  3. Reserved/excluded addresses
  4. Scope

Default router – Gateway for client network access.

DNS server addresses – Resolves domain names to IPs.

Reserved/excluded addresses – Prevents conflicts with static IPs.

Scope – Defines the range of assignable IP addresses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What three values does a device need from DHCP for network access?

A
  1. Device’s IP address
  2. Default gateway IP address
  3. Subnet mask

For proper configuration, a host needs its own IP address, the default gateway, and the subnet mask. It does not require the DNS server’s domain name but rather its IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the four main DHCP message types in the leasing process?

A
  1. Discover
  2. Offer
  3. Request
  4. Acknowledgment

Discover – Client searches for a DHCP server.

Offer – Server proposes an IP lease.

Request – Client asks for the offered IP.

Acknowledgment – Server confirms and finalizes the lease.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Fill in the blank:

The IP address ______ is used for local broadcast in DHCP communications.

A

255.255.255.255

This broadcast address allows a client to send DHCP requests before receiving an IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What happens when the DHCP process fails for a client?

A

The client self-assigns an APIPA address.

If DHCP fails, the client uses Automatic Private IP Addressing (APIPA) from the range 169.254.0.0/16, allowing local communication only.

17
Q

What command is used on routers to support DHCP for remote subnets?

A

ip helper-address server-ip

This command forwards DHCP messages from clients in one subnet to a DHCP server located in another subnet.

18
Q

What information does a DHCP server typically store for each subnet?

A
  • Subnet ID and mask
  • Reserved (excluded) addresses
  • Default router(s)
  • DNS IP address(es)

These settings ensure proper DHCP lease allocation within a subnet.

19
Q

True or False:

DHCP servers are usually hardware in secure data centers.

A

False

DHCP servers are usually software-based and run on general-purpose servers or network appliances.

20
Q

What is the purpose of the DHCP relay feature?

A

It forwards DHCP messages between subnets.

DHCP relay agents allow clients on remote subnets to communicate with a centralized DHCP server.

21
Q

Fill in the blank:

DHCP clients use ______ messages to discover a DHCP server.

A

broadcast

DHCP clients broadcast a DHCP Discover message to locate available DHCP servers.

22
Q

What command is required for a switch to act as a DHCP client?

A

ip address dhcp

Applying this command to an interface allows a switch to obtain an IP address dynamically from a DHCP server.

23
Q

True or False:

DHCP can operate in dynamic, automatic, and static allocation modes.

A

True

Dynamic allocation assigns IPs temporarily, automatic allocation permanently assigns them, and static allocation reserves specific IPs for devices.

24
Q

What command verifies the IP address leased by a switch via DHCP?

A

show dhcp lease

This command displays the IP address and lease information assigned to the switch.

25
What is the **significance** of the default gateway for routers using DHCP?
It defines the **default route**. ## Footnote The default gateway IP is used to *route traffic* from the local subnet to external networks.
26
# True or False: If a client **doesn't renew**, the DHCP server **reclaims** the address.
True ## Footnote Expired leases allow the server to **reassign** IP addresses to new clients.
27
What **key information** is included in DHCP client settings on a host?
* IP address * Subnet mask * Default router * DNS server addresses ## Footnote These settings are assigned dynamically by a *DHCP server*.
28
What is the typical **IP address range** for APIPA?
169.254.0.1 to 169.254.255.254. ## Footnote **APIPA** provides automatic addressing in the *absence of a DHCP server*.
29
What happens when **DHCP is disabled** on a Windows host?
The host must be **manually configured** with a static IP. ## Footnote Without **DHCP**, users must manually set an IP, subnet mask, default gateway, and DNS.
30
List **two conditions** for a router to be a DHCP relay.
1. It must be configured with ip helper-address. 1. The subnet must not have its own DHCP server. ## Footnote These conditions ensure *DHCP messages* are relayed **properly**.