On 2017-04-19 18:52:56 (+0300), Marat Khalili <m...@rqc.ru> wrote:
On 19/04/17 18:39, Philip Paeps wrote:
Linux systems often only configure their shortname with `sethostname()` (for reasons I've never understood). If you set a FQDN though, it will be returned with `gethostname()`.

Try to figure out where your particular flavour of Linux sets its hostname and teach it to set a FQDN instead of a shortname.

You're right, this is my case! Will consider moving to FQDN in hostname then (wonder what it may break)...

For what it's worth, I've never encountered anything that *relies* on the weird Linux behaviour. [But plenty of things that don't work around it as elegantly as Postfix does by appending .localdomain!]

Philip

--
Philip Paeps
Senior Reality Engineer
Ministry of Information

Reply via email to