terça-feira, 23 de novembro de 2010

Bind9 with chroot simple version

Having my first steps in Linux, I will just posting the easiest ways to do things with this system.
So I wanted to install a DNS(nameserver) into a CentOS 5.5 machine, the easiest way is:
using Bind9 with chroot as installed by default in the CentOS server.

# cd /var/named/chroot/etc/
edit/create the file
# nano named.conf
put this in the file
options {
directory "/var/named";
forwarders { 8.8.8.8; };
};
# service named start
# dig google.com

the service should be all ok and responding, don't forget to change the /etc/resolv.conf to point to the new nameserver

Sem comentários: