Nov 8, 2009

Backup DNS For Domain

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Networking

Backup DNS For Domain

nightfox
Hey,

I'm not sure the technical term, but you know how domains have primary and secondary name servers? Well, I know that when you go to a domain, it queries NS1.ASTAHOST.COM (for example if you were hosted here) and if NS1 is down, it goes to NS2. Well, what I have a web server running on my network and what I'd like to do is have it setup with a "Site Temporarily Down" message and then if the server goes down for example.com, NS1 & NS2 also go down, have it redirect to a third DNS server to redirect it to the server on my network with the "Site Down" message.

How do I do this?

Thanks!

I'm not sure where this belonged, but please move it if you feel it belongs somewhere else! smile.gif

[N]F

Comment/Reply (w/o sign-up)

Hercco
Theoretically:

First of all your domain name provider should be allowing you to add a third nameserver (2nd backup) for your domain. I recall mine allowed more than two.

Then you should have the third nameserver available from which the address the name converts to would be different, i.e. the one of the "site down" server.


But I don't think this'll work. See, everytime someone accesses your site by domain, he gets connected to a same nameserver which caches name-address pairs. If the name-address pair isn't available at the nameserver the nameserver queries another server further in the network and this way tries to acquire the name-address pair. The name servers are updated from other servers with a certain interval. The key point is that the nameservers you have selected in your domain settings are not accessed everytime someone requests a page from your website.

Basically it is possible to have different addresses for a certain domain but in your case some of the traffic will still be directed to the address of the server that is down.

 

 

 


Comment/Reply (w/o sign-up)

nightfox
Ah, I see. I asked because I have a site on a server that got taken offline because of a fake bank site and I'd like some of my traffic to know what is going on by directing them to a different server.

[N]F

Comment/Reply (w/o sign-up)

Levis
QUOTE(nightfox @ Dec 28 2006, 05:51 AM) *

Hey,

I'm not sure the technical term, but you know how domains have primary and secondary name servers? Well, I know that when you go to a domain, it queries NS1.ASTAHOST.COM (for example if you were hosted here) and if NS1 is down, it goes to NS2. Well, what I have a web server running on my network and what I'd like to do is have it setup with a "Site Temporarily Down" message and then if the server goes down for example.com, NS1 & NS2 also go down, have it redirect to a third DNS server to redirect it to the server on my network with the "Site Down" message.

How do I do this?

Thanks!

I'm not sure where this belonged, but please move it if you feel it belongs somewhere else! smile.gif

[N]F



Hey Nightfox,
Theoretically it’s a sound idea but it would not work. See NS DNS propagation works by searching the fastest server. This is usually done by sending a ping request to the NS. The fastest readout becomes the default NS. See NS1 or NS2 does not mean it’s the first and second NS it is just a name. So my just adding two additional name servers would only mess your site up. You would see your website constantly going from your website to the backup site. Hope that makes sense.

So what can you do?
If you have your own house server and have your own Name Servers you could register them into your domain Name Servers setup account and just turn of your home server. That way, when the DNS pings out your NS they would not exist. Now when your hosting account goes down you would just have to turn on your home server.

Wait but you want them to start automatically right?
Well you could probably find a free or paid service which could contact you when your server is down (Search Google). I have done this several years ago and don’t know if it can be repeated again. I had my website monitoring service send me an e-mail that the server was done. Then I created a script to execute a batch script if an e-mail was send from a certain e-mail. The batch script would then initiate my apache service. That’s all I did.

Hope this helps, it’s a great idea but it takes a lot of work. Even though I did this on a windows system, I recommend to use a Debian or any other great linux distribution.

Comment/Reply (w/o sign-up)

vizskywalker
QUOTE(nightfox)
So what can you do?
If you have your own house server and have your own Name Servers you could register them into your domain Name Servers setup account and just turn of your home server. That way, when the DNS pings out your NS they would not exist. Now when your hosting account goes down you would just have to turn on your home server.

Wait but you want them to start automatically right?
It should also be possible to have your own sever try and ping the other nameservers. If it can find them, it can simply forward the data, or send no response to the ping, so that the machine looking for the site will go with another nameserver. If your server can't reach the proper site through the proper nameservers, then it can send the appropriate data to point to the backup site. At least, from what I know of networking, that is theoretically possible. I have no idea how to go about doing it, though.

