nameserver priority

edited November 2007 in Science & Tech
i'm running a couple of sites under two hostings...

the seqence they are set on my registrar are like this:

nameserver 1: ns1.example1.com
nameserver 2: ns2.example1.com
nameserver 3: ns1.example2.com
nameserver 4: ns2.example2.com

now it seems like host example2 runs by default and when its down my site gets loaded from example1

shouldn't it be the other way around?

now i've set email accounts for the two sites on example2... would that be the reason why?

Comments

  • kryystkryyst Ontario, Canada
    edited November 2007
    Generally whichever name server a computer sees first that has the info it's looking for will be used.
  • edited November 2007
    kryyst wrote:
    Generally whichever name server a computer sees first that has the info it's looking for will be used.

    i think you are incorrect... but then which are you talking about? the routing machines or the machine of the person visiting the site?
  • kryystkryyst Ontario, Canada
    edited November 2007
    Machine of the person visiting the site. Their machine points to a DNS that DNS has a record that it gets from another DNS etc.... So whichever DNS they hit in their priority that says "Yes I know who that is" that's where it will go.
  • edited November 2007
    isn't the all dns gets updated and has the same record? they all should point to the first server then second server etc etc...

    or is this depends on the registar as well?
  • kryystkryyst Ontario, Canada
    edited November 2007
    manuleka wrote:
    isn't the all dns gets updated and has the same record? they all should point to the first server then second server etc etc...

    or is this depends on the registar as well?

    No. Name Servers keep track of the computers on their network and then pull in any information from whatever name servers they are getting their info from. So it'll all depend on what path your computer takes to get to that server. The first server that your computer comes across that knows your webserver (in either version) will report back.

    Also DNS record changes roll out, they can take up to 48hrs (in a few cases I've seen it take longer) So which name server entry they are using will depend on when one was down when they last updated their info etc....
  • edited November 2007
    ok... thanks for that... now i learn something :)
Sign In or Register to comment.