Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Before anything I should acknowledge that my question was not understandable enough. So I totally edited that

I have a VPS with DirectAdmin control panel.

One of my users had registered with domain1.com. Now he had decided to change his domain. That's all he is going to do. NO files, databases, username, email accounts are changed. The only change is the with the domain name.

Is there a way to change an account's primary domain name in DirectAdmin?

share|improve this question
    
I was not able to tage my question with 'DirectAdmin'. Please add the tag if anybody can! –  smhnaji Jan 29 '12 at 18:10

1 Answer 1

up vote 2 down vote accepted

I would expect http://your.server.com:2222/CMD_CHANGE_DOMAIN?domain=domain1.com to work.

share|improve this answer
    
The account doesn't want to stay with domain1.com. He wants to move to a new domain domain2.com but without losing any data or settings. In fact, the account only wants to change its domain. Nothing else. –  smhnaji Jan 29 '12 at 20:43
    
That's what the command CHANGE_DOMAIN does, it changes the domain. It changed the domain you give it to a domain it will ask you for. You need to be logged into DA as the user that owns domain1. DA will prompt you to give it the domain name you want to change it to. It will then adjust the DNS and apache confs renaming domain 1 to whatever domain2 you provide to it. –  navaho Jan 30 '12 at 5:02
    
Yes, thank you. And here's the HowTo using DirectAdmin interface: 1. Login as owner of the account, not as admin. 2. Go to Domain Setup 4. Go to Change a Domain Name 3. Simply enter the new domain name in the text box and submit the Change button :) –  smhnaji Jan 30 '12 at 18:13
    
JUST as an FYI for anyone reading this at a later date, "Go to Change a Domain name" does not always appear as a linked option to the user. That depends upon the DA skin you you have assigned to them. Earlier versions of the default skin did not, some of the simpler skins available don't. The url CMD_CHANGE_DOMAIN should always work regardless of what skin you are using and of course as an admin you can always temporarily assign the "power user" skin to the user that needs to make a domain name change. –  navaho Jan 30 '12 at 21:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.