How to start bind9 automatically at boot

Discussion in 'Server Operation' started by satimis, Oct 30, 2008.

  1. satimis

    satimis Member

    Hi folks,


    Debian Etch
    bind-9.5.0 compiled on source
    chrooted


    Which file I have to edit adding;
    Code:
    /usr/local/bind/sbin/named -u named -t /usr/local/bind -c /etc/named.conf
    

    so bind9 will start automatically at boot.


    # ls /etc/ | grep rc
    Code:
    bash.bashrc
    inputrc
    nanorc
    rc.local
    rc0.d
    rc1.d
    rc2.d
    rc3.d
    rc4.d
    rc5.d
    rc6.d
    rcS.d
    wgetrc
    

    rc.local ? It is an empty file. Only "exit 0" is there.


    TIA


    B.R.
    satimis
     
  2. satimis

    satimis Member

    Solved

    Adding;
    Code:
    /usr/local/bind/sbin/named -u named -t /usr/local/bind -c /etc/named.conf
    
    on /etc/rc.local

    # rm /etc/resolv.conf

    # reboot


    bind9 starts at boot.


    The DNS server is now working.


    satimis
     

Share This Page