[Lxc-users] "hostname --fqdn" returns just an error message

Harald Dunkel harri at afaics.de
Mon May 7 15:19:51 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks,

Running "hostname --fqdn" in an lxc client returns an error
message on stderr and an empty string on stdout:

	# hostname --fqdn
	hostname: Name or service not known

This breaks _many_ scripts and tools (e.g. zabbix_agentd)
and is highly painful.

Would it be possible to make the lxc client more compatible
to a real system in this case? Usually running
"hostname --fqdn" doesn't require any special privileges.


Many thanx in advance

Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAk+n6BIACgkQUTlbRTxpHjfzzwCggiLCOg0N/x74SUhFgYKufsd/
ScQAnRanGCBqlghtXdf1wpqgGQ/61q6C
=bg7e
-----END PGP SIGNATURE-----




More information about the lxc-users mailing list