DNS 2 Flashcards

Learn about what DNS is and how it works

1
Q

What are the characters in DNS

A
  • Browser
  • Function
  • Resolver
  • Authoritative name-servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When your browser makes a DNS query what does it ask?

A

It asks a resolver.

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

What gets updated whenever you update a domain’s DNS records?

A

When you update a domain’s DNS records you update the authoritative name-server.

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

How does a resolver handle queries?

A
  1. The resolver checks its cache
  2. If that fails it finds the right authoritative name-server and asks it.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does an authoritative name-server handle queries?

A

It checks its database for a match.

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

What are some other names for resolvers?

A

Other names for resolvers include:
- recursive resolver
- DNS recursor
- public DBS server
- recursive nameserver
- DNS resolution service
- caching-only nameserver

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

What are the two types of authoritative nameservers?

A

The two types of authoritative nameservers are:
- root nameserver
- TLD nameserver

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

What are the 3 levels of authoritative nameservers?

A

The three levels of authoritative nameservers are:
- root
- TLD
- Authoritative

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

What does the root nameserver?

A

The root nameserver provides the information required to locate the correct TLD nameserver.

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

What does the TLD nameserver do?

A

The TLD nameserver manages domains that share a common top level domain extension. hey act as a bridge between the root servers and the authoritative nameservers for specific domains, they direct DNS queries to the correct authoritative nameservers.

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

What does the authoritative nameserver do?

A

Authoritative nameservers provide answers to DNS queries such as a websites IP address.

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

What is the lifecycle of a DNS query?

A
  1. The user enters a url into the browser.
  2. The browser checks if it has an ip address for the website cached, if it doesn’t it asks a resolver.
  3. The resolver checks its cache to see if it has the ip address, if it doesn’t it asks the root nameserver
  4. The root nameserver gives the resolver the address of the TLD nameserver.
  5. The resolver asks the TLD nameserver and the TLD nameserver gives the resolver the address of the authoritative nameserver.
  6. The resolver asks the authoritative nameserver and the authoritative nameserver tells the resolver.
  7. The resolver tells the browser.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the 5 parts of a DNS record?

A

The 5 parts of a DNS record are:
- name
- type
- value
- class
- TTL

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

What is TTL?

A

TTL is time to live, it is how long the record will be cached for in seconds.

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

What does the class field specify?

A

The class field specifies the type of network the record applies to.

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

What does the type field specify?

A

The type field specifies what kind of data is associated with a domain or a host name.

17
Q

What are the two types of DNS records the root nameserver can return?

A

The root nameserver can return NS records in the authority section and glue records in the additional section.

18
Q

What does a NS record give you?

A

NS records give you the domain name of the server to communicate with next but not its IP address.

19
Q

What does a glue record do?

A

A glue record provides the IP address for a domains authoritative nameserver when those nameservers are located within the same domain.

20
Q

How many levels of subdomains are allowed?

A

Maximum 127.

21
Q

How can you create a subdomain?

A

You can create a subdomain by creating a DNS record in your authoritative nameservers.

22
Q

What are the 2 ways a nameserver can handle subdomains?

A
  1. Storing the DNS records itself
  2. Redirecting to another authoritative nameserver.
23
Q

How do you avoid negative caching?

A

Negative caching can be avoided by making sure you don’t visit your domain before you create its DNS record.

24
Q

What is negative caching?

A

Negative caching is storing information about unsuccessful DNS lookups in a cache.

25
What are some of the reasons that resolvers might lie?
Some reasons resolvers may lie are: - blocking ads/malware - Showing ads (DNS hijacking) - Internal domain names
26
How does your computer know what resolver to use?
When you connect to a network the router tells your computer which search domain and resolver to use using DCHP (Dynamic Host Configurations Protocol)