Changed IP on a domain, now forwarding to another domain?

I am having an issue with private IPs (migrating to a new server).

When I set a domain's IP to a new IP, save it, and go to it in my browser, it forwards to the first domain that is using the server's shared IP. Another time I tried it and it masks the domain - showing a different site than the one I want...

Any idea on what might be causing this?

Status: 
Closed (fixed)

Comments

Howdy -- two thoughts come to mind as possible culprits --

  1. Don't forget that domain names are cached in DNS. So if you browse to www.example.com, and then change the IP address for www.example.com to something else, the old IP address could be cached for a day or so, causing some unexpected behavior until the cache clears up.

  2. Another possibility is that one or more Virtual Servers could have a * in their VirtualHost definition rather than an IP address. If type this on the command line:

    grep '<VirtualHost *' /etc/apache2/sites-enabled/*

Do you get any hits? If so, that could be part of the trouble (and we can help you fix that up).

THANKS!

Migrating is turning out to be tough, but it'd be much tougher without virtualmin :-).

For some really strange reason, it just "started to work" all of the sudden. I have no idea what did it - maybe the DNS needed to propogate or something.

Alex

I guess this is resolved then..

Automatically closed -- issue fixed for 2 weeks with no activity.