Hello Team, I am using ISPConfig 3 since 4 months. I was using cloud.abc.com as my hostname. Now, I want change it and in all other services like postfix etc. My IP address is same. Current Domain: cloud.abc.com New Domain: panel.xyz.cloud ISPConfig Ver: 3.1.7p1 ( Apache Stack ) OS: Debian 9 Thank you
Which distro? What is the output of ls -l /etc/host*? What is the contents of your /etc/hosts and /etc/hostname?
Do your changes to /etc/hosts get overwrittern or is it just adding that ip-number and hostname there automatically? If Google just adds those lines, put your line before or after them. Ask Google how /etc/hosts is supposed to work, maybe there is setting that prevents Google modifying it. Search engines find tricks to modify it back at every reboot.
I noted you are using google cloud. Try @Taleman advise or google around for solution like this one as suggested in stackoverflow: https://stackoverflow.com/a/25552840
I am not used to Google Cloud but I think you should refer to its documentations for the right command: https://cloud.google.com/sdk/gcloud/reference/compute/instances/add-metadata https://cloud.google.com/compute/docs/storing-retrieving-metadata Don't forget to add the suggested cron job too.