Escolar Documentos
Profissional Documentos
Cultura Documentos
Presentation
On
Domain
Name Server
History of DNS
Consistency
Name collision
The
What is DNS ?
Domain namespace
Zones
Nameservers
Resolver
Domain namespace
org
gov
com
dtd
google
www
edu
host: mail
Zones
microsoft
support
sales
training
Name server
Resource
Record
microsoft
Master
support
sales
training
Slave
Resolver
Querying a nameserver.
Recursive
Iterative
2.
ww
w.
ya
ho
o.
co
3.
m
?
As
k.
co
m
How Iterative
query works
4.
query for
1. www.yahoo.com?
client
6. w
ww
.ya
ho
7.
65.
10.
2.2
Local DNS
lien
t
m?
o
c
.
o
.yaho
w
w
w
.com
o
o
h
ya
k
s
A
5.
8. 65.10.2.2
9. C
.com DNS
con
nec
t 65
.10
.
yahoo.com DNS
o.c
om
?
2.2
www.yahoo.com
7.
65
.1
0.
2.
2
6. 65
.10.2
.2
8. 65.10.2.2
4. www.yahoo.com?
client
com?
5. 65.10.2.2
.com
om
3. ww
w.ya
hoo.
2.
ww
w.
ya
ho
o.
c
How Recursive
Query Works
Local DNS
yahoo.com
9. C
lient
conn
e ct t o
65.1
0.2.2
Host : mail
Host : www
Slave Server
1. SOA Request
2. SOA Response
DNS
google.com
3. www.google.com ?
INTERNET
4. 65.29.4.2
yahoo.com
hotmail.com
5
5. 6
m
.co
.4.2
.29
e
ogl
.go
ww
2. w
Forwarder
INTRANET
1. www.google.com ?
6. 65.29.4.2
Client
Installation
Packages
Daemons
/usr/sbin/named
Scripts
/etc/init.d/named
53/{tcp,udp}
Ports
Configuration
bind,bind-utils
/etc/named.conf ,/var/named/*
Related
caching-nameserver, bind-chroot
Configuring DNS
/etc/named.conf
/etc/named.conf
acl mynetwork { 192.168.0.0/24; };
options {
listen-on port 53 { 127.0.0.1 ; 192.168.0.254 ; };
directory "/var/named";
allow-query { mynetwork ; };
allow-recursion { none ; };
// allow-transfer { any; };
// forwarders { 0.0.0.0; };
recursion no;
};
/etc/named.conf cont.
// zone declaration
zone vipul.com in { // forward zone
type master;
file vipul.com.db;
};
Resource Records
Type
Meaning
Value
SOA
address
32 bit integer
MX
Mail exchange
NS
Name server
Domain name
PTR
pointer
Alias of an IP address
HINFO
Host description
TXT
text
Forward zone
$TTL 3D
vipul.com. IN SOA ns.vipul.com. root.vipul.com (
42;
3H;
15M;
1W;
1D; )
vipul.com.
vipul.com.
IN
IN
NS
MX
ns.vipul.com.
mail.vipul.com.
localhost.vipul.com.
ns.vipul.com
n1.vipul.com
n2.vipul.com
www
carrie
Shrek
mail
IN
IN
IN
IN
IN
IN
IN
IN
A
A
A
A
CNAME
CNAME
CNAME
CNAME
127.0.0.1
192.168.0.254
192.168.0.1
192.168.0.2
ns
n1
n2
ns
IN
IN
NS
MX
254.0.168.192.in-addr.arpa
1.0.168.192.in-addr.arpa IN
2.0.168.192.in-addr.arpa IN
IN
PTR
PTR
PTR
ns.vipul.com.
mail.vipul.com.
ns.vipul.com.
n1.vipul.com.
n2.vipul.com.
IN
IN
NS
MX
ns.vipul.com.
mail.vipul.com.
1.0.0.127.in-addr.arpa
IN
PTR
localhost.
named-checkconf
named-checkzone
Starting bind
/etc/init.d/named start
Resolver Configuration
/etc/nsswitch
hosts:
dns files
/etc/resolv.conf
On Clients
search vipul.com
nameserver 192.168.0.254
On Server
nameserver 127.0.0.1
Resolver Client
gethostip
nslookup
Conclusion
DNS serve the basis for name resolution process on internet. DNS consists of the
domain namespace, name servers that store resource records, and DNS resolvers.
A domain is a branch of the DNS namespace beginning at its root node. All of the
resource records in a domain are stored in zones on DNS servers. A zone is a
contiguous portion of a DNS domain whose information is stored in a file on a DNS
server.
On the Internet, DNS consists of the root domain, top-level domains, and second-level
domains. IANA manages the names and DNS servers of the root domain and the toplevel domains. Individual organizations are responsible for managing the names in
their second-level domains.
Zone transfers can transfer either the entire zone file (known as a full zone transfer) or
just the records that have changed (known as an incremental zone transfer). DNS
Notify is a standard mechanism by which a master name server notifies secondary
name servers to check .
Query?
Reach me at vipul.vid@gmail.com