PDA

View Full Version : nameserver priority


manuleka
13 Nov 2007, 11:34pm
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?

kryyst
14 Nov 2007, 1:19pm
Generally whichever name server a computer sees first that has the info it's looking for will be used.

manuleka
14 Nov 2007, 6:46pm
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?

kryyst
14 Nov 2007, 8:18pm
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.

manuleka
14 Nov 2007, 9:00pm
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?

kryyst
15 Nov 2007, 1:01pm
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....

manuleka
15 Nov 2007, 7:22pm
ok... thanks for that... now i learn something :)