Operating System - HP-UX
1836041 Members
2574 Online
110089 Solutions
New Discussion

Configuring Primary DNS server

 
SOLVED
Go to solution
susee_sundar
Regular Advisor

Configuring Primary DNS server

Hi ..
Guide to Configure My 2660 Hp server as a Primary DNS server..
As per the docs that i had gone I got a few Idea..I can explain the same which will make you all to find where I am making a mistake..

<< Put Entries for all clients in /etc/hosts >>
mkdir /etc/named.data
cd /etc/named.data
vi param
-d hp.com
-n 192.168.1
-z 192.168.1.10
-b /etc/named.boot
:wq
hosts_to_named -f param

<< Will create all the Necessary files >>

vi /etc/rcconfig.d/namesvrs
PRIMARY_DNS = 1
:wq

/sbin/init.d/named start


Is this right..........
Point out if there is any error....
Put dont give any thread reference ..Its My request....

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

2. Its my query from my boss...THat how can we add all the sites all over the world in /etc/hosts file....

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

3. How will be the entry in /etc/hosts file for the following clients....

CLIENT1 192.168.1.15
CLIENT2 192.168.1.25
CLIENT3 192.168.1.35

Domain Name is : hp.com

------------------------------------------
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Configuring Primary DNS server

Shalom,

Proper DNS configuration requires an actual DNS zone record for each domain, if this in fact is to be a DNS server.

A useful Linux link.
http://www.howtoforge.com/two_in_one_dns_bind9_views

The one I used for DNS primary server on HP-UX.
http://www.tldp.org/HOWTO/DNS-HOWTO.html

The DNS server you are configuring won't give answers based on /etc/hosts

/etc/hosts is used usually for local overrides to the central DNS server.

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
Jaime Bolanos Rojas.
Honored Contributor
Solution

Re: Configuring Primary DNS server

Susee, If I did not overlook something, you did configure everything just right.

You can not really add all of the servers and sites in the world, but once the dns is working fine, if it does not find a domain, it will go and ask the root servers on the internet for other address, and those will point to other dns's that know the addresses and then your dns will start learning them.

Talking about that, yes you forgot to download the db.cache from the internet and copy it into the /etc/named.data directory, so you can accomplish what I was telling you.

Regards,

Jaime.

Work hard when the need comes out.
Kevin Wright
Honored Contributor

Re: Configuring Primary DNS server

Step 1 is correct to create zone files from /etc/hosts.

I am not sure what you mean by Step 2 and 3?
susee_sundar
Regular Advisor

Re: Configuring Primary DNS server

Thanks to all..,,can I get any more clarification...
Arunvijai_4
Honored Contributor

Re: Configuring Primary DNS server

Hi Susee,

Check this out: http://docs.hp.com/en/B2355-90775/ch01s01.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Steven E. Protter
Exalted Contributor

Re: Configuring Primary DNS server

Shalom,

These hp docs go into details on the various configuration files.

http://docs.hp.com/en/32650-90898/ch08s05.html
http://docs.hp.com/en/32650-90898/ch08s04.html

For a really good overview:
http://www.amazon.com/gp/product/0596004109/sr=8-1/qid=1152598447/ref=pd_bbs_1/103-3925023-5062211?ie=UTF8

If you lack confidence, you can bring in a consultant to do it with the provision that he/she shows you step by step. I've done that from time to time in the area of printing which I find hard to grasp.

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
susee_sundar
Regular Advisor

Re: Configuring Primary DNS server

Thanks for All