Web Hosting Talk







View Full Version : Setup new IP address


dico
12-18-2001, 07:42 PM
Hi there,

On my Raq4r I have about 50 sites all using the 1 IP address that I started with. Today I got a new IP address for site51. I had already had this site up and running and I am just changing it's IP address so I went in the control panel and changed it in the site settings as well as in the DNS. Now when I type the www.sitename.com I get to the web page of www.myservername.com . When I type in the IP address I get to the site.

WHy is this happening? Do I have to wait a while for the DNS to change even though the DNS is on my machine and I already changed it?

Thanks,

-dr

Pilgrim
12-18-2001, 08:07 PM
Encountered the same thing myself a while back. Yes, you do have to wait a while. 24 Hours should do it.

dico
12-18-2001, 08:08 PM
Thanks...

I was wondering why that was...

Merry Christmas,

-dr

mhosang
12-20-2001, 03:40 PM
I was wondering why that was...


This is because the dns servers from your ISP (that you use to connect to the internet) will cache the dns entries...

That's why you have to wait 24hours

merry x-mas

AP
12-20-2001, 03:57 PM
You can change this by modifying the Time To Live (TTL) on the DNS entry. It is listed in seconds. This tells the local DNS server (at your ISP) how long to wait before refreshing the cached DNS information for that domain. Typically its set to 24 hours, but if you know you are going to make changes to the DNS entry you can set it to say 1 second a day ahead of time, make the DNS change, then change the TTL back to 24 hours. I don't know Cobalt's interface well but I'm sure there is a way to change it if not in the interface you should be able to do it manually in the actual /var/named/whateveryourdomainis file.

BTW you probably don't want to leave the TTL at a low setting since it will result in more hits to your DNS server which are unnecessary.

Also, the condition where you find that you are going to the default web site for the server instead of the intended web site is only a problem for you (or anyone who visited the site in the past 24 hours). Anyone who hadn't had the old DNS info cached at their local DNS server within the past 24 hours will get the new DNS info from your server and should see the proper web site at the proper IP.

AP