View Single Post
Old 07-31-2005, 09:37 AM   #2 (permalink)
myhostman
Junior Member
 
Join Date: Jun 2005
Posts: 2
Default

First you will have to install the bind rpm on your cd's.

Then there are a few files to configure after installing -

rndc.conf and named.conf in your /etc directory.

PHP Code:
/*
* Sample rndc.conf file 
*/

options {
default-
server 72.96.52.127;
default-
key "rndc_key";
};

server localhost {
key "rndc_key";
};

key "rndc_key" {
algorithm hmac-md5;
secret "32cQo34LF0JheZAvud/z+g==";
}; 

--------------------------------------------------------------------------
PHP Code:
/*
* Sample named.conf file 
*/
options 
directory "/var/named/"
};

key rndc_key {
algorithm hmac-md5;
secret "32cQo34LF0JheZAvud/z+g==";
};

controls {inet 72.96.52.127 port 953 allow {localhost;} keys {rndc_key;}
; }; 

zone "0.0.127.in-addr.arpa" 
type master
file "0.0.127.in-addr.arpa.zone"
};

zone "localhost" 
type master
file "localhost.zone"
};

zone "bogus25.com" 
type master
file "bogus25.com.zone"
}; 

---------------------------------------------------------------------------------
* Note that the secret key must match in both rndc.conf and named.conf *
---------------------------------------------------------------------------------
next you will need to add a zone file to your /var/named directory
on the fly something like this:~ bogus25.com.zone ~

PHP Code:
$TTL 86400
IN SOA ns1.bogus25.comsupport.bogus25.com. (
20010923Serial
10800 
Refresh after 3hrs
3600 
Retry after 1 hr
604800 
Expire in 1 week
86400 
) ; Minimum ttl 1 day 
IN NS ns1
.bogus25.com.
bogus25.comIN A 72.96.52.127
www IN CNAME bogus25
.com.
ftp IN CNAME bogus25.com.
mail IN A 72.96.52.127
IN MX 10 mail
bogus25
.comIN MX 10 mail.bogus25.com

--------------------------------------------------------------------------
If your are running dns for the internet and not an intranet you will have to register your domain name as a host using your static ip(s) with your domain registrar. ex: ns1.yourdomain.com

I have attached a little demo for Linux DNS server for local network.
Attached Files
File Type: txt dns_local.txt (3.2 KB, 228 views)
__________________
Web Server Guides - MyHostman.com
myhostman is offline   Reply With Quote
Sponsored Links