Wednesday, October 27, 2010

Install and configure the DNS server BIND

DNS is crucial to your server if you want to be accessible on the Internet. The reason is that domain names are much easier for users to type and easy to remember. So, you have a DNS server if you think you have Internet users connect to the server. The default DNS server is the Berkeley Internet Name Domain (BIND). BIND is available via the Internet or ISC Software Consortum isc.org. InIn addition, available through your BIND distribution. In the case of BIND, I would recommend you to download the packages via the website of your distribution. Before a domain name, you must register first, that there are several services available to register domain names. Once installed, then edit the file / etc / named.conf and add the following to it:
zone "desireddomain.com" {
type master;
file "desireddomain.db";
};

You are obviously replacethe "strings desireddomain, if necessary, with the new domain name. This voice tells the service specified that this server is the master server (DNS 2 DNS servers needed for redundancy). Now then, we will now use the file" desireddomain.db "which should be placed in the name of the working directory, which is specified at the beginning of / etc / named.conf. In this file, we need the following information:

IN SOA nameofyourfirstdnsserver.com. nameofyourseconddnsserver.com. (
1000000; Series
10,800; Refresh - 3 hours
3600; Again - 1 hours
86,400; expired - 24 hours
3600), Minimum - 1 hour

IN NS nameofyourfirstdnsserver.com

www IN A ipaddressofwebserver
FTP in a ipaddressofftpserver
SMTP in a ipaddressofmailserver

This must be stored in the directory specified in the first lines of / etc / named.conf. Now we will configure a secondary DNS server or a slave> DNS Servers. This is much easier than setting up the primary server. The only change the named.conf file / etc / on the secondary server. The following should be stored in the file / etc / named.conf file:

zone "desireddomain.com" {
type slave;
file "desireddomain.db";
};

Now we can get the configuration file of the first server using a utility that comes with BIND, named-xfer. We will do this by entering:

named-xfer-zdesireddomain.com desireddomain.db-f \-s 0 addressofprimarynameserver

This will copy the configuration file of the primary DNS server). BIND should start automatically, if not, then you can start with the following command (for most systems:
/ Etc / init.d / named start

You must allow somewhere between 24 and 48 hours for the DNS records updated when you move the DNS server from host to host. DNS is a protocol for large andmakes our lives easier, we're too lazy (like a domain name instead of IP).

Friends Link : Tension Force Portable MP3 Walkman Store

No comments:

Post a Comment