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
ISPConfig 3 Hostname Change, try try change in /etc/hosts and /etc/hostname, even deleting, it goes back again to: 10.142.0.2 srv.us-east1-b.c.drarebecagomes-221302.internal srv # Added by Google 169.254.169.254 metadata.google.internal # Added by Google I want run the command and stay that way hostname -f painel.drarebecagomes.com and not like srv.us-east1-b.c.drarebecagomes-221302.internal Can you help me? Thank
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.
My dear, Ahrasis, this below My Distro = Debian 9 stretch myuser1@srv:~$ sudo ls -l /etc/host* -rw-r--r-- 1 root root 9 ago 7 2006 /etc/host.conf -rw-r--r-- 1 root root 7 nov 3 20:26 /etc/hostname -rw-r--r-- 1 root root 222 nov 25 06:58 /etc/hosts -rw-r--r-- 1 root root 411 out 11 17:15 /etc/hosts.allow -rw-r--r-- 1 root root 711 out 11 17:15 /etc/hosts.deny Content of /etc/hosts 127.0.0.1 localhost 127.0.0.1 painel.drarebecagomes.com painel 10.142.0.2 srv.us-east1-b.c.drarebecagomes-221302.internal srv # Added by Google 169.254.169.254 metadata.google.internal # Added by Google Content of /etc/hostname painel I want when run the command hostname -f = appear = painel.drarebecagomes.com to after I configure the SSL in painel.drarebecagomes.com:8080
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 already asked for help to him, and I also did the procedure that he indicates, but does not work...
@ahrasis I do not understand how to add $ gcloud compute instances add-metadata <instance> --metadata hostname=<new_hostname> a like gcloud compute instances add-metadata <srv.us-east1-b.c.drarebecagomes-221302.internal> --metadata hostname=<painel.drarebecagomes.com> thanks
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.