GPLHost Dedicated and xen servers
GPLHost:>_ Dedicated, shared, Xen virtual private servers, managed and domain name hosting woldwide with open source control panel here
Domain Technologie Control Forum Forum Index Domain Technologie Control Forum
Take the control of your domain name


DNS Change/Resolution Issue

 
Post new topic   Reply to topic    Domain Technologie Control Forum Forum Index -> Gentoo, and others OS specific support
View previous topic :: View next topic  
izrunas



Joined: 13 Oct 2006
Posts: 77
Location: Richmond, Virginia, USA

 PostPosted: Tue Jul 17, 2007 12:46 pm    Post subject: DNS Change/Resolution Issue Reply with quote Back to top

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. Wink

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
 
View user's profile Send private message Visit poster's website Yahoo Messenger
tusker



Joined: 02 Aug 2005
Posts: 253

 PostPosted: Wed Jul 18, 2007 3:11 am    Post subject: Reply with quote Back to top

Hi,

Which one is correct? The one in the DB or the one resolved? Smile

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>' ;
 
View user's profile Send private message Visit poster's website
izrunas



Joined: 13 Oct 2006
Posts: 77
Location: Richmond, Virginia, USA

 PostPosted: Thu Jul 19, 2007 6:52 am    Post subject: Hmmmmm.... Close Reply with quote Back to top

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
 
View user's profile Send private message Visit poster's website Yahoo Messenger
tusker



Joined: 02 Aug 2005
Posts: 253

 PostPosted: Fri Jul 20, 2007 1:33 am    Post subject: Reply with quote Back to top

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
 
View user's profile Send private message Visit poster's website
gplhost
Site Admin


Joined: 16 Feb 2005
Posts: 3702
Location: Tampa, florida and Singapore, Malaisia

 PostPosted: Fri Jul 20, 2007 5:37 am    Post subject: Reply with quote Back to top

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.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
justhamade



Joined: 20 Aug 2009
Posts: 1

 PostPosted: Thu Aug 20, 2009 7:20 pm    Post subject: /var/www/sites/dtc/mynewfqdn.com/subdomains/dtc/ and 404 dir Reply with quote Back to top

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.
 
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Domain Technologie Control Forum Forum Index -> Gentoo, and others OS specific support All times are GMT
Page 1 of 1

 
Jump to:  
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




Powered by phpBB© 2001-2005 phpBB Group
- Web hosting - Xen VPS hosting
- Seek