ddns configuration and maintanence

Posted on 2011-10-07
Last Modified: 2012-05-12
Dear Experts:

Have configured ddns using dhcp and bind packages for ubuntu server, now static zones and dynamic zones are working perfectly:
indar@lampsrv:/var/cache/bind/dynamic$ ls -la
total 248
drwxrwsr-x 2 bind bind    4096 2011-10-07 17:35 .
drwxrwsr-x 3 bind dhcpd   4096 2011-10-07 10:20 ..
-rw-r--r-- 1 bind bind    1333 2011-10-07 17:32
-rw-r--r-- 1 bind bind  159360 2011-10-07 17:36
--rw-r--r-- 1 bind bind    1043 2011-10-07 17:35
-rw-r--r-- 1 bind bind   61817 2011-10-07 17:36

I got know from the the experts that
Having the zone name, zone file, and parent directory all named the same thing has several advantages , as of now my dynamic zones are located under /var/cache/bind/dynamic.Please help me with the best practice and maintanence of ddns , like jounal file sizes growing.

Question by:D_wathi
    LVL 21

    Accepted Solution

    The main advantages I can think of all have to do with keeping the directory structure clean, keeping all files associated with a zone together yet separate from each other, and making it easy to scale.  To answer your second question, you do not have to worry about journal file sizes, they are periodically flushed and committed to the zone file, unless of course you are running out of disk space for that partition.

    Before I go into detail, I should say that you aren't required to do any of this.  This is just a nice clean approach that scales very well.  When your zone name and zone file name match, this will help avoid confusion and can make parsing your zones via scripts easier to do.  You can see in each subdirectory there is the zone file, journal file, and DNSSEC keys -- all nice and separated from other domains' files.
    [root@broken dynamic]# pwd
    [root@broken dynamic]# ls
    [root@broken dynamic]# ls

    Open in new window

    options {
            directory       "/var/named";
    zone "" IN {
            type master;
            file "dynamic/";
            update-policy local;
            auto-dnssec maintain;
            key-directory "dynamic/";

    Open in new window

    Personally I wouldn't use /var/cache/bind for any of your zones, only because 'cache' makes it sound temporary.  I prefer to use something like /var/named/, which is actually the default when installing via yum on a RHEL/CentOS box.  I do believe I pasted my named.conf in a previous question you asked, so you can reference that as well.
    [root@broken named]# pwd
    [root@broken named]# ls
    ./  ../  chroot/  data/  dynamic/  logs/  named.empty  named.localhost  named.loopback  slaves/

    Open in new window


    Author Comment

    Sir, thank you very much sir. Request you to please provide me your email account like to send a greeting. Also you were mentioning about training please provide me the details. Please sir do not ignore this is my request please.
    LVL 21

    Expert Comment

    I would rather not share my personal email address on here -- just saying thanks to my answers is sufficient.

    The training I mentioned before has absolutely nothing to do with any of this.  All I was saying was that I couldn't reply to your question right away because I was training my co-workers.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    I will assume you are running a non-server version of some sort of Windows throughout this article. There are many flavors of Windows since Windows Server 2000 - 2008, XP Home & Pro, Vista Home & Pro, and Windows 7 Starter, Home, Pro, Ultimate, etc.…
    BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (, affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now