DNS Flashcards
What is DNS?
Domain name system, how to map between IP addresses and “names” like websites
DNS services
hostname to IP address translation, host aliasing, mail server ailiasing, load distribution
DNS structure
decentralized to make it easier to scale and more resilient to failure, less vulnerable to censorship, easier to handle traffic volume and maintain, tree-like structure with root at top and sub-domains below(.com, org, edu).
What are the DNS root name servers?
server that gets contacted by local name server that cannot resolve name, directly answer requests for records in the root zone and return list of authoritative/TopLevelDomain servers otw
what are the TLD servers?
after contacting the root name servers, the local DNS resolver queries one of these domains which returns the IP address for the requested domain name, and that address can then be accessed by the requesting host
what is a local DNS name server
each ISP has one, when a host makes a DNS query the query is sent to its local DNS server, which acts as a proxy and forwards query into hierarchy
DNS caching
once any name server learns mapping, it caches it, but cache entries timeout/disappear after some time. TLD servers are usually cached to avoid always going to the root. If a name host changes IP addresses, change may not be known until the timeout happens.
what is zeroconf?
a set of technologies that automatically creates a usable computer network based on the Internet Protocol Suite (TCP/IP) when computers or network peripherals are interconnected. It does not require manual operator intervention or special configuration servers.
how does zeroconf assign IP addresses
picks random adresses, checks for dulicates with DAD, if duplicates then reassign and recheck
zeroconf hostname resolution
every computer on the local network stores an individual listing of DNS resources and joins the mDNS, hostname picked by the user
what is DNS-ServiceDiscovery?
uses three DNS record types to define location, status, type, and capabilities for services: PTR enumerates available service instances, SRV/A resolves specific service instances, and TXT contains additional information