Operating System - HP-UX
1834020 Members
2451 Online
110063 Solutions
New Discussion

Re: Need Help on DNS configuration

 
Mridul Dutta
Advisor

Need Help on DNS configuration

Hi Friends

I have configured DNS server in my HP-ux server. But i m little bit of confusion in configuration. My instrator said that for dns configuration u have to make entry all the ip add and host name in /etc/hosts file. SO my question is whats the need of DNS server if i have to make entry in /etc/hosts file. Suppose i have 1000 PC in my network ...is it possible for system administrator to make entry for 1000 ip add and host name?


Can any tell the configuration step for DNS server in HP-ux . I know this things in Redhat .

Thanks and regards

MRIDUL
8 REPLIES 8
Cem Tugrul
Esteemed Contributor

Re: Need Help on DNS configuration

Hi Mridul,
the tlink below would be best link for to start

http://docs.hp.com/en/B2355-90893/index.html

Good luck,
Our greatest duty in this life is to help others. And please, if you can't
Chan 007
Honored Contributor

Re: Need Help on DNS configuration

Hi,

Your present state is you don't have DNS server. This makes you to have a copy of updated list of hosts and their IP address in your systems /etc/hosts. Withour which your server at present can't resolv the names., viz telnet abc or so.

When you configure the DNS server it will take entries from the /etc/hosts of the server where you run the master server.
Once if completes the DNS config, you can remove the DNS entries.

Cheers ...007
Sivakumar TS
Honored Contributor

Re: Need Help on DNS configuration


Dear Mridul,

ABSOLUTELY NOT ! You dont have to make entry all the ip add and host name in /etc/hosts file.

Check the following link for config details.

http://docs.hp.com/en/B2355-90685/index.html

With Regards,

Siva.
Nothing is Impossible !
Doug O'Leary
Honored Contributor

Re: Need Help on DNS configuration

>>When you configure the DNS server it will take entries from the /etc/hosts of the server where you run the master server.

And how, exactly, does this magic happen?

Configuring a DNS server in HPUX is exactly like it is in any other OS - except Microshaft which is a whole different rant.

1. Obtain the s/w
2. Set up the named.conf
3. Set up zone files
4. Set up reverse maping.
5. Start named and troubleshoot as necessary.

O'Reilly's DNS and Bind (ISBN: 0-596-00158-4) is an excellent resource...

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Kent Ostby
Honored Contributor

Re: Need Help on DNS configuration

Mridul --

You will need to update the file

/etc/rc.config.d/namesvrs

and do:

/sbin/init.d/named start

After your next reboot it would start automatically.

See: man named

for details
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Steven E. Protter
Exalted Contributor

Re: Need Help on DNS configuration

Shalom,

Your admin is wrong. /etc/hosts configuration is not DNS configuration. There is an hpux utility for converting /etc/hosts to a true DNS database.

In this case the best idea for a DNS config doc comes form Linux. I use this doc on both platforms.

http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/DNS-HOWTO.html

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
Bharat Katkar
Honored Contributor

Re: Need Help on DNS configuration

Hi,
And that command is

# host_to_named

Before running this command you need to ensure that your /etc/hosts is uptodate, /etc/named/params file is edited with proper values and finally your /etc/rc.config.d/namesvrs.

Regards,

You need to know a lot to actually know how little you know
Tvs
Regular Advisor

Re: Need Help on DNS configuration

Hi dutta,

not reqiuired, but you have to give the forward lookup and backward look for each ip. ( edit the /etc/named.data/db.doamin for adding the forwardlookup, and edit the /etc/named.data/db.ip for revere lookup.

pls find the example.

test IN A 16.21.96.11

36.16 IN PTR test23.ud


or if u are having already one dns server configured in the /etc/named.conf file u can specifiy the name. so if it is not found in the local machine, it will query the other dns server

theses setting u can specifyy in the forwarders seetings