cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding DNS Configuration

SOLVED
Go to solution
Surajit Santra
Occasional Advisor

Regarding DNS Configuration

Hi,

I want configure the Primary and Slave DNS in hp-ux 11.23 version and the server model is rx3600. Can you have provide the required steps to complete this jobs.

Thanks
Surajit
14 REPLIES
Jupinder Bedi
Respected Contributor
Solution

Re: Regarding DNS Configuration

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

All things excellent are as difficult as they are rare
Jupinder Bedi
Respected Contributor

Re: Regarding DNS Configuration

Please let me know if you still need any help.
All things excellent are as difficult as they are rare
Jupinder Bedi
Respected Contributor

Re: Regarding DNS Configuration

Atleast you need to reply once wheather your query is resolved or not . atleast give some points . We help you guys in our spare time


Thanks
All things excellent are as difficult as they are rare
Surajit Santra
Occasional Advisor

Re: Regarding DNS Configuration

Thanks for your help.Actually this will be implemented on next week.

I have another query.

1.Shall I need to install some bind patches first?

2.Whether the server need some internet connection or not? i.e.if we try to open firefox from the server will it be connected to the internet?

Again thanks for your help.
Jupinder Bedi
Respected Contributor

Re: Regarding DNS Configuration

yes bind package should be there before installing you can check it using swlist command

and also

internet is connection must required for connecting the outer world and also you need to register one domain name first.
All things excellent are as difficult as they are rare
Surajit Santra
Occasional Advisor

Re: Regarding DNS Configuration

Thanks for your kind help.

There is no bind package installed in our server.Where can I get this package? Is it free available in the internet?
After installing the bind package shall I follow your steps? Or I have to do some configuration changes after installing the bind package? Is there any particular version of bind package that shall we install?

Jupinder Bedi
Respected Contributor

Re: Regarding DNS Configuration

you can download the bind package from the internet or hp website and yes go thorugh the procedure as I told you step by step and if you will face any kind of difficulty please let us know , we are here to help you out. Installing DNS on hpux is very simple than any other unix OS


Best of luck
All things excellent are as difficult as they are rare
Surajit Santra
Occasional Advisor

Re: Regarding DNS Configuration

Thank you very much.

I will do this configuration in next week. and I shall let you know after the configuration will be over.

Thanks a lot.
Surajit Santra
Occasional Advisor

Re: Regarding DNS Configuration

Hi I am doing the above mentioned steps.

I have added /etc/hosts file

128.1.1.1 syam.india.mum.com syam ( This is master server)
128.1.1.2 syam1.india.mum.com syam1 (This is for slave server)

and I have added in param file
-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

In param file I have given only the entry for the master server.i.e -d syam.india.mum.com

Now when I am running hosts_to_named -f param

It is giving the following error.

" 128.1.1.2 syam1.india.mum.com syam1
( First name not in syam.india.mum.com )

Please help me.

Surajit Santra
Occasional Advisor

Re: Regarding DNS Configuration

Here the all the entry i.e. IP address and hostname and FQDN I have given according to our server.
Jupinder Bedi
Respected Contributor

Re: Regarding DNS Configuration

The domain name I gave you was a example
" 128.1.1.2 syam1.india.mum.com syam1

please put your domain name and ip address whatever you have. syam1 was a example for you


All things excellent are as difficult as they are rare
Jupinder Bedi
Respected Contributor

Re: Regarding DNS Configuration

and also

-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

128.1.1 was a example for you
All things excellent are as difficult as they are rare
Surajit Santra
Occasional Advisor

Re: Regarding DNS Configuration

Hi I know that IP and FQDN you have given as an example.I have not given these values in our server.

I have given the IP and FQDN of master server and slave server in hosts file.

and also in param file, which for security reason I am not putting here.

My main problem is that
when I am running hosts_to_named -f param It is giving the following error.

" 128.1.1.2 syam1.india.mum.com syam1
( First name not in syam.india.mum.com )


that means " the IP of slave server FQDN of slave server ( First name not in syam.india.mum.com ( the FQDN of master server that I mentioned in param file)

Please help me.

Jupinder Bedi
Respected Contributor

Re: Regarding DNS Configuration

I have not seen this kind of error but unable to understand this error but you can find the following link , I hope it will help you out.

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

http://docs.hp.com/en/B2355-90685/ch03s05.html
All things excellent are as difficult as they are rare