LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   FQDN setup in SLE 12 (https://www.linuxquestions.org/questions/suse-opensuse-60/fqdn-setup-in-sle-12-a-4175679632/)

prashant Nagar 07-30-2020 04:21 AM

FQDN setup in SLE 12
 
Dear Experts,
I corrected entries in /etc/hosts file for FQDN setup. Do i need to run any command or any post steps so that FQDN take place.

berndbausch 07-30-2020 05:47 AM

By "take place" I suppose you mean "be effective". What effect is the FQDN supposed to have on your system?

/etc/nsswitch.conf normally configures domain name lookup to first check /etc/hosts. For example on my Ubuntu 16.04:
Code:

hosts:          files mdns4_minimal [NOTFOUND=return] dns
"files" means /etc/hosts.

I don't think you have to do anything, but to be certain, check /etc/nsswitch.conf.

Honest Abe 07-30-2020 06:04 AM

a quick way to check is hostname -f.
Also, a quicker way to set fqdn (minus the domain discovery/lookup) is to use the handy hostnamectl uttility.

TB0ne 07-30-2020 08:25 AM

Quote:

Originally Posted by prashant Nagar (Post 6150885)
Dear Experts,
I corrected entries in /etc/hosts file for FQDN setup. Do i need to run any command or any post steps so that FQDN take place.

You posted FQDN questions already:
https://www.linuxquestions.org/quest...dn-4175679578/

Even more odd that your profile lists you as a "SAP Technical Consultant", working for a consulting firm, and you're unfamiliar with basics???


All times are GMT -5. The time now is 08:16 AM.