Operating System - HP-UX
1823308 Members
3061 Online
109653 Solutions
New Discussion юеВ

named.boot not created by hosts_to_named

 
SOLVED
Go to solution
Bryan Munshower
Occasional Advisor

named.boot not created by hosts_to_named

After first creating and or modifying /etc/hosts and /etc/named.data/param , I ran hosts_to_named. It ran through and appeared to end quietly. After I configured namesrvrs to allow named to start at boot, I tried to start the named daemon only to have it come back with an error. I discovered that named.boot was not created. Can I create this file manually (what must it contain)? And more importantly, is this missing file indicative of a larger problem?
9 REPLIES 9
someone_4
Honored Contributor
Solution

Re: named.boot not created by hosts_to_named

Hi,
Here is how I have this set up.

I have a directory called /etc/named.data
inside that directory have a file called hosts.dns here you have a cleaned up file of your /etc/hosts.

Then you have a param file. that has entries like so

-d domain.net
-d sub.domain.net
-n 192.168.10
-n 192.169.10
-H /etc/named.data/hosts.dns
-b /etc/named.boot

then run the followings commands.

hosts_to_named -f param
then restart dns.

/sbin/init.d/named stop
/sbin/init.d/named start


everything should be there and working fine.
If you cant stat dns check
/etc/rc.config.d/nameserv and make sure that flag for named is set to 1.

~ Richard
someone_4
Honored Contributor

Re: named.boot not created by hosts_to_named

ohh in the param file

-d domain.net
-d sub.domain.net
-n 192.168.10
-n 192.169.10
-H /etc/named.data/hosts.dns
-b /etc/named.boot


-d is for domain
-n is for network
-H specifies the file to look at and the "map" to create the network information from
-b tells it what boot file to use.


Bryan Munshower
Occasional Advisor

Re: named.boot not created by hosts_to_named

Richard,
Thanks for the reply, but my question starts just after the steps you included. I ran hosts_to_named -f params with the proper files configed. named.boot was never created however, so I need to know how to configure that file(what to put in it) -Thanks
someone_4
Honored Contributor

Re: named.boot not created by hosts_to_named

Hi,
I deleted my named.boot file and ran

hosts_to_named -f param

and here is the line of the output that says that named.boot is built.
------------
Building default named.boot file ...
Building default db.cache file ...

WARNING: db.cache must be filled in with
the name(s) and address(es) of the
rootserver(s)

done
----------

what does your output look like when you run hosts_to_named?

and lets see what version you are running.
run

what named

here is mine.


#what named
named:
Copyright (c) 1986, 1989, 1990 The Regents of the University of Califor
nia.
named 4.9.7 Mon Feb 12 07:18:56 GMT 2001 PHNE_23274
Sachin Patel
Honored Contributor

Re: named.boot not created by hosts_to_named

Here is sample file

1. if your database directory is /var/named.
2. system is master of xyz.com and reverse look up map is 10.20.x.x network
3. system is secondary of dumy.com zone whose server is 10.10.16.1

directory /var/named
;type domain sourcefile
primary xyz.com hosts.xyz.com
primary 20.10.in-addr.arpa db.10.20
primary 0.0.127.in-addr.arpa named.local
cache . named.cache

;Seconday info
type domain sourcehost backupfile
secondary dummy.com 10.10.16.1 sec.db.dummy.com

;forwarders (this your your isp's ip address)
forwarders 198.7.1.5


I hope this will help.

Sachin
Is photography a hobby or another way to spend $
Sachin Patel
Honored Contributor

Re: named.boot not created by hosts_to_named

Sorry
Following line should be in comment
;type domain sourcehost backupfile
Is photography a hobby or another way to spend $
Jochen Heuer
Respected Contributor

Re: named.boot not created by hosts_to_named

In which directory are you when you run 'hosts_to_named'?

You have to copy the file from the current directory to /etc ...

Btw., you can find a detailed description of the required steps and examples for the named.boot file in the knowledge trees (if you have access to these):

http://europe.itrc.hp.com/iv/bin/doc.pl/screen=ivHome/?NODEID=DE_SW_UX_NET::DE_SW_UX_dns_EN_01_E/Q1.1&FROMID=DE_SW_UX_NET::DE_SW_UX_dns_EN_01_E/Q1&ANSWER=Configuring+DNS
Well, yeah ... I suppose there's no point in getting greedy, is there?
Bryan Munshower
Occasional Advisor

Re: named.boot not created by hosts_to_named

I resolved the issue... HP's manual had you config the param file with named.conf instead of the correct named.boot -Thanks
Jochen Heuer
Respected Contributor

Re: named.boot not created by hosts_to_named

For clarification:

This depends on the version of bind you are running:

bind 4.9.X --> named.boot
bind 8.X --> named.conf

Maybe you checked the manual for 11.X which includes bind 8.X configuration notes ...
Well, yeah ... I suppose there's no point in getting greedy, is there?