on 2020 Jul 29 9:08 AM
Dear Experts,
What is the command to check the FQDN in suse 12.
Hi Prashant,
The correct command is hostname -f OR hostname --fqdn only
You are getting only hostname with the command hostname -f because your setting at /etc/hosts file is not in correct format.
The correct format is -
IP-Address Full-Qualified-Hostname Short-Hostname
If your /etc/hosts file has entry
xx.xx.xx.xx hanasfdev hanasfdev.xyz.abc (Optional : can have list of alias too )
the same command will read the middle term and output will be same as you got.
Check your /etc/hosts . It should be
xx.xx.xx.xx hanasfdev.xyz.abc hanasfdev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Under SuSE you can set the hostname with the following command as root:
hostnamectl set-hostname <new FQDN>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
hostname -f
Regards,
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
11 | |
10 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.