1823399 Members
2542 Online
109655 Solutions
New Discussion юеВ

DNS Server

 
SOLVED
Go to solution
Manuales
Super Advisor

DNS Server

Hi ....
i do not know if somebody of you could help me to understand the concept of what is a DNS server ....

i have saw this file into resolv.conf, etc ....

please let me know.
thanks.
2 REPLIES 2
Uday_S_Ankolekar
Honored Contributor
Solution

Re: DNS Server

Here is the quick guide for you ref.


How do I configure a DNS primary server, secondary server or
client?




1. Make sure your /etc/hosts file is complete and ALL hostnames are
fully qualified. Host "seau" would be "seau.chargers.nfl.com".
2. Edit /etc/resolv.conf
domain chargers.nfl.com
nameserver 169.18.224.15 #This machine!!!!!
2. mkdir /etc/named.data
3. cd /etc/named.data
4. vi param
-d chargers.nfl.com
-n 169.18.224
-n 192.6.16
-b /etc/named.boot

==================
param file options
==================
-d domain we're authoritative for
-n network number that we're going to build a map for
-b name of the named boot file
-r to be a root server (most internal servers are not root servers)
Notice that the -d option matches the domain line in
/etc/resolv.conf, which matches the domain portion
of the fully qualified domain name of this host.
5. hosts_to_named -f param
6. vi /etc/rc.config.d/namesvrs and set NAMED=1. Leave NAMED_ARGS alone.
7. run named manually
/sbin/init.d/named start


CONFIGURING A SECONDARY NAMESERVER
==================================

1. Create a separate directory for the database and configuration files:

a. mkdir /etc/named.data
b. chmod 755 /etc/named.data

2. Copy the boot.sec, boot.sec.save, db.127.0.0 files from the primary server:

ftp
OR
rcp

3. Copy db.[net] and db.[domain] files if you want local storage:

ftp
OR
rcp


4. Copy boot.sec or boot.sec.save to /etc/named.boot to create a boot
file for named:

cp /etc/named.data/boot.sec /etc/named.boot

5. Create db.cache and specify the primary server:

vi /etc/named.data/db.cache

6. Edit /etc/rc.config.d/namesvrs:
vi /etc/rc.config.d/namesvrs

CHANGE:
NAMED=0
NAMED_ARGS=""
TO:
NAMED=1
NAMED_ARGS=""

7. Create /etc/resolv.conf:
vi /etc/resolv.conf
domain chargers.nfl.com
nameserver 169.18.224.18 #This machine!!!
nameserver 169.18.224.15 #The primary server !!!

8. Start named manually. Reboot is not needed.
/sbin/init.d/named start

9. Check if the name server is known:
nslookup


Do not run hosts_to_named again. hosts_to_named is not designed
to create secondary servers or cache-only server.

--------------------------------------------

How to Set Up a DNS Client

All you have to do is create the /etc/resolv.conf file and update the
/etc/nsswitch.conf file.

vi /etc/resolv.conf:
domain hp.com
nameserver 15.100.100.1 #list your nameservers
nameserver 15.200.100.254


vi /etc/nsswitch.conf entry for hosts:
hosts: dns [NOTFOUND=continue RETURN=continue UNAVAILABLE=continue] files
services: nis files
protocols: nis files
networks: nis files
rpc: nis files
netgroup: nis files
aliases: nis files
Good Luck..
Steven E. Protter
Exalted Contributor

Re: DNS Server

Shalom,

On a most basic level a DNS server converts internet names to numbers.

machines are good at numbers, and people are good at names.

www.nds.com resolves to a numeric ip address which lets the computer to connect to it.

/etc/resolv.conf controls the servers a system uses to get name to number information.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com