DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old May 15th, 2003, 10:15 AM
dos1031 dos1031 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 1 dos1031 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question DNS Configuration Help Please!!

I'm a newbie to DNS so bear with me. My company host several websites that are registered at Register.com. The sites are currently using register.com's DNS servers which are:
dns5.register.com
dns6.register.com

What I want to do is replace Register.com's DNS server entries with my own (here below) for each of the sites we have registered there.
ns1.mycompany.net
ns2.mycompany.net

I have just installed Red Hat Linux 8.0 on a machine we have here that is going to be our DNS server. I have seen some examples but like I said I'm new to the DNS world and could use some assitance. I running BIND version 9.1.2.

The machine's IP address with Red Hat Linux 8.0 that will be the DNS server is (e.g. 67.1.2.3)

The machine's IP address that has the web server with the sites on it is (e.g. 67.1.2.10)
URL
URL
URL
URL
URL
URL
URL
etc... i'm sure you get the picture.

Here are the contents of my file db.mycompany.net in the /var/named directory:

$TTL 3h
mycompany.net. IN SOA ns1.mycompany.net. al.ns1.mycompany.net. (
1 ;Serial
3h ;Refresh after 3 hours
1h ;Retry after 1 hour
1w ;Expire after 1 week
1h) ;Negative caching TTL of 1 day

; Name servers
mycompany.net. IN NS ns1.mycompany.net.
mycompany.net. IN NS ns2.mycompany.net.

; Addresses for the canonical names
localhost.mycompany.net. IN A 127.0.0.1
ns1.mycompany.net. IN A 67.1.2.3
ns2.mycompany.net. IN A 67.1.2.4

; Multi-homed hosts
;I not sure if I need this so it's none for now.

; Aliases
server1.mycompany.net. IN CNAME ns1.mycompany.net.
server2.mycompany.net. IN CNAME ns2.mycompany.net.

; Interface specific names
;I not sure if I need this so it's none for now.


Here are the contents of my file db.67.1.2 in the /var/named directory:

$TTL 3h
2.1.67.in-addr.arpa. IN SOA ns1.mycompany.net. al.ns1.mycompany.net. (
1 ;Serial
3h ;Refresh after 3 hours
1h ;Retry after 1 hour
1w ;Expire after 1 week
1h) ;Negative caching TTL of 1 day

; Name servers
2.1.67.in-addr.arpa. IN NS ns1.eltran.net.
2.1.67.in-addr.arpa. IN NS ns2.eltran.net.

; Addresses for the canonical names
3.2.1.67.in-addr.arpa. IN PTR ns1.eltran.net.
4.2.1.67.in-addr.arpa. IN PTR ns1.eltran.net.

Here are the contents of my file db.127.0.0 in the /var/named directory:

$TTL 3h
0.0.127.in-addr.arpa. IN SOA ns1.mycompany.net. al.ns1.mycompany.net. (
1 ;Serial
3h ;Refresh after 3 hours
1h ;Retry after 1 hour
1w ;Expire after 1 week
1h) ;Negative caching TTL of 1 day

; Name servers
0.0.127.in-addr.arpa. IN NS ns1.mycompany.net.
0.0.127.in-addr.arpa. IN NS ns2.mycompany.net.

; Addresses for the canonical names
0.0.127.in-addr.arpa. IN PTR localhost.

Here are the contents of my file named.conf in the /etc directory:

// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source address * port 53;
};

//
// a caching only nameserver config
//

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "eltran.net" IN {
type master;
file "db.eltran.net";
};

zone "14.92.67.in-addr.arpa" IN {
type master;
file "db.67.92.14";
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "db.127.0.0";
};

zone "." IN {
type hint;
file "db.cache";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};


include "/etc/rndc.key";


I'm not real sure where in the files I need to add my 7 websites. If there are any shortcuts, loop-holes or pitfalls I should know about or watch out for please feel free to voice your knowledge. I know I'm asking for a bit much but assistance would be greatly appreciated!

Dave

Reply With Quote
  #2  
Old June 7th, 2003, 08:48 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
What I want to do is replace Register.com's DNS server entries with my own (here below) for each of the sites we have registered there.
ns1.mycompany.net
ns2.mycompany.net


Log into the control panel for mycompany.net and create those two name servers, with two IP addresses. This process varies between registrars, see http://cr.yp.to/djbdns/dot-com.html

I question your use of BIND. It is over-complex,a nightmare to maintain, and has a woeful security history. Why not use tinydns? It'll make your life easier.
__________________
Alex
(http://www.alex-greg.com)

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > DNS Configuration Help Please!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway