Installation


Upgrades


DTC-Xen Installation


DTC-Xen / Dom0 Howtos

DTC-Xen / DomU Howtos

FAQ


DTC Howtos


Manuals


Features


Roadmap


Devel docs


Wiki - i18n


Wiki - Meta


How to rename your DTC VPS

You may want to change the host name of your VPS to your own domain name from the domain name that is automatically assigned when your VPS was created.

You may also want to customise all the screens and templates in DTC with your own branding.

Choosing a host name

Your host name needs to start with a subdomain of your domain name. eg mx.example.com

It is recommended that you use mx. If you don't use a subdomain then you can upset the mail system on your VPS.

To change the host name

What you should do is a grep -R in /etc to find all the files that contain the hostname, so you don't forget an instance of the hostname.

   grep "oldVPSHostName" * -R

eg.

   root@myVPS>_ /etc# grep "oldVPSHostName" * -R
   hostname:mx.oldVPSHostName.tld
   hosts:192.168.1.1 mx.oldVPSHostName.tld dtc.oldVPSHostName.tld oldVPSHostName.tld
   mailname:mx.oldVPSHostName.tld
   motd:Linux mx.oldVPSHostName.tld 2.6.26-2-xen-amd64 #1 SMP Wed Mar 10 00:29:48 UTC 2010 x86_64
   postfix/main.cf:myhostname = mx.oldVPSHostName.tld
   webalizer/webalizer.conf:HostName mx.oldVPSHostName.tld

Notice that your servers host name appears in a number of different files.

Edit each of the files then restart your VPS.

You may also want to edit /etc/MOD.tail (a file that is automatically appended to /etc/MOD each time the server is restarted.

To change your RDNS name

You can also change the RDNS details so that your in-addr.arpa record comes up with your own domain name.

eg.

   .in-addr.arpa	IN	PTR	mx.oldVPSHostName.tld

You can change your RDNS name in the DTC control panel on our server where you control your VPS restarts from. The 'installation' menu has a field for entering your RDNS name.

Remember that DNS changes take time. The name server is updated every 10 minutes, however your dns record also has a TTL on it which may have to expire before you can see the changes. The default TTL is 7200 seconds (2 hours).

Edit your DTC templates

DTC files live in /usr/share/dtc as per the details on this page Directory-StructureDirectoryStructure

Template files for reminder emails live in /etc/dtc

/usr/share/dtc/shared/inc/forms may also contain files that you may want to review.

Rerun the installer

If you're running DTC in your VPS then you'll need to redo the installation.

   # dpkg-reconfigure dtc-common

You will need to run the configuration wizard to update things like postfix.

   # /use/share/dtc/admin/install/install

You need to rerun the installer as well.


Editing this page means accepting its license.

Page last modified on April 13, 2012, at 10:15 AM EST