Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Linux Operating System > Web/Security
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-31-2005, 08:34 AM   #1 (permalink)
sarg
Junior Member
 
Join Date: Jul 2005
Posts: 14
Default Setting up a dns server RH9

Hi,

Well I have two static ip addresses with my isp. I am trying to setup my own dns server on one of my rh9 boxes. Anyone offer any guides or tips on how to accomplish this.

Thanks
sarg is offline   Reply With Quote
Sponsored Links
Old 07-31-2005, 08: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, 211 views)
__________________
Web Server Guides - MyHostman.com
myhostman is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 03:00 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums