|
From: | Mats Erik Andersson |
Subject: | Re: [bug-inetutils] dnsdomainname, domainname, nisdomainname, ypdomainname |
Date: | Tue, 13 Mar 2012 11:29:59 +0100 |
User-agent: | Mutt/1.5.18 (2008-05-17) |
tisdag den 13 mars 2012 klockan 09:57 skrev Simon Josefsson detta: > Mats Erik Andersson <address@hidden> writes: > >> I have pushed 'dnsdomainname' now. Let's take a look at the others > >> next... > > > > BSD systems only provide hostname(1) and domainname(1). > > > > I note that neither of these 'hostname' implementations appears to be > able to canonicalize the name using the resolver. > > That means our 'dnsdomainname' is thus only for compatibility with > existing GNU/Linux systems. Unless someone finds any other systems out > there with a 'dnsdomainname' tool on it... Observe that "hostname" and "dnsdomainname" were the only executables in the package "hostname" of Debian GNU/Linux until 2009 in version 2.97. Only then did "domainname", "ypdomainname", and "nisdomainname" enter. In addition, for GNU/Linux "domainname" is an interface into the settings of the Linux kernel, it has nothing to do with the resolver. Hence it will return "(none)" unless the kernel has been told otherwise. This is in accordance with the mechanisms for BSD systems. Regards, Mats
[Prev in Thread] | Current Thread | [Next in Thread] |