DNS control utility rndc

  • rndc controls the operation of a name server by communicating with the name server over a TCP connection.
  • Configuration file, /etc/bind/rndc.conf
    key "rndc-key" {
    	algorithm hmac-md5;
    	secret "ylnZwDNmLo7xwJDNzIW0zg==";
    };
    
    options {
    	default-key "rndc-key";
    	default-server 127.0.0.1;
    	default-port 955;
    };
    
  • Key file, /etc/bind/rndc.key
    key "rndc-key" {
    	algorithm hmac-md5;
    	secret "ylnZwDNmLo7xwJDNzIW0zg==";
    };
    

  • Reload the configuration and the Zone files:
    rndc  reload
    
  • Server status
    rndc status
    
  • Flush the server caches
    rndc flush
    
  • Stop the server
    rndc stop
    
  • Show all possible rndc commands
    rndc
    

    Previous Pageprevious First Pagetop Next Pagenext