Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What is the difference between these two in a Bind9 setup? Also when one updates his list of current root servers, does one add them to root.hint or db.cache? I find multiple explanations online and none are really clear/

share|improve this question
    
You should really replace the root hints rather than add to them. Otherwise you may have invalid entries. –  John Gardeniers Aug 3 '10 at 2:44
add comment

2 Answers

up vote 1 down vote accepted

There is no difference. They are both hint files. Look at the configuration of the "." zone in your named.conf:

zone "." IN {
        type hint;
        file "named.cache";
};

Mine is actually called "named.cache."

share|improve this answer
add comment

root.hint is a zone definition which points to a cache of the root name servers. Once it is configured it should never need to be updated. It does not need to be be a seperate file. On my system the zone definition is include in a file which contains various default zones including '.', 'localhost', '0.in-addr.arpa', and others.

db.cache is a cached copy of the root name servers. The file name can be different, but must be one specified in the '.' zone definition. It can be updated periodically (once every year or two should be adequate). The root namesevers don't move often. According to the header of my cache a new version can be obtained as file /domain/named.root from FTP.INTERNIC.NET or RS.INTERNIC.NET. The root server list can also be retrieved with the dig command.

The current bind version will update the root server list from a root server during startup.

share|improve this answer
1  
I, and all the documentation I've read, disagree with your statement about never needing to update the root hints. The root servers DO change, so the hints file requires updating. –  John Gardeniers Aug 3 '10 at 2:45
    
The hists are in the cache file which i do say can to be updated. As long as the servers in the cache are good, it does not need to be updated. Bind will get a new copy from a root server on startup. –  BillThor Aug 3 '10 at 16:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.