How to configure a dns server in debian
feedback
|
migrated from stackoverflow.com Feb 18 '10 at 5:40
This question came from our site for professional and enthusiast programmers.
|
Install the bind9 and bind9-utils packages. The config and zone files will be in /etc/bind. Don't change named.conf, put your local config in named.conf.local. (Otherwise your changes may be overwritten during an upgrade.) When you make changes to your config or zones, you can use the 'rndc' program to manipulate the server instead of the /etc/init.d script. It gives you more control. Use named-checkconf and named-checkzone to verify that your configuration is correct once you have set up your zones. BIND will let you do "illegal" things without complaint, and then some systems won't be able to send you mail or reach your website. If you don't know how DNS works, get a good book on DNS. (I like O'Reilly's "DNS and BIND".) DNS is not a trivial system and it's easy to make assumptions that are wrong. The 'check' programs are your friend here. | |||
|
feedback
|
|
The proper way would obviously be to use something like bind but the easiest way to do it would be to use dnsmasq. It can function both as a DHCP and a DNS server but you can always disable the DHCP features if you don't need them. Just tell it to ignore the eth0 interface in the configuration. Then, it will function as a pure DNS server. It can also be configured as an authoritative DNS server. | |||
|
feedback
|