I need to move my site from one Windows 2008 + IIS 7 server to another. How can I workaround DNS cache problems (for some time DNS will resolve my host to old server). My old server will work for several days. May I tell IIS to redirect traffic somehow to a new server?
If you are moving a database as well, you will require downtime unless you can set up database replication.
1 ) Lower the TTL to e.g. 60 seconds on your DNS records.
* The reason for doing this is primarily search engines. They do not like duplicate content (seeing the same content on 2 sites) and it could give you penalties. You can still serve the site to the user, so people with browsers won't notice the difference. Search engines (And monitoring systems) will, however see that the resource is not available right now, so there is no reason for caching it.
If the sites are mirrored (they're exactly the same on both servers), and they use the same database/datasource, why don't you just leave it be while you wait for TTL do expire? :-)
If it is absolutely crucial that only one server hosts the site at a time, you could:
Hope this helps :)