[Hostname-devel] Bug#573375: Bug#573375: calling 'hostname' fails

Jeremiah Foster jeremiah at jeremiahfoster.com
Sat Mar 20 15:54:50 UTC 2010


On Mar 19, 2010, at 12:41, Michael Meskes wrote:

>> Calling hostname alone works, it produces the host's name. However any other call
>> to host name produces this error message: hostname: Name or service not known
>> 
>> i.e. hostname -i 
> 
> Is your hostname resolvable, e.g. by other tools? The error message sounds like
> a system that is not able to resolv the hostname.

By resolvable, do you mean via tools that resolve names to numbers? i.e. DNS? Because the answer is yes, dig resolves the host name correctly when I give it the hostname, it gives me the IP it resolves to.

uname -n also produces the right response.

Is there another tool I should use for a more definitive test?

Jeremiah




More information about the Hostname-devel mailing list