DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 28th, 2004, 02:07 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
Advanced BIND configuration

I just now switched to using "views" in BIND. I'm fairly proud of my dns server configuration right now. The server is practically split into 2 servers where a caching server is listening on loopback and the DollarDNS hosted domains on the ethernet IP. It also splits the DollarDNS domains so that local addresses are returned for local queries. This is demonstrated using the DNS Crawler as shown below:

http://www.dollardns.net/cgi-bin/dn...s=256&submit=DS

http://www.dollardns.net/cgi-bin/dn...s.net&submit=DS

This config also sports an advanced logging configuration far superior to the example shown in http://www.dollardns.net/bind/

Several options are also used which aren't mentioned in the example config. So here's my DNS server config which I use for personal and client use. Perhaps you can take some tips from it.

http://www.dollardns.net/bind/advanced/named.conf
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Last edited by SilentRage : April 17th, 2004 at 10:21 AM.

Reply With Quote
  #2  
Old January 29th, 2004, 11:13 AM
trininox trininox is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 42 trininox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via ICQ to trininox Send a message via AIM to trininox
I think you meant to use Localhost on the first link?
http://www.dollardns.net/cgi-bin/dn...s=256&submit=DS

I havent looked at the conf yet, so perhaps its in there but I'm wanting to allow my clients to modify their DNS records, the way you have it on your services, but i'll perhaps be using PHP instead.

How do you call up an individuals record? are they custom confs that are loaded seperately from your main configuration.

I'm guessing it is, but multiple files or do you have some system of pulling out each users and editing it from a single file.
__________________
-Trininox
http://gto.dynu.com

Last edited by SilentRage : June 4th, 2004 at 09:48 AM. Reason: updated DollarDNS link

Reply With Quote
  #3  
Old January 29th, 2004, 05:40 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
I used to have DNSCrawler resolve localserver to 127.0.0.1. Now DNSCrawler relies on the server for all resolution so that reference was removed. I've edited my link to use a more appropriate server to query the local zone for dollardns domains. Thanks for pointing that out.

This is how I pull things off:

First an account is created:

1) /var/named/usr/$user directory is created
2) /var/named/usr/$user/zones.conf is created and is empty
3) /var/named/usr/$user/zones.db is created and is empty
4) /var/named/usr/users.conf is appended with an "include" statement including /var/named/usr/$user/zones.conf

User creates a master zone

1) /var/named/usr/$user/zones.db is appended with a zone record
2) /var/named/usr/$user/$zone.zone is created based on the master zone template
3) /var/named/usr/$user/$zone.conf is created with zone configuration defaults. It's in key=value format.
4) /var/named/usr/$user/zones.conf is generated with BIND zone syntax based on the contents of zones.db and each $zone.conf. This file is viewable via the "View Zones Configuration" link in the Zone Manager.
5) BIND's "rndc reconfig" is executed and the change takes effect immediately.

User edits master zone

1) /var/named/usr/$user/$zone.temp is created with the new zone contents
2) BIND's named-checkzone.exe is executed to check the temp zone file for syntax errors.
3a) If there's errors, these errors are formatted and returned to the user.
3b) If there's no errors it writes the contents to /var/named/usr/$user/$zone.zone and executes "rndc reload $zone IN host" to reload the zone so the changes take effect immediately.
4) /var/named/usr/$user/$zone.temp is deleted.

Well that's some of how the core works. It's a tight system.

Last edited by SilentRage : March 6th, 2004 at 07:52 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Advanced BIND configuration


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 1 hosted by Hostway