Welcome: - Basics of Dns
Welcome: - Basics of Dns
Welcome: - Basics of Dns
• BASICS OF DNS
The Domain Name System
Overview
•Introduction
•DNS overview
•How DNS helps us?
•Summary
What is a Name Sever?
The Domain Name System (DNS) is a standard technology for managing the
names of Web sites and other Internet domains. DNS technology allows you to
type names into your Web browser like www.ibm.com and your computer to
automatically find that address on the Internet
These are not just a single computer but rather a server cluster consisting of
many computers. This use of clustering increases the reliability of DNS
DNS is an application layer protocol. The application layer of the OSI model is the
layer closest to the user and provides network services to the applications of the
user
DNS Clients
A DNS client doesn't store DNS information; it must always refer to a DNS server
to get it. The only DNS configuration file for a DNS client is the /etc/resolv.conf
file, which defines the IP address of the DNS server it should use
BIND
BIND is an acronym for the Berkeley Internet Name Domain project, which is a
group that maintains the DNS-related software suite that runs under Linux. The
most well known program in BIND is named, the daemon that responds to DNS
queries from remote machines.
Name The root name of the zone. The “@” sign is a shorthand reference to the current origin (zone) in the /etc/named.conf file
for that particular database file.
Class There are a number of different DNS classes. Home/SOHO will be limited to the IN or Internet class used when defining
IP address mapping information for BIND. Other classes exist for non Internet protocols and functions but are very
rarely used.
Type The type of DNS resource record. In the example, this is an SOA resource record. Other types of records exist, which I’ll
cover later.
Name-server Fully qualified name of your primary name server. Must be followed by a period.
Email- The e-mail address of the name server administrator. The regular @ in the e-mail address must be replaced with a period
address instead. The e-mail address must also be followed by a period.
Serial-no A serial number for the current configuration. You can use the date format YYYYMMDD with an incremented single
digit number tagged to the end. This will allow you to do multiple edits each day with a serial number that both
increments and reflects the date on which the change was made.
Refresh Tells the slave DNS server how often it should check the master DNS server. Slaves aren’t usually used in home / SOHO
environments.
Retry The slave’s retry interval to connect the master in the event of a connection failure. Slaves aren’t usually used in home /
SOHO environments.
Expiry Total amount of time a slave should retry to contact the master before expiring the data it contains. Future references will
be directed towards the root servers. Slaves aren’t usually used in home/SOHO environments.
Minimum- There are times when remote clients will make queries for subdomains that don’t exist. Your DNS server will respond
TTL with a no domain or NXDOMAIN response that the remote client caches. This value defines the caching duration your
DNS includes in this response.
The “A” Record
The “Address” record
One or more normally defines a host
www A 203.18.56.31
internal NS ns1.hosting.com.au
Accessing a web page
•You type http://www.google.com into your web
browser and hit enter.
Your PC
ISP “Recursive” DNS server
Your PC
ISP “Recursive” DNS server
Your PC
www.google.com web server
Here it is!
Summary
WEB (HTTP)
Request
google.com.au
Web Server
2
6
1
3
5
Your PC
ISP “Recursive” DNS server “com” DNS servers
The actual
web request DNS requests
DNS