Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    378

    Default server hostname

    ok.. I changed my server hostname via the whm server "change hostname" now I had 50 million problems with this.. 1. it never stuck after reboots etc. 2. I had problem with the dns and crap for it.

    so anyhow I finally get it working and such.

    but now I notice that the old hostname is still resident somewhere on the server....as when I look at bandmin and other places I still see it in the place where my new hostname should be?

    any suggestions?
    Sheldon King
    Server Adminisrator
    http://www.forgehosting.com

  2. #2
    Member
    Join Date
    Jun 2004
    Posts
    78

    Default

    Login as root to your server:

    # hostname new.hostname.com

    Edit the following files

    /etc/sysconfig/network

    /etc/hosts

    Enter your new hostname in each.

    Then replace the old hostname within httpd.conf

    /usr/bin/replace 'old.hostname.com' 'new.hostname.com' -- /usr/local/apache/conf/httpd.conf

    Restart apache and exim - Make sure dns resolves and that any PTR records as necessary have been added for the new hostname

    That should do it.
    Dedicated Servers - Reseller Hosting
    cPanel Partner NOC - www.zentity.com

  3. #3
    Member
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    378

    Default

    whats a PTR record?

    and btw thanks... looks like it worked so far
    Sheldon King
    Server Adminisrator
    http://www.forgehosting.com

  4. #4
    Member
    Join Date
    Jun 2004
    Posts
    78

    Default

    PTR is a reverse dns record, you should have one for the mail server IP (usually your main IP)

    See what yours is by

    # host 123.123.123.123

    (Replace 123.123.123.123 with your main IP)

    You should see

    # host 123.123.123.123
    123.123.123.in-addr.arpa domain name pointer your.hostname.com.

    If you see

    # host 123.123.123.123
    Host 123.123.123.in-addr.arpa not found: 3(NXDOMAIN)

    Then ask your datacenter or provider to create a reverse dns record for your hostname

    Hope this helps.
    Last edited by zentity; 06-16-2004 at 11:15 PM.
    Dedicated Servers - Reseller Hosting
    cPanel Partner NOC - www.zentity.com

  5. #5
    Member
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    378

    Default

    Host xx.xx.xx.66.in-addr.arpa not found: 2(SERVFAIL)

    wuts that mean?
    Sheldon King
    Server Adminisrator
    http://www.forgehosting.com

  6. #6
    Member
    Join Date
    Jun 2004
    Posts
    78

    Default

    Thats not good either - It looks like a provider error with regards the PTR record - Let them have the output of that command and ask them to add a reverse dns record (PTR) for your new hostname with your main IP - You will then have no trouble sending mail to mail servers that require reverse dns (AOL for one)
    Dedicated Servers - Reseller Hosting
    cPanel Partner NOC - www.zentity.com

  7. #7
    Member
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    378

    Default

    ticket sent off

    most apreciated..

    thanks
    Sheldon King
    Server Adminisrator
    http://www.forgehosting.com

  8. #8
    Member
    Join Date
    Jun 2004
    Posts
    78

    Default

    Not a problem.
    Dedicated Servers - Reseller Hosting
    cPanel Partner NOC - www.zentity.com

  9. #9
    Member
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    378

    Default

    erm hey..

    now none of my domains except my primary domain without the www is working..

    is it because the dc doesnt have reverse dns setup?
    Sheldon King
    Server Adminisrator
    http://www.forgehosting.com

Similar Threads & Tags
Similar threads

  1. hostname of server?
    By AngleOfDeath in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-09-2007, 02:24 PM
  2. Server Hostname... Can I do this
    By nerdzoll in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-20-2005, 01:24 AM
  3. Server Hostname
    By PortugalNetwork in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-12-2005, 10:09 AM
  4. Server hostname help
    By stuartbaggs in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 06-17-2004, 03:19 PM
  5. server hostname
    By henhen in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-02-2003, 03:55 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube