Académique Documents
Professionnel Documents
Culture Documents
Adam Siemion
Overview
●
What is DNS ?
●
How does it work ?
●
Terminology
●
Rev DNS
●
Types of resource records
●
Two open-source implementations: BIND &
MyDNS
What is DNS ?
●
Domain Name System
●
Invented in 1984
●
Maps names to ip addresses
●
Decentralized database
●
Client-server architecture
●
Hierarchic structure
Terminology
●
name server
●
delegation
●
zone against domain
●
primary & secondary name servers
●
NASK – Naukowa Akademicka Sieć
Komputerowa
●
resource records
●
propagation
How does it work ?
●
Client uses resolver
●
Resolver sends query to DNS server
●
DNS server asks other DNS servers
(recursive) or returns information, which
server client should ask (iterative)
RDNS
●
reverse DNS
●
maps ip addresses to names
●
application
Resource records
●
SOA – start of authority
●
NS – name server
●
MX – mail exchange
●
A - address
●
CNAME - alias
●
PTR
●
TXT – text information
Record SOA
●
Primary name server
●
Hostmaster e-mail
●
Serial number
●
Refresh
●
Retry
●
Expire
●
TTL (time to live)
BIND
●
Berkley Internet Name Domain
●
Security
●
Microsoft included it into Windows NT
Sample configuration
●
named.conf:
zone “d.pl” in { type master; file “d.pl.zone”; } // primary NS
zone “d.pl” in { type slave; file “d.pl.zone”; master { 1.1.1.1; }; };
●
d.pl.zone:
d.pl. IN SOA ns1.d.pl. admin.d.pl. ( 1 10800 3600 604800 86400 )
d.pl. IN NS ns1
IN NS ns2.d.pl.
www IN A 127.0.0.1
@ IN MX 10 mx10
IN MX 20 mx20.d.pl.
poczta IN A poczta.inna.domena.pl.
MyDNS
●
Free DNS server implementation
●
Written from scratch
●
Uses SQL database
●
3S - stability & security & speed
●
Supports round robin DNS & load balancing