SUSE Conversations

Setting Up Bind as a Caching Name Server (DNS) on SLED 10

By: Scott Morgan

February 2, 2007 10:46 am




This is a simple how to to set up bind as a caching name server (dns) on linux. I originally set this up on a SUSE 10 desktop, but it should work on almost any Linux distro.

  1. Get Bind:

    Download the bind-9.3.3.tar.gz (or a newer version) from
    Unzip it

    hostname:~ # tar -xvzf bind-9.3.3.tar.gz
  2. Build and Install Bind, As Root:
    hostname:~ # cd bind-9.3.3
    hostname:~ # ./configure
    hostname:~ # make
    hostname:~ # make install
  3. Test Bind Install:
    hostname:~ # named -f

    In another terminal

    hostname:~ # dig @

    You should see a responce from the local named server.

  4. Add Named To Machine Startup:
    hostname:~ # cd /etc/init.d

    Create a file named named (no pun intended) that looks like this:

    case "$1" in
        echo "Starting service named"
        echo "Stopping service named"
        killproc -TERM $NAMED_BIN
        echo "Usage: $0 {start|stop}"
        exit 1

    hostname:~ # chkconfig -add named

    Try starting and stopping it:

    hostname:~ # service start named
    hostname:~ # dig @

    You should see a responce from the local name server.

    hostname:~ # service stop named

    You should NOT see a responce from the local name server.

  5. Make Your Default (or 1st name server,

    I did this through yast.

    Click to view.

    Figure 1

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)

Categories: Uncategorized

Disclaimer: As with everything else at SUSE Conversations, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.