#1 (permalink)  
Old 06-14-2009, 04:20 PM
Registered User
 
Join Date: Aug 2008
Posts: 51
taproot is on a distinguished road
Resolving weirdness

Hi,

I moved a site between two cpanel server both of which are mine. The servers are ns1 and ns2. I moved the site from ns1 to ns2 2 days ago at which point the DNS had not been set to my servers yet. Last night the customer updated their DNS and pointed it to my servers. Some people are seeing the site on ns1 and some on ns2. I re-sync'd the nameservers and did a DNS cleanup. I checked the entries on both server manually in /var/named/domain.org.db and they both are set to the correct IP address. Any idea why some people would still see the site resolving to ns1 at this point?

Cheers,
TR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-14-2009, 04:40 PM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
Exclamation

When you update a DNS record, notification of the change is sent up to the
root servers for the TLD of your domain name and then that update feeds
back down to all the servers around the world based on TTL.

The problem is that many ISP's implement localized DNS caching within
their own networks and pull live DNS updates on their own schedules
instead of TTL settings. In plain English, this means that the DNS
information may be updated and correct but some ISPs may have old
cached data pointing back to the old information that sticks around for
a few days longer until their servers decide to update the information.

To complicate matters further, most PCs also cache DNS routing information
locally as well and if you frequently visit a site and that site changes it's
IP address, your computer may still try to go to the old IP address even
though anyone new visiting the same site would correctly go to the
new address. This can of course be changed by flushing your local DNS
cache or by adding a route to the new IP in the host file on the computer
of the visitor who is visiting that site:

Code:
ipconfig /flushdns     (Windows XP/Vista command to flush DNS cache)
When transferring sites to a new server, I often duplicate the site on the
new server and setup a mirroring update to keep the old site in sync and
then go ahead and update the DNS information on the OLD server
to point to the NEW IP address on the NEW server so that
connections start going over to the new server and those who have old
improper cache data can still see the site on the OLD server.
After a few days, I go ahead and update the DNS servers themselves
for the domain and then cut the OLD site.

By doing it this way, there is no appearance of downtime and everything
is seamlessly transferred from the original server to the new server.

If you want to be sure you are connecting to a specific server, you can
put the domain and www address in your local hosts file:
Code:
C:\Windows\System32\Drivers\Etc\Hosts    (Windows XP/Vista)

/etc/hosts    (Linux / Unix)
Anyway, taproot, to answer the question in your post directly, the issue
you are experiencing is common and is natural and is caused by the
update transitional period where some ISPs have live DNS data and others
have old cached data and has more to do with how the worldwide DNS
system works and isn't anything to do with your server or what you did!

Everything will sort itself on it's own in a couple of days!

Last edited by Spiral; 06-14-2009 at 04:42 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-14-2009, 05:09 PM
Registered User
 
Join Date: Aug 2008
Posts: 51
taproot is on a distinguished road
Hi,

Thanks for the input. I did not explain very well though as the DNS was never ever set to the ns1 ip address so it was not a propagation issue. It seems however that restarting bind solved the problem. Basically when cpanel updated the DNS records for some reason Bind on NS1 was still serving the old IP address as I had originally created the new account there and then moved it before DNS was moved to my servers. Even though the db file in /var/named/ was correct, it did not respond with the right answer until restart I guess bind has some caching locally or was just not reading the updated file for some reason. Bleh.

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-14-2009, 05:50 PM
Spiral's Avatar
Registered User
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,501
Spiral is on a distinguished road
If the new server wasn't originally the authoritative server, that could be the issue and would yes make it cache old DNS information just like everyone else.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-01-2009, 09:19 AM
Registered User
 
Join Date: Oct 2007
Posts: 3
diyamput is on a distinguished road
could you show me on your /var/log/messages ?
maybe i have same problem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IMAP - Leopard Weirdness paul.fox Mail 2 02-24-2009 10:44 PM
SSH weirdness brianc cPanel and WHM Discussions 5 10-17-2008 05:45 PM
Easy::Apache Weirdness Gene Steinberg cPanel Newbies 2 10-16-2007 12:41 PM
Filter Maintenance weirdness midnightz cPanel and WHM Discussions 4 12-14-2005 02:55 AM
Weirdness with changing IPs optize cPanel and WHM Discussions 3 07-31-2005 10:02 PM


All times are GMT -5. The time now is 12:35 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc