On 04/02/2015 02:10 PM, Mihamina
Rakotomandimby wrote:
Hi al, Hi, the mechanism is described here: http://sources.debian.net/src/hostname/3.15/hostname.c/ 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. Alex
|