 |
 |
Domain Technologie Control Forum Take the control of your domain name
|
 |
 |
 |
 |
|
 |
 |
 |
 |
 |
izrunas

Joined: 13 Oct 2006 Posts: 77 Location: Richmond, Virginia, USA  |
Posted: Tue Jul 17, 2007 12:46 pm Post subject: DNS Change/Resolution Issue |
 |
|
I recently put up a new server that runs DTC and gave it the same DNS name as the one I was running before. I was able to properly rename everything on the old server with a new DNS name, but I am getting an error on the daemon states panel:
| Code: |
| ERROR! xxx.xxxxxxxxx.net IP Resolved [66.251.xxx.xxx] is not same as the one I have in the database [70.105.xxx.xxx]! |
I changed the IPs in the paste to protect the innocent.
Anyway... the question is... which database do I need to change and how do I do it via CLI since phpmyadmin will not work while the DNS is having issues?
I am running CentOS with DTC "v.0.22.0 R0 - RedHat"
Thank you in advance for any advice! _________________ R. Eriks Goodwin-Pfister -- Using DTC Since 2006
Centritech
UniMatrix xSP
"A creative man is motivated by the desire to achieve, not by the desire to beat others." --Ayn Rand |
|
| |
|
|
|
 |
 |
 |
 |
 |
tusker
Joined: 02 Aug 2005 Posts: 253
 |
Posted: Wed Jul 18, 2007 3:11 am Post subject: |
 |
|
Hi,
Which one is correct? The one in the DB or the one resolved?
Anyway, I'm going to assume the DB is wrong, please replace <new ip>, <other new ips> and <old ip> with the appropriate values, and remove the <>'s.
| Code: |
UPDATE `config` SET `main_site_ip` = '<new ip>', `site_addrs` = '<new ip>|<other new ips>';
UPDATE `domain` SET `ip_addr` = '<new ip>' WHERE `ip_addr` = '<old ip>';
UPDATE `subdomain` SET `ip` = '<new ip>', `login` = NULL , `pass` = NULL , `nameserver_for` = NULL WHERE `ip` = '<old ip>' ;
|
|
|
| |
|
|
|
 |
 |
 |
 |
 |
izrunas

Joined: 13 Oct 2006 Posts: 77 Location: Richmond, Virginia, USA  |
Posted: Thu Jul 19, 2007 6:52 am Post subject: Hmmmmm.... Close |
 |
|
The instructions were right on-- but turned out not to be the solution I apparently need...
The problem appears to be that I changed the name of the server itself.
Old name: xsp.?????.net
New Name: dtc.xsp.?????.net
So I assume that's the find/replace I need to do in the database?
The old name became the name of another server. _________________ R. Eriks Goodwin-Pfister -- Using DTC Since 2006
Centritech
UniMatrix xSP
"A creative man is motivated by the desire to achieve, not by the desire to beat others." --Ayn Rand |
|
| |
|
|
|
 |
 |
 |
 |
 |
tusker
Joined: 02 Aug 2005 Posts: 253
 |
Posted: Fri Jul 20, 2007 1:33 am Post subject: |
 |
|
Hi,
You will need to do something like the following then:
| Code: |
UPDATE `config` SET `administrative_site` = '<new dtc.fqdn>', `main_domain` = '<new fqdn>';
UPDATE `domain` SET `name` = '<new fqdn>' WHERE `name` = '<old fqdn>';
UPDATE `subdomain` SET `domain_name` = '<new fqdn>' WHERE `domain_name` = '<old fqdn>' ;
|
Where fqdn is xsp.?????.net in your case.
And then the next cron job it should fix it all for you.
Cheers,
Damien |
|
| |
|
|
|
 |
 |
 |
 |
 |
gplhost Site Admin

Joined: 16 Feb 2005 Posts: 3702 Location: Tampa, florida and Singapore, Malaisia  |
Posted: Fri Jul 20, 2007 5:37 am Post subject: |
 |
|
Maybe as well:
| Code: |
| UPDATE cron_job SET reload_named='yes', restart_apache='yes', gen_vhosts='yes, gen_named='yes'; |
Thomas _________________ GPLHost:>_ Opensource hosting worldwide
Xen hosting with DTC pre-setup
Helping is not easy when request is not precise: please past logs, don't use "it said" or similar impersonal subjects, and try to be verbose and exhaustive on your problem description. |
|
| |
|
|
|
 |
 |
 |
 |
 |
justhamade
Joined: 20 Aug 2009 Posts: 1
 |
Posted: Thu Aug 20, 2009 7:20 pm Post subject: /var/www/sites/dtc/mynewfqdn.com/subdomains/dtc/ and 404 dir |
 |
|
These 2 directories were not created by the cron job for me. In case anyone else ever has this issue.
Copying from the old dir to the new dir will work. |
|
| |
|
|
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
 |