1832973 Members
2395 Online
110048 Solutions
New Discussion

Re: configure DNS server

 
SOLVED
Go to solution
FireDragon.Xu
Advisor

configure DNS server

Hi,all

Anybody can teach me how to configure the DNS server and client?


Thanks.

Jackie Xu

I believe i can fly!
10 REPLIES 10
Eugen Cocalea
Respected Contributor

Re: configure DNS server

Hi,

Yes, the DNS-HOWTO

http://www.linuxdoc.org/HOWTO/DNS-HOWTO.html

Might be different for HPUX :)

E.
To Live Is To Learn
FireDragon.Xu
Advisor

Re: configure DNS server

Hi

Thank you for your reply.But I don't know what is the different with Linux and HPUX.Any documentation can I download it from HP Website?

Thanks.

Jackie Xu
I believe i can fly!
Animesh Chakraborty
Honored Contributor

Re: configure DNS server

Richard Darling
Trusted Contributor

Re: configure DNS server

Jackie,
A real good description of the process can be found in the "HP Certified HP-UX System Administration" book by Rafeeq Ur Rehman. It is the study guide for certification. There are easy to follow step-by-step instructions to configure the DNS server and client.

One other thing jackie; if someone takes their time to assist you please take a moment to assign them points.
Thanks...
Richard Darling
Sanjay_6
Honored Contributor

Re: configure DNS server

Bernie Vande Griend
Respected Contributor

Re: configure DNS server

If you're going to be setting up and maintaining DNS, I highly recommend getting "The Book": DNS and BIND 4th Edition by Paul Albitz and Cricket Liu, published by O'Reilly. It is very useful for the beginner and expert.

Also, I'm not a big fan of HP's default version of DNS as it is a bit dated. I would grab the latest version of bind from isc.org, compile it and use that.

Here's some good sources for information:

http://www.acmebw.com/askmrdns/
http://www.dns.net/dnsrd/
http://www.isc.org/products/BIND/
http://www.isc.org/ml-archives/bind-users/
http://www.nominum.com/resources/faqs/

Ye who thinks he has a lot to say, probably shouldn't.
FireDragon.Xu
Advisor

Re: configure DNS server

Hi,all

Thanks everybody.That book As some experts said,but I am in china,so difficult to purchasing.I have been downloaded the PDF from http://Docs.hp.com/.Hope the file can help me.

Thanks everybody.
Jackie Xu
I believe i can fly!
Wodisch
Honored Contributor

Re: configure DNS server

Ni Hao, Jackie!

Read the man page for the command "hosts_to_named", as this will do almost everthing you need, but only on HP-UX systems.
Basically you edit your "/etc/hosts" file to contain olny the ip-addresses and "short-names" (no periods in), then you create a directory to store the DNS database files, change directory to that one and exute the command "hosts_to_named" with some options.
An example (I assume you are on "hosta"):
/etcthosts
1.2.3.4 hosta
1.2.3.5 hostb
1.2.3.6 hostc

mkdir /var/DNS
cd /var/DNS
hosts_to_named -r -b /etc/named.boot -n 1.2:255.255.0.0 -d your.domain.com
named
echo "domain your.domain.com\nnameserver 1.2.3.4" > /etc/resolv.conf

So, now your name server is configured, started, and your station is configured to be an DNS-client of its DNS-server.

HTH,
Wodisch
Joyce S. Solomon_1
Occasional Advisor
Solution

Re: configure DNS server

Hi,

As a matter of fact, i did configure my HP-UX box to be the primary DNS.

Here is what i did , hope this helps you

1. The primary dns machine,
a) create a list of host names and IP that will be used as the primary dns and the secondary dns
b) create a directory /etc/named.data, in this dir create a file name 'param', in this file list these down,

-d
-n
-z
-b /etc/named.boot
-s

The file 'param' will be actually used to create the DNS data file.

c) Run the command
hosts_to_named -f param
This command creates the server configuration and data files

d)go to /etc/rc.config.d dir and modify the file namesvrs, set the NAMED variable to 1. this is to allow the named process to start at every boot

e) start the DNS with these command
/sbin/init.d/named start

after this the name server should be running

2. Configuring the secondary DNS server
a) at the secondary server, create a dir /etc/named.data
b) copy the boot.sec and boot.sec.save from the /etc/named.boot dir from the primary server to this secondary server.
c)copy the db.127.0.0 and db.cache file from the primary server to sec server's /etc/named.data dir
d) If you did copy the boot.sec.save from the primary server, this enables the data files to be created also in the secondary server, so you also need to copy all files from /etc/named.data from the primary server
e) Change the variable NAMED to 1 at the /etc/rc.config.d/namesvrs on the sec dns server
f) start the named process using /sbin/init.d/named start

3) configuring the client server
a) at the client machine, in the file /etc/nsswitch.conf, you can specify below:

hosts: dns files

this means that the the DNS will be used first instead of the /etc/hosts file for host name resolution

b) at the /etc/resolv.conf file specify below:

nameserver
nameserver


After all this, you can use the nslookup command to test the DNS from the client

I hope this helps.

Regards