pavement

BIND, managing

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
(it's means "it is")
m (Reverted edits by DavidYoung (talk) to last revision by 200.38.30.168)
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
By far the easiest way to manage BIND is via [[webmin]], where its all GUI click and drop-down menus (see image below). But you should at the very least know how to manage it via command line for systems that you cannot set up [[webmin]] on for whatever reason or for those times when webmin fails.
+
By far the easiest way to manage BIND is via [[webmin]], which is all GUI click and drop-down menus (see image below). But you should at the very least know how to manage it via command line for systems that you cannot set up [[webmin]] on for whatever reason or for those times when webmin fails.
  
To add records to a zone, you'll need to find that zone's file, edit it to include the record, '''increase your SOA number''' and reload your server with
+
To add records to a zone, you'll need to find that zone's file, edit it to include the record, '''increase your SOA serial number''' (1st parameter on IN SOA line, commonly with comment "; Serial") and reload your server with
 
  rndc reload
 
  rndc reload
  
Line 9: Line 9:
 
To check the status of your server:
 
To check the status of your server:
 
  rndc status
 
  rndc status
 +
 +
For example:                       
 +
 +
    number of zones: 1077
 +
    debug level: 0
 +
    xfers running: 0
 +
    xfers deferred: 0
 +
    soa queries in progress: 0
 +
    query logging is OFF
 +
    recursive clients: 1/0/1000
 +
    tcp clients: 0/100
 +
    server is up and running
  
 
To stop your server:  
 
To stop your server:  
Line 16: Line 28:
 
  rndc flush
 
  rndc flush
  
BIND can be a pain to manage properly, and not without reason are there thousands of pages on how to do it written.  
+
BIND can be a pain to manage properly, and not without reason there are thousands of pages on how to do it written.  
 +
 
 +
* [[http://www.bind9.net/manuals BIND9.net Manuals]]
 +
* bind-users FAQ
 +
* [[http://www.reedmedia.net/books/bind-dns BIND 9 DNS Administration Reference Book]]
 +
* [[http://www.netwidget.net/books/apress/dns/ Pro DNS and BIND]]
  
[[http://www.bind9.net/manuals BIND9.net Manuals]]
+
And here's a screenshot of Webmin's "Bind 9 Dynamic Server" module (which you'll have to install separately from the webmin.com site; the basic webmin BIND module doesn't do views very well and was designed for BIND 8):
  
 +
[[Image: bind9webmin.PNG]]
  
And here's a screenshot of Webmin's "Bind 9 Dynamic Server" module (which you'll have to install seperately from the webmin.com site; the basic webmin BIND module doesn't do views very well and was designed for BIND 8):
 
  
http://images.penismightier.com/userfiles/Dave/bind9webmin.PNG
+
== See also: ==
  
 
[[BIND]]
 
[[BIND]]

Latest revision as of 17:25, 25 August 2012

By far the easiest way to manage BIND is via webmin, which is all GUI click and drop-down menus (see image below). But you should at the very least know how to manage it via command line for systems that you cannot set up webmin on for whatever reason or for those times when webmin fails.

To add records to a zone, you'll need to find that zone's file, edit it to include the record, increase your SOA serial number (1st parameter on IN SOA line, commonly with comment "; Serial") and reload your server with

rndc reload

If your server is a slave and you want it to retransfer the records from the master:

rndc retransfer

To check the status of your server:

rndc status

For example:

   number of zones: 1077
   debug level: 0
   xfers running: 0
   xfers deferred: 0
   soa queries in progress: 0
   query logging is OFF
   recursive clients: 1/0/1000
   tcp clients: 0/100
   server is up and running

To stop your server:

rndc stop

To flush the DNS cache:

rndc flush

BIND can be a pain to manage properly, and not without reason there are thousands of pages on how to do it written.

And here's a screenshot of Webmin's "Bind 9 Dynamic Server" module (which you'll have to install separately from the webmin.com site; the basic webmin BIND module doesn't do views very well and was designed for BIND 8):

Bind9webmin.PNG


[edit] See also:

BIND

BIND (installing)

BIND (configuring)

BIND (securing)

Personal tools