• Also called a recursive name server • Acts as an intermediary between user requests and DNS name servers • Sends requests to a sequence of DNS servers until it gets the response
TLD nameserver • Overseen by the ICANN • 13 DNS root nameservers addresses know by every recursive resolver • Multiple copies of each one and Anycast routing to route to the closest one • 632 di ff erent servers (as of October 2016)
a common domain extension (eg .com, .net …) • Respond by pointing the resolver to an authoritative nameserver • 2 groups • Generic TLD: .com, .org, .net, .edu, .gov • Country code TLD: .uk, .fr, .us, .ru
nitive information about one part of the Domain Name System • For example, if a DNS receives a request for www.example.com it returns the IP address 192.0.0.2.33
travels into the internet and is received by a DNS recursive resolver 2. The resolver queries the DNS root nameserver (.) 3. The root server responds to the resolver with a TLD DNS domain server which stores information for its domains DNS lookup steps
travels into the internet and is received by a DNS recursive resolver 2. The resolver queries the DNS root nameserver (.) 3. The root server responds to the resolver with a TLD DNS domain server which stores information for its domains 4. The resolver makes a request to the TLD server DNS lookup steps
travels into the internet and is received by a DNS recursive resolver 2. The resolver queries the DNS root nameserver (.) 3. The root server responds to the resolver with a TLD DNS domain server which stores information for its domains 4. The resolver makes a request to the TLD server 5. The TLD server responds with the domain’s nameserver DNS lookup steps
nameserver 7. The IP address of example.com is the returned to the resolver 8. The DNS resolver responds to the browser with the IP address initially requested DNS lookup steps
nameserver 7. The IP address of example.com is the returned to the resolver 8. The DNS resolver responds to the browser with the IP address initially requested 9. The browser makes the HTTP request to the IP address DNS lookup steps
nameserver 7. The IP address of example.com is the returned to the resolver 8. The DNS resolver responds to the browser with the IP address initially requested 9. The browser makes the HTTP request to the IP address 10.The server at this IP address returns the webpage to be rendered DNS lookup steps
record example.com. 86321 IN SOA ns1.example.in. magesh.maruthamuthu.gmail.com. 2013110202 86400 7200 3600000 86400 Primary nameserver Administrator’s Email Zone fi le serial number TTL
record example.com. 86321 IN SOA ns1.example.in. magesh.maruthamuthu.gmail.com. 2013110202 86400 7200 3600000 86400 Primary nameserver Administrator’s Email Zone fi le serial number Refresh time interval Retry after failed refresh interval Retry after failed refresh interval Negative result TTL TTL
domain TXT record example.com. 12127 IN TXT "This domain name is reserved for use in documentation" example.com. 12127 IN TXT "v=spf1 ip4:182.71.233.70 +a +mx +ip4:49.50.66.31 ?all" example.com. 12127 IN TXT “v=DMARC1;p=none;sp=quarantine;pct=100;rua=mailto:[email protected];"
name, not an IP • Cannot coexist with another record for the same name. It’s not possible to have both a CNAME and TXT record for www.example.com • Cannot be used at the apex of a zone. Eg: Cannot do yourdomain.com. CNAME some-id.ec2.amazonaws.com.
single resource • Failover routing policy: con fi gure active-passive failover • Geolocation routing policy: route to resources based on user location • Geoproximity route policy: route to resource based on your resources location • Latency routing policy: route tra ff i c to region that provides the best latency • Multivalue answer routing policy: route to records selected at random from a pool • Weighted routing policy: route tra ff i c to multiple resources in speci fi ed proportions Routing policies