Project

General

Profile

Support #484

Updated by Daniel Curtis over 5 years ago

A name server is one of the most critical servers on a network, it allows for the translation of host names into IP addresses; as well as a few other really neat functions. This is a guide for setting up a simple DNS server along with Webmin for graphical administration.  

 * Install BIND: 
 <pre> 
 pkg install bind912 bind-tools bind910 
 </pre> 

 * Start and enable BIND at boot: 
 <pre> 
 sysrc named_enable="YES" echo 'named_enable="YES"' >> /etc/rc.conf 
 service named start 
 </pre> 
 #* *NOTE*: Since I am already running my DNS inside of a jail I need to disable automatic chrooting of BIND via the following command: 
 <pre> 
 sysrc named_chrootdir="" echo 'named_chrootdir=""' >> /etc/rc.conf 
 </pre> 

 h2. GUI Frontend 

 * Install Webmin 
 <pre> 
 pkg install webmin 
 </pre> 

 * Enable Webmin at boot: 
 <pre> 
 echo 'webmin_enable="YES"' >> /etc/rc.conf 
 </pre> 

 * Run the Webmin setup.sh script in order to setup the various config files: 
 <pre> 
 /usr/local/lib/webmin/setup.sh 
 </pre> 

 * Log into the Webmin panel and go to +Servers -> BIND DNS Server -> Edit Config File+ and change the listen-on parameter so the DNS server will listen on the network: 
 <pre> 
 listen-on 	 { 192.168.16.66; }; 
 </pre>

Back