DNS
• DNS - Domain naming system.
• DNS service locates and translates
domain names into corresponding
associated IP addresses.
• DNS configuration.
• It requires the following software
packages to be installed.
• bind
• Caching-name server
• bind-utils
DNS Configuration
Thus the DNS makes it possible to ping an
host by its domain name by resolving the
domain name into IP address.
DNS Configuration
Forward zone lists the name
servers outside the network that
should be searched when the
networks name server fails.
Service profile
• Packages - bind, bind-utils,
• caching-nameserver
• Configuration files - /etc/named/named.conf
• /var/named/named.local
• Daemons - named
• Port number - 53
DNS Configuration
Install bind-utils which
provides
Install many
bind, this utilities
package
like includes
host, dig web
and nslookup
page
manuals and
documentation
Install caching-name
server which provides a
working named.conf
configuration file
DNS Configuration
Open this file for mentioning
the home directory for DNS.
DNS Configuration
Here DNS home directory
is /var/named/chroot.
DNS Configuration
View the home
directory files.
DNS Configuration
Open the configuration
file named.conf.
DNS Configuration
Now you are seeing
the contents of
named.conf file.
DNS Configuration
This file contains
the ip address and
the locations of all
the dot servers.
Forward zone mapping
between fully qualified
domain to particular ip
address.
DNS Configuration
DNS Configuration
Enter theand paste the forward
Copy
forward
and file
reverse zones and edit
name.
Enter thethem as follows.
domain name
here.
Enter the
reverse
Enterfile
the IP
name.
address in
reverse order.
DNS Configuration
Save and exit the
file
DNS Configuration
Copying the syntax file
named.local to example.for
and example.rev.
DNS Configuration
Open the forward
file.
DNS Configuration
Enter the fully qualified
name of the name
It is interpreted as the server.
name of the originating
domain.
Enter the
Enter
authorised
the fully name
qualified
server for
name
this of
zone.
host.
Enter the last number segment
of the host address in the
reverse zone file.
DNS Configuration
Replace local host to fully
qualified name using as
given below.
DNS Configuration
Now the localhost is replaced as
server1.example.com.
DNS Configuration
Canonical name, is used to
Enter
define an the
aliasipfor
address for
a hostname.
specified
Set www asdomain name.
the cname for
server1.example.com.
DNS Configuration
Open the
example.rev file.
DNS Configuration
DNS Configuration
Replace localhost to
server1.example.com using as
below.
DNS Configuration
Now the localhost is replaced
by server1.example.com.
DNS Configuration
In a PTR record, you can specify
just that last number segment of
the address.
DNS Configuration
Open the
resolve.conf file.
DNS Configuration
Mention the nameserver
ipaddress and domain name here.
DNS Configuration
Now named service
is restarted.
DNS Configuration
Thus the DNS makes it possible to ping an
host by its domain name by resolving the
domain name into IP address.
DNS Configuration
Thus the DNS makes it possible to ping an
host by its domain name by resolving the
domain name into IP address.
DNS Configuration
dig command shows ip address
of the specified fully-qualified
domain name .
DNS Configuration
Nslookup is a dns diagnostic tool
used to query a dns server.
Using nslookup you can identifies
nameserver for particular doamin.
Using nslookup you can identifies
address for particular FQDN.
Using nslookup you can identifies
FQDN for particular IP address.
DNS Configuration
Thus the DNS makes it possible to ping an
host by its domain name by resolving the
domain name into IP address.
DNS Configuration
In client side open the
/etc/resolv.conf file.
DNS Configuration
Mention the nameserver
ipaddress and domain name
here.
DNS Configuration
Thus the DNS makes it possible to ping an
host by its domain name by resolving the
domain name into IP address.
DNS Configuration
It shows the simple lookup of
host,thus
Using its show
nslookup youthe
can identifies
corresponding
MX recordipforaddress to thedomain.
particular
specified fully quailed domain
name.
Using nslookup you can identifies
nameserver for particular domain.
DNS Configuration
Open the forward
file.
DNS Configuration
In this file we can add additional
entry MX(mail exchange record )
and
In this file we can add its corresponding ip address
additional
entry station105 machine and192.168.0.100.
its
corresponding ip address
192.168.0.100
DNS Configuration
Open the reverse
file.
DNS Configuration
Similarly we can add another
pointer record 105 for
station105.example.com.
DNS Configuration
Now named service
is restarted.
DNS Configuration
Using nslookup you can identifies
MX record for particular domain.
Using nslookup you can identifies
address for particular FQDN.
Using nslookup you can identifies
PTR record for particular FQDN.
DNS Configuration
Open the configuration
file named.conf.