Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully...

56
Fully Qualified Domain Names FQDNs

Transcript of Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully...

Page 1: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Fully Qualified Domain Names

FQDNs

Page 2: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

DNS Database

• A distributed, hierarchical database • Resolves Fully Qualified Domain Names

(FQDNs) to IP addresses–Distributed: Each DNS server is responsible

(authoritative) for only part of the DNS database–Hierarchical: Organized in levels

Page 3: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

FQDNsClient1.tech.sales.Company.com.

Host .(root)TopLevel

2nd LevelSub-domain

• FQDNs: The name of the host (the device assigned an IP address) and its location in the DNS “tree”

• Includes the name of the host and all DNS domains back to the .(root)

Page 4: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

FQDNs ContinuedClient1.tech.sales.Company.com.

Host .(root)TopLevel

2nd LevelSub-domain

• Name on the far left is the host• The period (.) on the far right represents the

.(root) of the DNS “tree”

Page 5: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Tips

• A DNS domain is a section of the DNS “tree.”• Do not confuse with an Active Directory

domain which is container in AD.• Example: Company.com might be one AD

domain but it would be two DNS domains.

Page 6: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Recap

• FQDN is the name of the host and its position in DNS tree

• Host name on the far left• .(root) server on the right• Every time you cross a period, it’s a different

DNS domain

Page 7: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Client Name Resolution

Page 8: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Client Name Resolution

1. Cache2. DNS Server

www.yahoo.com

Page 9: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

• Client checks to see if there is an entry in its DNS cache–View the DNS cache: ipconfig /displaydns–Clear the DNS cache: ipconfig /flushdns

Page 10: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

DNS Cache

Page 11: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

DNS Cache Continued

Page 12: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Hosts File

• All Windows clients have a Hosts file.• Located in the “c:\windows\system32\drivers\

etc” folder• Should only be edited with Notepad• Entries in the Hosts file pre-populate the

client DNS cache

Page 13: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Hosts File Continued

Page 14: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Hosts File Continued

Page 15: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Tips

• To save changes to Hosts file, open in an elevated copy of Notepad

• If you flush the DNS cache and an entry remains, check the Hosts file

Page 16: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Tips Continued• Any time a client needs a different IP for a host

than all other clients, use the Hosts file.DNS Server Intranet.Company.com

192.168.1.10

Intranet.Company.com

192.168.2.10

Production Network

Development Network

Page 17: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

• FQDN not in client cache, client forwards query to primary DNS server

• Client only contacts secondary DNS server if no response from primary

Page 18: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Recap

• Clients check their cache before querying DNS• If a client needs a different “answer” than

contained in DNS, use the Hosts file

Page 19: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Server Name Resolution

Page 20: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

1. Cache2. DNS Server

www.yahoo.com

1. Cache2. Authoritative

Page 21: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

DNS Server Name Resolution

1. DNS server checks its cache– To clear the DNS server cache use

dnscmd /clearcache2. DNS server determines if it is authoritative

for DNS domain–Authoritative servers host the records for

the domain

Page 22: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

1. Cache2. DNS Server

www.yahoo.com

1. Cache2. Authoritative3. Conditional Forwarding

Page 23: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

3. DNS server checks for Conditional Forwarding –DNS forward request if it matches a

condition, ie: a particular domain name– Example: forward all queries for

Microsoft.com to IP address 12.34.56.78

Note: Conditional Forwarding will be covered more in-depth later.

Page 24: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Conditional Forwarding

Page 25: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

1. Cache2. DNS Server

www.yahoo.com

1. Cache2. Authoritative3. Conditional Forwarding4. Forwarding

Page 26: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

4. DNS server checks for Forwarding– Forwards all requests for which server is

not authoritative to another DNS server– This may be done for:• Security • Server is a caching only server: Not

authoritative for any domains

Page 27: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Forwarding Continued

Internal NetworkInternet

DMZ

Page 28: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Forwarding Continued

Page 29: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

1. Cache2. DNS Server

www.yahoo.com

1. Cache2. Authoritative3. Conditional Forwarding4. Forwarding5. Root Hints

.(root)

Page 30: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

5. DNS server uses Root Hints– “Root Hints” tab contains names and IP

addresses of all.(root) servers

Note: Visit www.root-servers.org for a list and map of all .(root) servers.

