cancel
Showing results for 
Search instead for 
Did you mean: 

DNS setup for hp-ux machine

SOLVED
Go to solution
S.S.
Super Advisor

DNS setup for hp-ux machine

Hi All,

I need to do a DNS setup and pointing to MailGateWay (MGW).

MY Machine is HP-Ux 11.11
model rp3440

Kindly give me some procedure to follow for the setup.

Thanks you All.

12 REPLIES
Taifur
Respected Contributor

Re: DNS setup for hp-ux machine

Hi,

Check below link, hope it will resolve ur problem,

http://docs.hp.com/en/32022-90051/ch08s01.html
http://docs.hp.com/en/5971-3504/ch03s06.html


Rgds//
Taifur
johnsonpk
Honored Contributor
Solution

Re: DNS setup for hp-ux machine

Do you have a DNS server in place ??

If you want configure ur hpux server as dns client
1)edit /etc/nsswitch.conf and update the host entry like below

hosts: files dns

2) edit /etc/resolv.conf
and create entry

nameserver

Johnson Punniyalingam
Honored Contributor

Re: DNS setup for hp-ux machine

How to Setup DNS in HPUX

Check below thread, for Step by steps procedure given.

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1400669
Problems are common to all, but attitude makes the difference
Kranti Mahmud
Honored Contributor

Re: DNS setup for hp-ux machine

Hi S.S.

Check the below links:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1298360

http://tldp.org/HOWTO/DNS-HOWTO.html

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
Jupinder Bedi
Respected Contributor

Re: DNS setup for hp-ux machine

use the following link

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062972401

I hope the following could be useful to you.

Configuring DNS
====================

I.Configure your Master DNS:-
============================

1 Delete all entries from /etc/hosts except local host entry and hosts in your domain.
Put FQDN for all hosts.See the example for a server called syam

#vi /etc/hosts
127.0.0.1 localhost
128.1.1.1 syam.india.mum.com syam
128.1.1.2 syam2.india.mum.com syam1
128.1.1.3 test.india.mum.com test


2 Create a directory for the DNS database file and cd to it

#mkdir /etc/named.data
#chmod 755 /etc/named.data
#cd /etc/named.data

3. Create a param file for your domain

#vi param

-d syam.india.mum.com # Use your domain name(s) here
-n 128.1.1 # Use your subnet address(es) here
-z 128.1.1.1 # Use your master server's IP here
-b /etc/named.conf

4. Run hosts_to_named

#hosts_to_named -f param

5. Download db.cache to the current dir.

6. Enable NAMED in the /etc/rc.config.d/namesvrs

#vi /etc/rc.config.d/namesvrs

NAMED=1
NAMED_AGRS=""

7. Start the named daemon

#/sbin/init.d/named start




II. Configuring Slave DNS:-
===============================

1. Create a directory for the DNS database file and cd to it

#mkdir /etc/named.data
#chmod 755 /etc/named.data
#cd /etc/named.data

2. FTP copies the db.* files from the master DNS.

#ftp 128.1.1.1 # Use your master DNS Server's IP Here
>mget /etc/named.data/db.*
>bye

3. FTP a copy of conf.sec.save from the master DNS server and move it into place on the slave server as /etc/named.conf

#ftp 128.1.1.1 # Use your Master DNS IP here.
>get /etc/named.data/conf.sec.save
>bye

#mv /etc/named.data/conf.sec.save /etc/named.conf


4. Enable NAMED in the /etc/rc.config.d/namesvrs

#vi /etc/rc.config.d/namesvrs
NAMED=1
NAMED_ARGS=""


5. Start the named daemon

#/sbin/init.d/named start




III. Configure the DNS clients;-
==================================

1. Modify the resolver file. Include the DNS IPs in the search list.Include both Master and mSlave server in the namesservers list.

#vi /etc/resolve.conf

search xyz.india.mum.com # replace this with your domain name
nameservers 128.1.1.1 # Replace 128.1.1.1 with your Master DNS IP
nameservers 128.1.1.2 # Replace 128.1.1.2 with your Slave DNS IP



2. If your /etc/nsswitch.conf exists, delete it. You can experiment with the default behaviour for now.

#mv /etc/nsswitch.conf /etc/nsswitch.conf.orig
3. Slave DNS and Clients need to modify /etc/hosts at this time.

#vi /etc/hosts

127.0.0.1 localhost
128.1.1.3 test.india.mum.com test



Good luck
All things excellent are as difficult as they are rare
2xyo
Frequent Advisor

Re: DNS setup for hp-ux machine

If it's for mail server, you need a recursive server like BIND :
https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=BIND

S.S.
Super Advisor

Re: DNS setup for hp-ux machine

Hi,
Yesterday i have configured the 2 hpux servers as DNS client.

I edited and updated the host entry in /etc/nsswitch.conf file as
hosts: files dns

and also edited /et/c/resolv.conf and create the entries for Primary and secondary DNS servers as
nameserver

When i pinged the mgw it is pinging for one server and for the other server i have received the message as
$ /usr/sbin/ping mgw
/usr/sbin/ping: unknown host mgw

Kindly recommend me how to troubleshoot this.

Thanks you all for giving your advises.
Steven E. Protter
Exalted Contributor

Re: DNS setup for hp-ux machine

Shalom,

You can do this without DNS.

/etc/hosts networking is sufficient to resolve the names.

The nice thing is BIND works the same way, with the same configuration files as BIND on Linux.

Same source code.

http://docs.hp.com/en/5900-0161/5900-0161.pdf

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
S.S.
Super Advisor

Re: DNS setup for hp-ux machine

Can anybody help me to resolve this.

For one of the server is working nicely whereas other is not pinging as i followed the same steps.
S.S.
Super Advisor

Re: DNS setup for hp-ux machine

Please the output of nslookup:

$ nslookup mgw
Using /etc/hosts on: oraap2

looking up FILES
*** No address information is available for "mgw"
$

whereas for the other server, i am able to see the address information.
Jupinder Bedi
Respected Contributor

Re: DNS setup for hp-ux machine

have you mentioned mgw in the DNS . please check all the lookup files in the DNS and also you can also mention the name of the server in the local /etc/hosts file .

if its still not working than please respond .


and also assign the points to all who helped you in this thread
All things excellent are as difficult as they are rare
S.S.
Super Advisor

Re: DNS setup for hp-ux machine

Thank you...:-)