![]() |
|
#1
|
|||
|
|||
|
Can someone post a detailed how-to related to setting up a secondary DNS server on a seperate linux box.
I would prefer to have a how-to using Bind - notify to the other box for new zones and updates so we have up-to-date dns on both boxes. Thanks to the gurus for indulging me with this how-to. ![]() Kind Regards, Onno Vrijburg
__________________
Onno Vrijburg SpamBlocker Plugin - Manage SpamBlocker for DirectAdmin InvoicingManager Plugin - The easiest way to manage billing for your DirectAdmin customers DAToolkit Plugin - The missing tools from DirectAdmin |
|
#2
|
||||
|
||||
|
First you have to install bind on another Linux system. How you do that is system dependent; on RHL you make sure that the bind rpms are installed.
Then you need to learn how to administer it; here's a howto on becoming a "small-time" DNS administrator: http://langfeldt.net/DNS-HOWTO/BIND-8/ You'll need to create a directory where bind will store the "slave" dns information it gets from your master server, if your BIND installation doesn't set it up for you; on most linux systems it's at var/named/. You'll need to create zone file records in your /etc/bind.cof file; you should be able to find information on that at: http://langfeldt.net/DNS-HOWTO/BIND-...O-5.html#ss5.6 Though I generally use one line records rather than the multi-line one they show as an example: zone "linux.bogus" { type slave; file "sz.linux.bogus"; masters { 192.168.196.2; }; }; I do it this way because I maintain these by scripts. Using scripts to maintain single line reocrds are simpler than scripts to maintain multiple line records. You'll have to add these manually to the slave-server, or create your own method for creating them automatically, since bind has no mechanism for doing so. Then reload the slave server; on RHL this works: # service named reload (I'm currently working on a script system for doing this, but we just had our first meeting last night; it will take a while.) Jeff
__________________
Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345 Third-Party DirectAdmin administration and support Dedicated Servers, Dedicated Reseller Accounts NoBaloney Internet Services P.O. Box 52200 Riverside, Calif. 92517 |
|
#3
|
|||
|
|||
|
Hi
How to setup an external secondary nameserver on a directadmin server? (box 2 with da will be the secondary) |
|
#4
|
||||
|
||||
|
I'm not sure what you mean.
Do you mean that box 2 will slave dns for sites hosted on box 1? Will box 2 also have it's own sites? If so, will you want box 1 to slave sites hosted on box 2? Jeff
__________________
Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345 Third-Party DirectAdmin administration and support Dedicated Servers, Dedicated Reseller Accounts NoBaloney Internet Services P.O. Box 52200 Riverside, Calif. 92517 |
|
#5
|
|||
|
|||
|
I have 3 DA boxes (A,B & C) running on RH9
Box A,B and C all host websites and run Primary DNS for the sites on the Box itself (currently each box also runs secondary for the sites on the box itself). Situation I wish to create: Box A primary for the sites on A, secondary for the sites on B & C Box B primary for the sites on B, secondary for the sites on A & C Box C primary for the sites on C, secondary for the sites on A & B I've read the BIND manual and have attemted this without success, infact breaking the configuration was the result of my efforts (thankfully I had made backups). I do not want to use unix scripting because BIND should be able to do this almost instantly with the notification mechanism and zone transfers. I have read and successfully configured secondary DNS manually but I would like to do things in an automated way. Some TLDs also require that your DNS be active before you can register a domain name with them. I would like to see a step-by-step HOW-TO as I know for a fact there are other people like me who are not BIND specialists but would like thier hosting setup as stable as possible for the sake of thier customers. I hope someone will be so kind as to share thier knowledge of BIND with the DA users. Thank you very much for your time.
__________________
Onno Vrijburg SpamBlocker Plugin - Manage SpamBlocker for DirectAdmin InvoicingManager Plugin - The easiest way to manage billing for your DirectAdmin customers DAToolkit Plugin - The missing tools from DirectAdmin |
|
#6
|
||||||
|
||||||
|
Re: Explanation of my setup and what I would like a HOW-TO about.
Quote:
.Quote:
What it doesn't have is any mechanism for telling a server it is supposed to be a slave for certain domains. Really. If you ask this question on the bind-users list, or on the comp.protocolos.dns.bind newsgroup (please don't post on both; they're gated to each other) you'll be told (perhaps politely) to RTFM (read the fine manual). Quote:
If there was, I could save a lot of money by telling, for example, ns2.earthlink.net, that it should slave my domains. Quote:
Quote:
Quote:
Jeff
__________________
Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345 Third-Party DirectAdmin administration and support Dedicated Servers, Dedicated Reseller Accounts NoBaloney Internet Services P.O. Box 52200 Riverside, Calif. 92517 |
|
#7
|
|||
|
|||
|
Quote:
ns1 on box 1 ns2 on box 2 and visa versa ns1 of box2 on 2 ns2 of box2 on 1 it's easy but how to setup this in DA ? |
|
#8
|
||||
|
||||
|
You don't set it up in DA; DA currently has no facility for doing it.
What you can do is create your own file with secondary zones defined in it, and include it in your /etc/named.conf file; something like: include "/etc/named/manual.named.conf"; and inside that /etc/named/manual.named.conf file you could have lines like this: zone "lazersys.com" in { type slave; file "/etc/named/rwl/db.lazersys.com"; masters { 204.155.150.42; }; }; That works. And won't be overwritten by anything DA does. Be sure to reload the nameserver when you're done: # service named reload And also to check the logs to make sure it started without error; look at /var/log/messages And make sure it's running: # ps waux | grep named That's it. Jeff
__________________
Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345 Third-Party DirectAdmin administration and support Dedicated Servers, Dedicated Reseller Accounts NoBaloney Internet Services P.O. Box 52200 Riverside, Calif. 92517 |
|
#9
|
|||
|
|||
|
So new feature is born
![]() We have a lot of customers with DA servers. and most of them like the ns2 on an other server.
|
|
#10
|
||||
|
||||
|
We'll soon be offering a complete scripted method of doing slave DNS for lots of different kinds of hosting platforms.
Jeff
__________________
Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345 Third-Party DirectAdmin administration and support Dedicated Servers, Dedicated Reseller Accounts NoBaloney Internet Services P.O. Box 52200 Riverside, Calif. 92517 |
|
#11
|
|||
|
|||
|
This is indeed good news.
I moved accross from Windows to Linux because of stability but lost the automatic master - slave DNS facility that I enjoyed. Thanks a lot for the contructive way in wich the DA people approach problems in thier comunity. Kind regards, Onno Vrijburg
__________________
Onno Vrijburg SpamBlocker Plugin - Manage SpamBlocker for DirectAdmin InvoicingManager Plugin - The easiest way to manage billing for your DirectAdmin customers DAToolkit Plugin - The missing tools from DirectAdmin |
|
#12
|
|||
|
|||
|
Quote:
Quote:
Last edited by Webcart; 05-01-2004 at 02:17 AM. |
|
#13
|
||||
|
||||
|
Webcart,
I tried it, but I can't figure out where to put it and what directory I need to be in when I run it. When I try to run it I get a file *.db not found error. Jeff
__________________
Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345 Third-Party DirectAdmin administration and support Dedicated Servers, Dedicated Reseller Accounts NoBaloney Internet Services P.O. Box 52200 Riverside, Calif. 92517 |
|
#14
|
|||
|
|||
|
Quote:
it was tested on FreeBSD, I guess you are using Linux and the path to *.db is different for you. I will check it in a few days and will post here a portable version
|
|
#15
|
||||
|
||||
|
Assuming the FBSD path is /etc/namedb/manual/ then just replace that with /var/named I guess..
Chris
__________________
OptimumServers » Managed Dedicated Servers & General Systems Management » Coming Soon! ProWebUK - Quality Web Services DirectAdmin Server Checklist |
|
#16
|
|||
|
|||
|
Ok, here is updated version, which should work on both Red Hat Linux and FreeBSD:
Quote:
but I could only test it on FreeBSD.If someone could run it on Linux and post a feedback here, I would appreciate it. This script could be run from any directory and outputs results to stdout, use redirect ">" to forward it to a file. Do not forget to create manual directory on slave nameserver. For FreeBSD it's mkdir /etc/namedb/manual For Linux it's mkdir /var/named/manual Last edited by Webcart; 05-02-2004 at 10:45 PM. |
|
#17
|
|||
|
|||
|
Is there a way to update dns on both servers almost live? I do not want to wait 5minutes every time before being able to register an .nl-domain. (They require the dns to work already properly)
|
|
#18
|
||||
|
||||
|
Re: Re: Explanation of my setup and what I would like a HOW-TO about.
Quote:
__________________
http://www.ministryofhosting.com |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HOWTO : MRTG for Mailscanner | interfasys | How-To Guides | 9 | 09-05-2008 08:43 PM |
| HOWTO: Sync to external DNS servers | xlogicgroup | DNS | 10 | 06-12-2005 10:38 PM |
| DA as primary DNS, external servers as secondary. | triffik | DNS | 2 | 05-10-2005 09:58 AM |
| HOWTO: Basic DNS "clustering" | Protollix | How-To Guides | 7 | 10-19-2004 01:47 PM |
| Secondary DNS on another machine | philmcdonnell | DNS | 24 | 03-03-2004 11:00 AM |