On 04/02/2015 02:10 PM, Mihamina Rakotomandimby wrote:
the mechanism is described here:
and as far as I see it simply asks the DNS about the hostname using getaddrinfo.
On my system the "--fqdn" flag doesn't work if my /etc/resolv.conf doesn't have domain <mydomain> or search <mydomain> option enabled.
You can see it with strace hostname --fqdn.
Also see man resolver for additional information.