~Viz

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : backup, dns, domain

  1. Connecting To A Domain And A Workgroup
    (7)
  2. Free Secondary Dns/backup Name Server
    Enterprise Secondary DNS (0)
    Free Secondary DNS Provider List http://www.gamesaga.net/secondary_dns/ dnsmadeeasy.com
    twisted4life.com dnspark.net editdns.net everydns.net ...... ....
  3. Network Domain & Network User Accounts
    (2)
    Hello, I got an evaluation copy of Windows Server 2003 and I'm already having problems. I'm
    just trying to expand my knowledge using my home network. Ok, I have a network domain
    (moonburst1.gotdns.org) and I *think* I setup my server correctly. However, when I try to connect my
    laptop to the domain, I get the following: QUOTE The error was: "DNS name does not exist."
    (error code 0x0000232B RCODE_NAME_ERROR) The query was for the SRV record for
    _ldap._tcp.dc._msdcs.moonburst1.gotdns.org Common causes of this error include the following: -
    The DNS SRV rec....
  4. Server Domain (help!)
    (5)
    Ok, for testing my knowledge, I got a free domain "floppydrives.cjb.net" and free DNS service at
    ZoneEdit.com. However, when you visit "floppydrives.cjb.net" you're taken to the document root
    of "/var/www/html" instead of where I'd like it to go: "/home/user/public_html" I think this is
    more of a web issue/server issue, so I apologize if you feel that this is in the wrong forum. If it
    is, could a mod move it to where they feel it should go? Thanks! F....
  5. Network Domain And Dynamic Dns
    (6)
    Hey, I was looking through the config pages of my Linksys WRT54G router and found a Dynamic DNS
    page and decided, what the heck might as well try it. Since I'm restricted to two services
    (DynDNS.org and TZO.com) I tried out DynDNS.org and got a domain for my network. I also enabled
    remote management so I can be at school or on the road and can check the status of my network or
    remotely do something to the router without having to get the IP since Alltel DSL is dynamic which
    is a real pain but since I can go days, I usually have the same IP for awhile unless the net....
  6. Windows Live Custom Domain: Question
    (4)
    Most of you would have been to the recently opened site by Microsoft : Windows Live Custom Domains
    Beta . Things that they give you : 1. 20 e-mail accounts in your domain 2. Each account having a
    250MB space 3. Junk mail filter protection 4. Virus Scanning. 5. Access it with Messenger, MSN
    Spaces etc. Now my problem. I entered my domain of astahost : XXXXX.astahost.com. I get the
    following error : The domain name entered is not available for use with this service. . I type in
    : astahost.com , and it works. What would i need inorder to work my domain on this ? Re....
  7. How To Backup MySQL DBs Regularly Using Cron Jobs
    (1)
    I remember seeing a guide on setting up a cron job that would back up a MySQL database and e-mail it
    to a given e-mail address, w/o a php file (I think) does anybody know how to do this or where to
    find that guide? I can't find it now... /sad.gif' border='0' style='vertical-align:middle'
    alt='sad.gif' /> ....
  8. Sharing "domain" & "workgroup"
    Network 2 dissimilar Computers? (6)
    Hello All, I have what may be a strange question... hopefully the answer/fix isn't as strange.
    *grin* I have a home network. Works fine. Main computer hardwired, daugher's computer via
    Wireless. They work fine together. I also have been provided a Laptop from work. I'm able to
    sucessfully use my network wireless card and gain access to the internet at home. This Laptop from
    work... is setup with the Network ID, as a "DOMAIN"... to fully access the "Intranet" at work. As
    is normal for home usage... my main computer at home, as well as the daughter....
  9. Dyndns (get A Domain Name For Your Home Computer)
    wuth this free service (7)
    Most Home internet users have dynamic IP address' Meaning they may change every time you reboot
    your computer or router. For most internet use, you dont need to worry about your IP, but if like
    me you need to ssh into your home network from work or university... OR run quake servers somtimes
    to play againsed your friends... then you probably know how annoying dynamic IP's really are.
    Maybe you want to run a public webserver from home ? getting a non computer savvy fiend to remember
    and type "connect 103.213.7.* " usually probes way more complicated than it sho....
  10. Site Backup
    (3)
    I was wondering if there was any way to backup one site to another site on a different server. So
    if the first site goes down you could redirect users to the second site and it would be the same. I
    looked through the backup in cpanel and it did not seem like it has this functionality. If anyone
    knows of a script that can do this it would be awesome. Thank You....
  11. dns adress and IP to configure a domain
    Problem with registrar company (6)
    Hi guys. While I'm waiting for my startin' pack in astahost, I've got an account in
    100WebSpace . They sent me the dns adress to configure my domain, however my registrar company asked
    for an IP number asociated with that dns. None IP number was provided to me by the hosting company
    with such purpose, only one corresponding to the ftp server. I used this IP in my registrar and it
    works. My question is: is always neccesary to provide an IP number beside the dns?....
  12. free .info domain
    yes free for one year (23)
    In case you don't already know, .info domain are getting cheaper and cheaper. Some of the
    registrars are even offerring them free for one year. I got some of my .info domain from
    domainsite.com for free. But appearently they are charging 0.99$ for one year now. You can get
    them for free from www.domaindiscount24.com till the end of the month....

    1. Looking for backup, dns, domain

See Also,

*SIMILAR VIDEOS*
Searching Video's for backup, dns, domain
advertisement



Backup DNS For Domain

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com