- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: configure DNS server
Operating System - HP-UX
1753455
Members
6090
Online
108794
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 08:03 PM
10-24-2001 08:03 PM
Solution
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
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
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP