DNS Flashcards
What DNS stand for?
Domain Name System
What DNS does?
Maps ip address to domain name
What is DNS Zone?
A small database/file that contains records for a domain name
What is Name Server?
A server that hosts one or more zones and stores one or more zone files.
Identified as NS.
NS allows to delegate ownership of subdomain to another name server.
What is authoritative?
Name servers that contain genuine records for a domain name and has authority over other NS for specific domain.
What is Non-Authoritative?
Name server that caches a list of records/zones to improve performance.
What is DNS architecture?
Hierarchical architecture.
- DNS ROOT - where all the queries start “.”
- TOP Level domain (TLD) - for example “.com”
- Authoritative name servers - for example “netflix.com”
- contains all the records
How domain is registered?
- Registrar checks with dns registry if domain is available
- Registrar issues/creates public zone
- Registrar requests/hosts public zone in multiple name servers
- Registrar requests TLD to insert public zone for purchased domains name servers
What is domain registrar?
A domain name registrar is a business that handles the reservation of domain names as well as the assignment of IP addresses for those domain names.
Registrars do not actually manage and maintain domain names.
What is domain registry?
DNS registry is a database that holds all TLD domain names associated with registrant information.
Registry is used by registrar to check if domain is available.
How DNSSEC works?
DNSSEC after executing DNS query executes another query which retrieves signature from the DNS server. Then checks if signature is valid and is signed by correct owner.
Signature is saved in RRSIG record.
DNSSEC uses chain of trust where starting from root domain there is signatures of next domain names signing key.
What is DNSSEC?
DNSSEC is a backwards compatible extension for DNS. It allows to verify if data integrity for DNS entries by using public key cryptography.
It checks if DNS data retrieved is signed with correct owner of the data.
What is RRSIG?
Resource Record Signature
A record containing an RRSet’s digital signature.
How DNS can bring performance issues?
Having multiple subdomains will increase latency by walking the DNS tree. For each subdomain one more query is made.
This can be solved by increasing TTL, but first query still will be slow.
What is RRSET?
Resource Record Set.
A set of records with the same type and same domain zone.