44
DNS DNS - Domain naming system. • DNS service locates and translates domain names into corresponding associated IP addresses. DNS configuration. It requires the followin g software packages to be installed. bind Caching-name server • bind-utils

• DNS - Domain Naming System. •

Embed Size (px)

Citation preview

Page 1: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 1/44

DNS• DNS - Domain naming system.

• DNS service locates and translatesdomain names into correspondingassociated IP addresses.

• DNS configuration.

• It requires the following softwarepackages to be installed.• bind• Caching-name server• bind-utils

Page 2: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 2/44

Thus the DNS makes it possible to ping anhost by its domain name by resolving the

domain name into IP address.

DNS Configuration

Page 3: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 3/44

Forward zone lists the name

servers outside the network that

should be searched when the

networks name server fails.

DNS Configuration

Page 4: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 4/44

Service profile

• Packages - bind, bind-utils,

• caching-nameserver

• Configuration files - /etc/named/named.conf 

• /var/named/named.local

• Daemons - named

• Port number - 53

Page 5: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 5/44

Install bind, this package

includes web page

manuals anddocumentation

Install bind-utils which

 provides many utilities

like host, dig and nslookup

Install caching-name

server which provides a

working named.conf configuration file

DNS Configuration

Page 6: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 6/44

Open this file for mentioning

the home directory for DNS.

DNS Configuration

Page 7: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 7/44

Here DNS home directory

is /var/named/chroot.

DNS Configuration

Page 8: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 8/44

View the home

directory files.

DNS Configuration

Page 9: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 9/44

Open the configuration

file named.conf.

DNS Configuration

Page 10: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 10/44

 Now you are seeing

the contents of 

named.conf file.

DNS Configuration

Page 11: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 11/44

Forward zone mapping

 between fully qualified

domain to particular ip

address.

This file contains

the ip address andthe locations of all

the dot servers.

DNS Configuration

Page 12: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 12/44

DNS Configuration

Page 13: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 13/44

Enter theforward file

name.

Copy and paste the forward

and reverse zones and edit

them as follows.Enter the

domain name

here.

Enter the IP

address in

reverse order.

Enter the

reverse file

name.

DNS Configuration

Page 14: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 14/44

Save and exit the

file

DNS Configuration

Page 15: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 15/44

Copying the syntax file

named.local to example.for 

and example.rev.

DNS Configuration

Page 16: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 16/44

Open the forward

file.

DNS Configuration

Page 17: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 17/44

Enter the fully qualified

name of the name

server.It is interpreted as the

name of the originating

domain.

Enter the authorised name

server for this zone.

Enter the fully qualified

name of host.

Enter the last number segment

of the host address in thereverse zone file.

DNS Configuration

Page 18: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 18/44

Replace local host to fully

qualified name using asgiven below.

DNS Configuration

Page 19: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 19/44

 Now the localhost is replaced as

server1.example.com.

DNS Configuration

Page 20: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 20/44

Enter the ip address for 

specified domain name.

Canonical name, is used to

define an alias for a hostname.

Set www as the cname for 

server1.example.com.

DNS Configuration

Page 21: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 21/44

Open the

example.rev file.

DNS Configuration

Page 22: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 22/44

DNS Configuration

Page 23: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 23/44

Replace localhost to

server1.example.com using as below.

DNS Configuration

Page 24: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 24/44

 Now the localhost is replaced

  by server1.example.com.

DNS Configuration

Page 25: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 25/44

In a PTR record, you can specify

 just that last number segment of 

the address.

DNS Configuration

Page 26: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 26/44

Open the

resolve.conf file.

DNS Configuration

Page 27: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 27/44

Mention the nameserver 

ipaddress and domain name here.

DNS Configuration

Page 28: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 28/44

 Now named service

is restarted.

DNS Configuration

Page 29: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 29/44

Thus the DNS makes it possible to ping an

host by its domain name by resolving the

domain name into IP address.

DNS Configuration

Page 30: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 30/44

Thus the DNS makes it possible to ping an

host by its domain name by resolving the

domain name into IP address.

DNS Configuration

Page 31: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 31/44

dig command shows ip addressof the specified fully-qualified

domain name .

DNS Configuration

Page 32: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 32/44

 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

fi i

Page 33: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 33/44

Thus the DNS makes it possible to ping anhost by its domain name by resolving the

domain name into IP address.

DNS Configuration

S C fi i

Page 34: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 34/44

In client side open the

/etc/resolv.conf file.

DNS Configuration

DNS C fi i

Page 35: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 35/44

Mention the nameserver 

ipaddress and domain name

here.

DNS Configuration

DNS C fi i

Page 36: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 36/44

Thus the DNS makes it possible to ping an

host by its domain name by resolving the

domain name into IP address.

DNS Configuration

DNS C fi i

Page 37: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 37/44

It shows the simple lookup of 

host,thus its show the

corresponding ip address to thespecified fully quailed domain

name.

Using nslookup you can identifies

MX record for particular domain.

Using nslookup you can identifiesnameserver for particular domain.

DNS Configuration

DNS C fi i

Page 38: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 38/44

Open the forward

file.

DNS Configuration

DNS C fi ti

Page 39: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 39/44

In this file we can add additional

entry MX(mail exchange record )

and its corresponding ip address

192.168.0.100.In this file we can add additional

entry station105 machine and its

corresponding ip address

192.168.0.100

DNS Configuration

DNS C fi ti

Page 40: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 40/44

Open the reverse

file.

DNS Configuration

DNS C fi ti

Page 41: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 41/44

Similarly we can add another 

 pointer record 105 for 

station105.example.com.

DNS Configuration

DNS C fi ti

Page 42: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 42/44

 Now named service

is restarted.

DNS Configuration

DNS C fi ti

Page 43: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 43/44

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

DNS C fi ti

Page 44: • DNS - Domain Naming System. •

8/14/2019 • DNS - Domain Naming System. •

http://slidepdf.com/reader/full/-dns-domain-naming-system- 44/44

Open the configuration

file named.conf.

DNS Configuration