DHCP and DNS Flashcards

(50 cards)

1
Q

What is the primary purpose of DHCP?
a) To resolve domain names to IP addresses
b) To automatically assign IP addresses to network devices
c) To encrypt network traffic
d) To route packets between networks

A

Answer: b

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

Which port does DHCP use for client-server communication?
a) TCP 53
b) UDP 67 and 68
c) TCP 80
d) UDP 161

A

Answer: b

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

What is the first message sent by a DHCP client to obtain an IP address?
a) DHCP Offer
b) DHCP Request
c) DHCP Discover
d) DHCP Acknowledge

A

Answer: c

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

Which DHCP message is sent by the server to confirm an IP address assignment?
a) DHCP Offer
b) DHCP Request
c) DHCP Discover
d) DHCP Acknowledge (ACK)

A

Answer: d

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

What is a DHCP lease time?
a) The time taken to discover a DHCP server
b) The duration for which an IP address is assigned to a client
c) The time taken to renew an IP address
d) The interval between DHCP Offers

A

Answer: b

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

Which DHCP message does a client send to renew its IP address before lease expiration?
a) DHCP Request (unicast)
b) DHCP Discover (broadcast)
c) DHCP Release
d) DHCP Decline

A

Answer: a

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

What is the purpose of a DHCP relay agent?
a) To assign static IP addresses
b) To forward DHCP messages between different subnets
c) To encrypt DHCP traffic
d) To resolve hostnames

A

Answer: b

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

Which command is used to configure a Cisco router as a DHCP server?
a) ip dhcp pool
b) ip helper-address
c) dhcp enable
d) ip dhcp-client

A

Answer: a

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

What is the default lease time for DHCP-assigned addresses if not specified?
a) 1 hour
b) 24 hours
c) 7 days
d) 30 minutes

A

Answer: b

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

Which DHCP message does a client send to release its IP address voluntarily?
a) DHCP Request
b) DHCP Release
c) DHCP Decline
d) DHCP Inform

A

Answer: b

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

What is the purpose of the ip helper-address command?
a) To configure a router as a DHCP server
b) To forward DHCP broadcasts to a specific server
c) To assign a static IP address
d) To disable DHCP services

A

Answer: b

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

Which DHCP option is used to provide the default gateway address?
a) Option 3
b) Option 6
c) Option 15
d) Option 66

A

Answer: a

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

What happens if a DHCP server is unavailable?
a) The client uses a static IP
b) The client uses APIPA (169.254.x.x)
c) The client keeps the old IP forever
d) The client stops functioning

A

Answer: b

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

Which command shows DHCP lease information on a Cisco router?
a) show dhcp lease
b) show ip dhcp binding
c) show running-config
d) show dhcp server

A

Answer: b

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

What is DHCP snooping used for?
a) To prevent rogue DHCP servers
b) To speed up DHCP requests
c) To encrypt DHCP traffic
d) To assign static IPs

A

Answer: a

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

What is the primary function of DNS?
a) To assign IP addresses dynamically
b) To resolve domain names to IP addresses
c) To encrypt web traffic
d) To route packets between networks

A

Answer: b

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

Which port does DNS primarily use?
a) TCP 80
b) UDP 53
c) TCP 443
d) UDP 67

A

Answer: b

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

What is a DNS resolver?
a) A server that stores DNS records
b) A client that queries DNS servers
c) A protocol for secure DNS
d) A type of DNS attack

A

Answer: b

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

Which DNS record maps a hostname to an IPv4 address?
a) AAAA
b) MX
c) A
d) CNAME

A

Answer: c

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

What does an MX record specify?
a) The mail server for a domain
b) The IPv6 address of a host
c) An alias for a domain
d) The start of authority for a domain

A

Answer: a

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

Which DNS record is used for IPv6 addresses?
a) A
b) AAAA
c) PTR
d) CNAME

22
Q

What is a CNAME record used for?
a) To define an alias for a hostname
b) To specify an IPv4 address
c) To point to a mail server
d) To provide DNSSEC authentication

23
Q

What is the purpose of a PTR record?
a) To map an IP address to a hostname (reverse DNS)
b) To define a mail server
c) To alias a domain name
d) To provide DNSSEC

24
Q

Which command is used to test DNS resolution in Windows?
a) ping
b) tracert
c) nslookup
d) ipconfig

