Results 1 to 5 of 5

Thread: Server IP and hostname change

  1. #1
    Join Date
    May 2012
    Posts
    87

    Server IP and hostname change

    Hello, we have changed our internet provider hence have to change directadmin server ip and hostname as well ( according to our service provider it could take upto 5 days for adding PTR records). I did created new A name record with ip ( that will be used for server) with namecheap and have internet provider set PTR record for it. I have already contacted Directadmin

    I have read these 2 KB
    Change Server IP: https://help.directadmin.com/item.php?id=250
    Change Hostname: https://help.directadmin.com/item.php?id=405

    What i don't understand is how will this change actual IP on our server, yes this might change the IP that directadmin works on but shouldn't i be changing the server ip first.
    What i think proper way of doing this is: Centos 7

    1) Change the IP on serve : https://www.itzgeek.com/how-tos/linu...fedora-26.html
    2) Reboot Server
    3) Get/Change License IP : https://help.directadmin.com/item.php?id=250
    4) Change Host Name: https://help.directadmin.com/item.php?id=405
    4) Restart all services or server

    Am i missing anything .

    Thanks

  2. #2
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    4,078
    Looks to me you are correct, but I would use another order slightly, depending on what exactly has to be done.
    I understand that you change your internet provider, but is that a private internet provider? Because a PTR does not take 5 days. And normally when changing to another datacenter provider, why should you need to change the hostname?

    Maybe you can clear this up for us? Why the hostname change is needed? Are you using the license at home?
    Greetings, Richard.

  3. #3
    Join Date
    May 2014
    Location
    Netherlands Germany
    Posts
    536
    We did do yes with other hostname , having 2 VPS DA boxes then moving but only after first setting TTL at max 10 Minutes for dns ns changes.
    Then having in dns for the move on old dns / box also pointing to new so even no loss in dns ns ttl times if doing so.
    YUP more work.

    So you have more time to have the new host / vps at the newest modern settings / technics newer software as OS versions and tested first that for example emailserver is owrking good on that IP (s) before moving important domains, while some provider deliver ip's in bad neighbourhood or even on black list you don't want that , if moving all in short one time

    I don't understand your part of changing ip on old or new server self, only if you are moving the hardware box with DA to other provider then yup.

    You have your old DA at old provider with old ip.
    New DA 9 same license ask da support for short timely 1 extra license or for base setup take a demo/test license whatever (BOX/vps/server) at new provider with new ip and hostname ( hostname change you need if you don't move all in one time)

    And have the DA the license and OS set afterwards right as it must.

    also depending on the nameserver / dns services you use and how much domains / ip's changes makes yes or no such move some work.

    I know a provider bringing your own ip's that is then really really the jackpot you have to pay them to setup in their network , i was total "baff" getting the offer for such with yearly also high costs even ipv6 then. ( ok "owned" but ) ( i don't know how much work such is or how much extra on their network capacity so don't ... me )
    Last edited by ikkeben; 08-20-2019 at 05:14 PM.
    DUTCH GERMAN, GERMAN DUTCH

  4. #4
    Join Date
    May 2012
    Posts
    87
    Thanks for the reply, as far as 5 days is concerned that's because they are just busy or lazy. But PTR was set within 3 days
    So here how it all went and i need help

    1) Change the IP on serve : https://www.itzgeek.com/how-tos/linu...fedora-26.html
    2) Reboot Server
    3) Get/Change License IP : https://help.directadmin.com/item.php?id=250
    4) Change Host Name: https://help.directadmin.com/item.php?id=405
    4) Restart all services or server

    So i followed this list but it did not worked out correctly.

    I changed the server IP and restart the server, then tried to get the license but was getting this error



    [root@matrix2 scripts]# ./getLicense.sh 34921 99941
    --2019-08-20 17:21:03-- https://www.directadmin.com/cgi-bin/...9941&uid=34921
    Resolving www.directadmin.com (www.directadmin.com)... 216.144.255.179
    Connecting to www.directadmin.com (www.directadmin.com)|216.144.255.179|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 68 [text/html]
    Saving to: ‚€˜/usr/local/directadmin/conf/license.key‚€™

    100%[==================================================================================================================================================================================>] 68 --.-K/s in 0s

    2019-08-20 17:21:03 (9.00 MB/s) - ‚€˜/usr/local/directadmin/conf/license.key‚€™ saved [68/68]

    You are not authorized to download the license with that client id and license id (and/or ip). Please email sales@directadmin.com

    If you are having connection issues, see this guide:
    http://help.directadmin.com/item.php?id=30

    IP used to connect out: 207.XXX.XX.XXX
    I followed the help article listed in the error and added my new IP but still got the same error.

    So i changed my IP in Directadmin account and then i was able to install new license.

    But then got into another issue, hostname was linked to old IP which does not exist on server anymore. So i manually changed the HOSTNAME in /etc/hosts with new IP and hostname.

    Now when i connect on new serverurl it redirect me to old server address. I was able to login and change the Server hostname in admin settings to new hostname and NS records. But it still goes on to old.domain.com:2222 instead of new.domin.com:222 address. I manually restart directadmin but not still same result.

    Any ideas how to fix this.
    Thanks

  5. #5
    Join Date
    Jul 2008
    Location
    Maastricht
    Posts
    4,078
    Do not use new.domain.com:2222 but use new.ip.addr.ess:2222 then there change everything like ip and hostname.

    I presume you did change the license IP at Directadmin including checked the correct OS? If yes, doublecheck that the change is made!

    If still not working it might be best to indeed write a mail to sales if you did not already.
    Greetings, Richard.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •