/move_domain.sh not changing IP address

roly

Verified User
Joined
Nov 9, 2006
Messages
182
hi

i'm just setting up a server with directadmin, i'm restiring user backups from a different server and moving dsome domains to different users using the move_domain.sh script. this has worked on a lot of domains but it doesn't seem to be chnaging the ip address from the server ip that i imported it onto the server on.

this is what move_domain.sh say's when i run it:

./move_domain.sh mydomain.com admin99 admin10
Moving domain data to the admin10 user.
Setting ownership for mydomain.com domain.
Setting stats directory ownership for mydomain.com domain.
Removing domain from admin99 user.
Adding domain to admin10 user.
Changing domain owner.
The old IP (mydomain.com
1.1.1.1) does not match the new IP (2.2.2.2). Swapping...
Usage:
/usr/local/directadmin/scripts/ipswap.sh <oldip> <newip> [<file>]
you gave #4: /usr/local/directadmin/scripts/ipswap.sh mydomain.com 1.1.1.1 2.2.2.2
Usage:
/usr/local/directadmin/scripts/ipswap.sh <oldip> <newip> [<file>]
you gave #4: /usr/local/directadmin/scripts/ipswap.sh mydomain.com 1.1.1.1 2.2.2.2
Usage:
/usr/local/directadmin/scripts/ipswap.sh <oldip> <newip> [<file>]
you gave #4: /usr/local/directadmin/scripts/ipswap.sh mydomain.com 1.1.1.1 2.2.2.2
Debug mode. Level 10


one thing that might be relevant, my various ip's that i have on this server are not showing under the nameserver section on the reseller level. i added the additional ip's manually to the server by creating /etc/sysconfig/network-scripts/ifcfg-eth0:1 type files but didn't add the ip's to directadmin until afterwards and then it said they were already installed on the server.

so basically it's not changing the ip address in the domainnane.com.db files, anyone got any ideas what the issue is?

thanks in advance
 
Last edited:
I've edited the thread title. I'll bring your post to attention of DirectAdmin staff; hopefully they'll be able to reply.

Jeff
 
Hello,

What do you get, when you type:
Code:
cd /usr/local/directadmin/data/users/[b]username[/b]
grep ip domains/[b]domain.com[/b].conf
Looking at the code, my guess is that the word "ip" exists in your domain name, which would be the change_domain.sh bug.

I'll change it to look for "^ip=" instead of just "ip".

John
 
thanks guys for all the help. yes that was the issue, i had by the time you replied changed all the ip's in the domainnane.com.db files manually on the domains that had issues as i needed to get it all setup asap. however you're correct regarding the word ip existing e.g. one of the domains with an issue had the word "tip" in it. having changed the dns files manually is there likely to be anything else that the move_domain.sh script didn't do, that needs doing?
 
Back
Top