Which option, when passed to the hostname command, will return the name of the DNS domain?

Which option, when passed to the hostname command, will return the name of the DNS domain?
(Provide only the option)

Which option, when passed to the hostname command, will return the name of the DNS domain?
(Provide only the option)

Answer: -d

Explanation:
-d, –domain
Display the name of the DNS domain. Don’t use the command domainname to get the DNS domain
name because it will show the NIS domain name and not the DNS domain name. Use
dnsdomainname instead.



Leave a Reply 0

Your email address will not be published. Required fields are marked *