Page 31: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Root Hints

Page 32: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

.(root) Servers• .(root) servers are authoritative for the .(root)

domain.

Page 33: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Tips• When a DNS server has a .(root) zone

“Forwarders” and “Root Hints” are disabled.

Page 34: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Tips Continued

• If server hosts a .(root) zone: – “Forwarders” and “Root Hints” disabled– Server will not be able to resolve

Internet names –Delete the .(root) zone to resolve names on

the Internet

Page 35: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

1. Cache2. DNS Server

www.yahoo.com

1. Cache2. Authoritative3. Conditional Forwarding4. Forwarding5. Root Hints

.(root)

Page 36: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

• .(root) servers have delegations for top level domains

• Delegations identify name and IP address of authoritative DNS server for sub-domain

Page 37: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

1. Cache2. DNS Server

www.yahoo.com

1. Cache2. Authoritative3. Conditional Forwarding4. Forwarding5. Root Hints

.(root).com IN NS dns.comdns.com IN A 34.56.78.90

Page 38: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

1. Cache2. DNS Server

www.yahoo.com

.(root)

yahoo.com IN NS dns.yahoo.comdns.yahoo.com IN A 56.12.34.78

dns.com

Page 39: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

1. Cache2. DNS Server

www.yahoo.com

.(root)

yahoo.com IN NS dns.yahoo.comdns.yahoo.com IN A 56.12.34.78

dns.com

dns.yahoo.com

www.yahoo.com IN A 56.12.34.78

Page 40: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

1. Cache2. DNS Server

www.yahoo.com

.(root)

yahoo.com IN NS dns.yahoo.comdns.yahoo.com IN A 56.12.34.78

dns.com

dns.yahoo.com

www.yahoo.com IN A 56.12.34.78

56.12.34.78

Page 41: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

• DNS server obtains the IP address and stores it in server cache

• Forwards IP to client• Client stores it in client cache• Client initiates contact using IP address

Page 42: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Tips

• Hosts only communicate using IP addresses• DNS only matches host names to IP addresses;

it is not used in the actual communication• If you can ping a computer by IP address but

not by name, the problem is DNS

Page 43: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Recap

• Servers resolve names by:1. Cache2. Authoritative3. Conditional Forwarding4. Forwarding5. Root Hints

Page 44: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Recap Continued

• For Internet resolution: use Forwarding or Root Hints– Internet name resolution not working,

check for and delete .(root) zone• DNS servers have delegations used to locate

authoritative servers lower in the database

Page 45: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Conditional Forwarding and Stub Zones

Page 46: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

Corp.Company.com Int.Partner.com

Corp.Company.com and Int.Partner.com are not resolvable from the Internet.

After a company merger, clients in each forest must be able to resolve names in the other forest.

Page 47: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

Corp.Company.com Int.Partner.com

Since the domains are not resolvable using Root Hints, the DNS servers in each forest must be configured to directly contact the DNS servers in the other forest.

Page 48: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

In a complicated forest, DNS resolution can become challenging.Suppose clients in C.B.A needed to resolve names for resources in E.D.A.

C.B.A

B.A

A

D.A

E.D.A

Page 49: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

A

B.A

C.B.A

D.A

E.D.A

Page 50: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

A

B.A

C.B.A

D.A

E.D.A

Page 51: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

A

B.A

C.B.A

D.A

E.D.A

Page 52: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Name Resolution Continued

C.B.A

B.A

A

D.A

E.D.A

It would be faster if DNS servers in C.B.A could send requests right to the DNS servers in E.D.A.

Page 53: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Stub Zone

• Copy of the zone that contains only DNS server records

Page 54: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Conditional Forwarding

• Pro: does not require permission.• Pro: no transfer of records.• Con: static.

Page 55: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Stub Zones• Con: does require permission.• Con: some transfer of records.• Pro: dynamic.

Page 56: Fully Qualified Domain Names FQDNs. DNS Database A distributed, hierarchical database Resolves Fully Qualified Domain Names (FQDNs) to IP addresses –

Recap

• Conditional Forwarding/Stub Zones used to:–Resolve domains not available

through .(root)– Speed up internal name resolution in

complex AD• Conditional Forwarding (+no permission, +no

transfer of records, -static)• Stub zones (-needs permission, -minimal

transfer of records, +dynamic)