The power of the World Wide Web we know today relies heavily on the potentialities of the Domain Name System (more popular as DNS) - one of the largest databases in the world, which is responsible for the smooth communication of computers within networks. With the help of DNS servers the domain names are converted to their corresponding numerical IP addresses, which computers need in order to communicate with each other to locate websites on the Internet.
Customer Feedbacks
Simply Love It! Great Job, love the new panel, huge upgrade. We appreciate your service and hard work! Thanks again! Craig S.
Great new Control Panel setup. Well done! James F.
I really love the new control panel, the whole layout is much easier to navigate. The upload speed is much faster and I really enjoy the look and feel of the new site. Sincerely, Samantha S.
The new control panel is so much better. I think this one has much more control over files and how they are controled compared to the previous one. Patrick J.
New set up works very well for me i have found it really easy to use so far once i got used to it, thanks for a great job on the upgrade. Jerry-Smith K.
Absolutely brilliant! MUCH faster! MUCH more user-friendly! I LOVE the new control panel! Reuben B.
Cool Upgrade !! Thank you for the new panel..its very cool!! HBL
The New Control Panel! I like it. It's much more professional than the previous one and easy to navigate around. I haven't spotted any errors yet. John K.
Just a short note to say that the new control panel seems easier to work with than the old one. eep up the good work. Troy J.
Love everything so far about the new Control Panel. Much more intuitive than before. K O'Neill
DNS servers are divided into public and private DNS servers. While the majority of the public servers are run by larger Internet Service Providers and commercial companies, the private DNS servers are used mainly for private home networks. Setting up DNS servers in the home network is highly recommended in cases when your network includes more than a few computers with the purpose of increasing its efficiency.
With a DNS Server set up for your private home network you can centralize the management of host information and track the host file for every client in your network. In addition, private DNS servers allow your clients to make DNS resolution requests within your home network, since they have the ability to cache DNS information.
Install and configure a BIND DNS server
Bind can be easily installed with most Linux distributions - it's available in their repositories. You can also compile it from the source code.
To install BIND 9 from the repositories, enter in superuser mode and run:
apt-get install bind9
And you now have bind installed on your machine. You can start and stop it at any time with the “start” and “stop” commands.
Stopping Bind
/etc/init.d/bind9 stop
Starting Bind
/etc/init.d/bind9 start
How to "chroot" Bind
The first step of the Bind configuration is to "chroot" it. This means that bind will not be executed with root privileges, but as a separate user, which is limited to see only its folder tree. This is done for security purposes - if someone manages to exploit a BIND vulnerability, he will not be able to do much damage, since BIND’s folder structure will act as root folder.
Here we will show you how to chroot bind to the "var/lib/named" folder. The first thing to do is to edit the /etc/default/bind9 file. We will tell the bind daemon to run this file as the user “bind”, who has no privileges. This is how the file should look like:
The /etc/default/bind9 file:
OPTIONS="-u bind -t /var/lib/named" # Set RESOLVCONF=no to not run resolvconf RESOLVCONF=yes
Now, we will have to create the specific folder in the /var/lib directory.
This will create all the necessary folders for BIND to work without a problem in the "var/lib/named" folder. The next step is to copy BIND's configuration file. The file is located in the "/etc/bind" folder, and we will have to move it to the "/var/lib/named/etc" folder.
cp /etc/bind /var/lib/named/etc
Once we have the configuration file in its new location, it's time to create a symlink to it, since this will be very useful for future BIND updates.
ln -s /var/lib/named/etc/bind /etc/bind
Now BIND will be running without a problem in the chroot jail. However, it will still need access to several files in order to function properly, for example - the /dev/null. You can create all of them with the following commands:
The final step is to configure the systemlog to send log and error messages to the correct location. For this, you will have to add the following line:
SYSLOGD="-a /var/lib/named/dev/log"
to the "/etc/default/syslogd" file. Here is how the file should look after that:
A syslogd file for a chrooted BIND
# # Top configuration file for syslogd #
# # Full documentation of possible arguments are found in the manpage # syslogd(8). #
# # For remote UDP logging use SYSLOGD="-r" # SYSLOGD="-a /var/lib/named/dev/log"
Now, restart syslogd and BIND and check "/var/log/syslog" for any errors.
Once you have installed and chrooted BIND, it's time to start using it. The first thing that you need to do is add a DNS zone for your domain name. To do this, you will need to edit the "named.local.conf" file.
vi /etc/bind/named.conf.local
In there, you can add the following text to create a DNS zone for the "my-best-server.com".
zone "my-best-server.com" { type master; file "/etc/bind/zones/my-best-server.com.db"; };