Operating System - HP-UX
1833738 Members
2421 Online
110063 Solutions
New Discussion

DNS Prority Question #include

 
SOLVED
Go to solution
George_Dodds
Honored Contributor

DNS Prority Question #include

Does anyone know the precedence that the name.conf file reads information with #include statement . for example i have a named.conf file that has an include statement that point to another configuration file lets call it name.conf.hello. there is zone information in thie name.conf.hello with ip address e.t.c.

BUT

in the main named.conf file it has the same zone information lower down after the include statement, but with different ip address configuration.... My question is what will take precedence the main named.conf or the named.conf.hello

I hope the above is clear.... :)
2 REPLIES 2
Geoff Wild
Honored Contributor
Solution

Re: DNS Prority Question #include

The main should take precedence - however - with Bind 9, I would think it wouldn't let you load at all....



Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Todd Whitcher
Esteemed Contributor

Re: DNS Prority Question #include

Hi George, I've never tested this out but I would think you should be able to test this and see what happens, add some RR in the second file your referenceing that are not present in the data from your include statement, see if it shows up in your db file when you start named. Also start named w/ debug -d# (use -d30) see "man named" for details. When you start named see if you get any errors in syslog.log.

Do you have a paticular reason your trying to load the same data in a include statement as well as referencing it directly in the named.conf file? Maybe there is an alternate way to accomplish what your attempting.

You may want to check the BIND 9 users forum from the ISC.

Thats available off of the www.isc.org web site under the Software / DNS section. Someone else may have tried this before or you can post a question there.

Hope that helps,

Todd