Operating System - HP-UX
1832795 Members
2940 Online
110045 Solutions
New Discussion

Re: configurating the primary DNS server

 
andrea_53
Advisor

configurating the primary DNS server

Hi,
I would like to configure the primary DNS server using as a server a workstation 11.0. Is it possible or I have to use a server? I don't have any software about it, is it a problem?
I wouldn't like to use SAM.
I have a list of point to follow and I have got it by a hp manual. Do you have something easier to follow?
Thank for everythink.
P.S Here is Rome and the weather is beatiful.
Have a good day
11 REPLIES 11
pap
Respected Contributor

Re: configurating the primary DNS server

Hi Andera,
If you follow the HP's manual it is best. IF you use a workstation as a DNS server, it will be fine , not a problem.

you have to do following

1. Install HP 11.0
2. prepare a host file with all hosts you want to keep in DNS database.
3.run hosts_to_named script with approprite options about domain name (options will contain subdomains and subnets to be included in DNS database)
4.then restart the DNS server using "sig_named restart"
you are all set now.

If you want to install BIND 9.2 then you need to go to isc.org site and download it and follow the installation instructions in the manual provided on site. here is the link for that.

http://www.isc.org/products/BIND/bind9.html

Thanks,
-pap
"Winners don't do different things , they do things differently"
S.K. Chan
Honored Contributor

Re: configurating the primary DNS server

There are a lot of steps/checks involved in setting up th DNS and you best reference is still the online manual. If you rely on someone else procedure, you cannot gurantee that it's complete. These are the references that I used and they are very complete.

http://docs.hp.com/hpux/onlinedocs/B2355-90147/B2355-90147.html

Click on configuring primary master name server and all the steps are in there.

David Burgess
Esteemed Contributor

Re: configurating the primary DNS server

To be sure that you get all the latest security fixes I would install bind 9.2.0
I always download it from www.isc.org
The manuals are good.

http://www.isc.org/products/BIND/bind9.html

HTH

Dave.
Gary Yu
Super Advisor

Re: configurating the primary DNS server

A couple of more things you may need to do:

1. edit /etc/nsswitch.conf file, in the hosts entry, make "dns" first.

2. edit /etc/resolv.conf on all the servers in your domain, specify the IP address of the DNS server, on the DNS server itself, just use 127.0.0.1

3. if you want to resolve not only your local host names, but also the internet ones, get a list of the first level name servers from FTP://RS.INTERNIC.NET, then put it in your /etc/named.data directory, and update your db.cache file accordingly.

and you are ready to go ...

cheers,
Gary
Sachin Patel
Honored Contributor

Re: configurating the primary DNS server

Hi Andrea,

Couple files involve for primary dns are
1. /etc/named.conf (if you are use bind 4.9.x then it is /etc/named.boot)
2. your map direcoty i.e most probable /var/named.
3. /etc/rc.confing.d/namesvrs (will setup named=1 for boot time startup)
4. /sbin/init.d/named and most probable /etc/rc2.d/S370named which is link to previous.

When you will install the bind it will generates default /etc/named.conf file. You can change the directory option.

I will suggest to buy book
"DNS & BIND from o'reilly"

Sachin
Is photography a hobby or another way to spend $
andrea_53
Advisor

Re: configurating the primary DNS server

Hi,
I have a big doubt!!
I would like to configure DNS for a internal domain. I don't need it to go out in internet. I need it because I have a lan with many computers and I prefer to configure the DNS instead of updating all the /etc/hosts files.
Is it possible?
I'm not sure about configuring the file:param
After I do :
hosts_to_named -f param
Could you help me please?
Bye...
Sachin Patel
Honored Contributor

Re: configurating the primary DNS server

Hi Andrea,
Start with two computer.
Pick up a system which is going to be your server. Don't touch any other system.

Install bind on that system (we have hp 712 system as dns server for 500 hosts). Copy your current hosts file on /etc.

Say your domain named is xyz.com and your server named is andrea. And you are on 10.15.0.0 network.

Then edit /etc/named.conf file

options {
check-names master ignore;
check-names response ignore;
check-names slave ignore;
directory "/usr/local/named"; #you can change this. This dir will hold your all
database files.
forwarders {
198.6.100.25;
};
};

zone "0.0.127.in-addr.arpa" {
type master;
file "named.local"; # you can even change this file name.
};

zone "." {
type hint;
file "named.cache"; # you can change this file name too.
};

zone "xyz.com" {
type master;
file "hosts.xyy.com"; # this is your main db file
};

zone "15.10.in-addr.arpa" {
type master;
file "db.10.15"; # this is your reverse look up file
};


Then run hosts_to_named command with options. Your hosts.xyz.com file will looks like this
; hosts.xyz.com
;
$TTL 86400
@ IN SOA andrea.xyz.com. root@xyz.com. (
2375 ; Serial No
21601 ; Refresh every 6 hours
3600 ; Retry 1 hour
1728000 ; Expire 20 days
21600 ) ; Minimum 6 hours

; this two are my servers
IN NS andrea.xyz.com.
IN NS sachin.xyz.com

; this are my normal hosts
localhost IN A 127.0.0.
1achilles IN A 10.15.47.1
adair IN A 10.15.32.20
aggie IN A 10.15.32.41


Then edit your /etc/resolv.conf file
domain xyz.com
nameserver 10.15.1.1 # ip_of andrea

oh yes and don???t forget to start named.

Edit the /etc/nsswitch.conf file to
hosts: dns file

andrea# nslookup andrea (should return proper result with stating that it is from dns)

If all this work then on client you have to change only /etc/nsswitch.conf and /etc/resolv.conf file only.

Sachin
Is photography a hobby or another way to spend $
Pete Randall
Outstanding Contributor

Re: configurating the primary DNS server

Hi Andrea,

For an internal network, I wouldn't think you should have to go to all the trouble of setting up DNS. We use the hosts file and a script to copy it to all the servers in our internal net. You need to set up hosts.equiv and .rhosts so that the rcp will work. Simple.

Let me know if you want more info.

Pete

Pete
Niraj Kumar Verma
Trusted Contributor

Re: configurating the primary DNS server

Hi,

Here is some more input

If you are using the script
hosts_to_name

make sure after creating the db file you add the following line on the top of the file

$TTL 86400

or any number depending upon your Time to live

The latest BIND also support the DDNS ( Dynamic DNS) update which work with 11i.

The latest DNS is also supporting IPV6.

-Niraj
Niraj.Verma@philips.com
Niraj Kumar Verma
Trusted Contributor

Re: configurating the primary DNS server

Hi,

Here is some more input

If you are using the script
hosts_to_name

make sure after creating the db file you add the following line on the top of the file if you are using BIND 9.x.x

$TTL 86400

or any number depending upon your Time to live

The latest BIND also support the DDNS ( Dynamic DNS) update which work with 11i.

The latest DNS is also supporting IPV6.

-Niraj
Niraj.Verma@philips.com
Wodisch
Honored Contributor

Re: configurating the primary DNS server

Hi,

do use the option "-r" for your call to "hosts_to_named". Then your DNS server will not even try to contact any other DNS-server if it receives a query for some not-existing name/ip-address...

And for an internal network the HP-UX version of BIND should be sufficient (but get the current patches).

HTH,
Wodisch