25
What is a recursive DNS query? a) A query where the server finds the answer itself b) A query where the server returns a cached answer c) A query where the client contacts multiple servers d) A query that only works with IPv6
Answer: a
26
What is TTL in DNS? a) Time-to-Live (how long a record is cached) b) A type of DNS attack c) A secure DNS protocol d) A DNS server type
Answer: a
27
Which DNS server holds the authoritative records for a domain? a) Recursive resolver b) Root server c) Authoritative DNS server d) Caching server
Answer: c
28
What is the purpose of the NS record? a) To specify name servers for a domain b) To map a hostname to an IP c) To define a mail server d) To alias a domain
Answer: a
29
Which protocol is used for secure DNS queries? a) HTTP b) FTP c) DNSSEC d) SMTP
Answer: c
30
What is the role of a root DNS server? a) It stores all DNS records for every domain b) It directs queries to TLD (Top-Level Domain) servers c) It acts as a local DNS cache d) It assigns IP addresses
Answer: b
31
Which command flushes the DNS cache in Windows? a) ipconfig /flushdns b) nslookup /flush c) dnsflush d) clear dns
Answer: a
32
What is a DNS zone? a) A portion of the DNS namespace managed by a server b) A type of DNS attack c) A secure DNS protocol d) A caching mechanism
Answer: a
33
Which DNS record is used for reverse DNS lookups? a) A b) MX c) PTR d) CNAME
Answer: c
34
What is DNS caching? a) Temporarily storing DNS query results to improve speed b) Encrypting DNS traffic c) Assigning static IPs via DNS d) A type of DNS attack
Answer: a
35
What is the purpose of the SOA record? a) Defines the start of authority for a DNS zone b) Maps a hostname to an IP c) Specifies a mail server d) Provides DNSSEC authentication
Answer: a
36
Which protocol dynamically assigns IP addresses, while the other resolves hostnames? a) DHCP assigns IPs, DNS resolves names b) DNS assigns IPs, DHCP resolves names c) Both assign IPs d) Both resolve names
Answer: a
37
Which command configures a router to forward DNS requests? a) ip dns server b) ip name-server c) dns forwarder d) ip helper-address
Answer: b
38
What is the main security concern with DHCP? a) Rogue DHCP servers b) Slow DNS resolution c) IP conflicts d) DNS cache poisoning
Answer: a
39
Which DNS attack involves corrupting the cache with false entries? a) DHCP starvation b) DNS spoofing c) ARP poisoning d) ICMP flood
Answer: b
40
What is the purpose of the DHCP Inform message? a) To request configuration without an IP lease b) To release an IP address c) To discover DHCP servers d) To renew an IP lease
Answer: a
41
Which DNS server type does not store original records but caches responses? a) Authoritative b) Recursive resolver c) Root server d) TLD server
Answer: b
42
What is the correct order of DHCP messages? a) Discover, Offer, Request, Acknowledge b) Request, Offer, Discover, Acknowledge c) Acknowledge, Request, Offer, Discover d) Offer, Discover, Acknowledge, Request
Answer: a
43
Which DNS record type is used for load balancing? a) A b) MX c) CNAME d) SRV
Answer: a (Multiple A records for the same domain)
44
What happens if two DHCP servers assign the same IP? a) The client detects a conflict and requests a new IP b) The network crashes c) The first assignment wins d) The router blocks the duplicate
Answer: a
45
Which command checks DNS resolution on a Cisco device? a) ping b) traceroute c) nslookup d) debug dns
Answer: a (ping uses DNS if a hostname is given)
46
What is the purpose of the DNS-SD protocol? a) Service discovery over DNS b) Secure DNS queries c) Dynamic IP assignment d) DNS caching
Answer: a
47
Which DHCP option provides DNS server information? a) Option 6 b) Option 3 c) Option 15 d) Option 53
Answer: a
48
What is the role of the DHCP Decline message? a) The client rejects an offered IP b) The server refuses a request c) The lease is renewed d) The IP is released
Answer: a
49
Which DNS record is used for VoIP and other services? a) A b) MX c) SRV d) PTR
Answer: c
50
What is the primary security mechanism for DNS? a) DHCP snooping b) DNSSEC c) IPsec d) SSL/TLS
Answer: b