dns. 12.1 dns resource records 12.2 the naming authority pointer (naptr) dns rr 12.4 service...

14
DNS

Upload: amos-freeman

Post on 24-Dec-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

DNS

Page 2: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

12.1 DNS resource records 12.2 The naming authority pointer (NAPTR) DNS RR 12.4 Service records (SRVs)

Page 3: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

12.1 DNS resource records

Domain Name Service (DNS) a distributed database holding the alphanumeric

names and their corresponding IP addresses (and more) of every registered system on a Transmission Control Protocol (TCP)/IP network, such as the Internet or the IP Multimedia Subsystem (IMS)

each entry is referred to as a resource record (RR)

Page 4: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

The alphanumeric names (domain names) are hierarchical in nature where country, company, department and even a host (machine) name can be identified each step in the hierarchy is identified as a zone

The domain name below identifies a machine named pc27 in the engineering department of an Australian company called Foobar

pc2 7.engineering.foobar.com.au

Page 5: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

An entry in a DNS server that maps a domain name to an IP address is referred to as an address record, or A record In IPv6 these records are referred to as AAAA recor

ds

Page 6: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

12.2 The naming authority pointer (NAPTR) DNS RR

NAPTR RRs are used to replace compact, regular expressions with a replacement field that may well be a pointer to another rule

The DNS-type code for NAPTR is 35 Table 12.1 describes each field in detail The format of a NAPTR record is as follows

Domain TTL Class Type Order Preference Flag Service Regexp Replacement

Page 7: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)
Page 8: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

12.2.1 NAPTR example

This example uses the SIP service A NAPTR RR looks like

Page 9: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

In this example a client of the SIP service that does not support the Transport Layer Security (TLS) performs a NAPTR RR look-up for the "example.com." domain and selects the replacement

_sip._tcp.example.com

Page 10: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

12.4 Service records (SRVs)

An entity must know the exact address of a server to contact for a service

With the introduction of SRV RRs in [RFC2782], DNS clients can query a domain for a service or protocol and get back the names of servers

Administrators can use SRV RRs to distribute the load by using several servers to service a single domain

The DNS-type code for SRVs is 33 Table 12.2 describes each field in detail

Page 11: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)
Page 12: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

The format of an SRV record is as follows

_Service._Proto.Name TTL Class SRV Priority Weight Port Target

Page 13: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

12.4.1 SRV example

Continuing with the example, the SRV RR looks like

Page 14: DNS.  12.1 DNS resource records  12.2 The naming authority pointer (NAPTR) DNS RR  12.4 Service records (SRVs)

In this example the client of the SIP service in the "examp.com" domain performs an SRV look-up of "_sip._tcp.example.com" followed by an A record look-up for

server2.example.com