Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > Linux
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 26th, 2005, 12:02 AM
Registered User
 
Join Date: Jan 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default secondary DNS vs. second primary DNS

Hi everybody,

I have 2 independent lines provided by 2 independent ISP's, running a "serwer" (DNS and HTTP) on both of them. Let's say the domain is "my-domain.com" so the servers would be like:

SERVER1 (let's say 213.180.132.201)
DNS dns1.my-domain.com
HTTP www.my-domain.com

SERVER2 (let's say 209.202.216.26)
DNS dns2.my-domain.com
HTTP ww2.my-domain.com

dns1 is primary DNS server and dns2 is secondary.

www and ww2 servers the same service (actually run by the third machine, hidden form the net), so no matter if somebody types "www.my-domain.com" or "ww2.my-domain.com" he/she gets the same.

Under normal circumstances, if somebody types "www.my-domain.com" in his/her browser he/she is servered by SERVER1 - nothing strange. But, in case SERVER1 is down for some season, secondary DNS on the SERVER2 is still running and ... resolves it into 213.180.132.201 which is DOWN.

How should I set-up the secondary DNS so it resolves "www.my-domain.com" into "ww2.my-domain.com" or "209.202.216.26" in case SERVER1 is not operating properly? Or, maybe should I have also primary DNS on SERVER2?

P.
Reply With Quote
  #2 (permalink)  
Old March 1st, 2005, 10:40 AM
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

> Hi everybody,

Hallo

> I have 2 independent lines provided by 2 independent ISP's, running a
> "serwer" (DNS and HTTP) on both of them. Let's say the domain is
> "my-domain.com" so the servers would be like:
>
> SERVER1 (let's say 213.180.132.201)
> DNS dns1.my-domain.com
> HTTP www.my-domain.com
>
> SERVER2 (let's say 209.202.216.26)
> DNS dns2.my-domain.com
> HTTP ww2.my-domain.com
>
> dns1 is primary DNS server and dns2 is secondary.

What do you mean - I'm assuming that you're saying dns1 && dns2 are the nameservers for both www && ww2. Is that right?

> www and ww2 servers the same service (actually run by the third
> machine, hidden form the net), so no matter if somebody types
> "www.my-domain.com" or "ww2.my-domain.com" he/she gets the same.

Are you saying you're running your webserver on another machine i.e.

   |dns1/www| |dns2/www2|
        | |
        ----------------
               |
           |3rd box|

> Under normal circumstances, if somebody types "www.my-domain.com" in > his/her browser he/she is servered by SERVER1 - nothing strange.
> But, in case SERVER1 is down for some season, secondary DNS on the
> SERVER2 is still running and ... resolves it into 213.180.132.201
> which is DOWN.
>
>
> How should I set-up the secondary DNS so it resolves
> "www.my-domain.com" into "ww2.my-domain.com" or "209.202.216.26" in > case SERVER1 is not operating properly? Or, maybe should I have also > primary DNS on SERVER2?

Just change the zone record for www.my-domain.com to 209.202.216.26 on the nameserver (i.e. dns2, if dns1 is down). If your domains are managed by your ISP/s they often provide a tool for doing this.

If your running BIND yourself it's in the manual.

One issue you may have with this is that lots of dns queries get cached, you want to make sure that the time they're cached for is as short as possible, though that will mean your nameservers getting more queries. Ask your ISP, or see the BIND manual.

--
Don't Stand on your head - you'll get footprints in your hair. http://charlieharvey.com
Reply With Quote
Reply


Thread Tools
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing from DNS to DNS less connection dudeshouse Classic ASP Databases 4 February 7th, 2007 12:02 PM
DNS , Route through, RT nakulmadaan BOOK: Beginning Java 2 2 March 16th, 2005 11:41 AM
dns ghari Classic ASP Professional 3 October 27th, 2004 03:12 AM
DNS kilika Classic ASP Professional 5 August 4th, 2004 01:53 PM
DNS Configuration anibiswas Linux 1 December 10th, 2003 01:13 PM



All times are GMT -4. The time now is 01:53 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.