I am trying to make a script that will ping an IP address and tell you the name of the server it is pinging.
It works....mostly
I cannot seem to figure out how to make Linux (Ubuntu more specifically) to display the dns domain suffix that is set inside of the "resolv.conf" file.
if I type "hostname" at a command prompt all I get is "ubuntu01"
I tried typing domainname and all I get is the output "(none)" which is confusing me considering I can type the hsotname of any computer on my network and it will append the DNS suffix of "solignis.local" to it just like it is supposed to.
Any ideas?
hostname -fshould return the FQDN for the local host if the /etc/hostname and /etc/hosts is setup properly. – Zoredache Dec 17 '10 at 2:14