Package: perl-modules Version: 5.8.7-3 Severity: normal All the following methods agree with each other:
ay:~> hostname ay.vinc17.org ay:~> uname -n ay.vinc17.org ay:~> perl -e 'use Sys::Hostname; print hostname()."\n"' ay.vinc17.org But... ay:~> perl -e 'use Net::Domain qw(hostfqdn); print hostfqdn()."\n"' ay.local In the module, two subroutines are called by domainname: _hostname, which gives "ay.vinc17.org", _hostdomain, which gives "local". IMHO, if _hostname returns a hostname with a dot, then this is the FQDN and it should be returned without having to call _hostdomain. A word about my machine: This is a laptop, which can be connected on various networks (or be outside of any network). The goal of the FQDN is to identify the machine and the FQDN must not change when the machine is moved to a different network (or is connected to two networks at the same time). As I own a domain name (and control it), I've given the name ay.vinc17.org (which is not resolvable on the Internet, but due to the status of the machine, this makes sense). My machine is currently on a private network at home, where I set up a local domain "local"; this is why _hostdomain returns local. BTW, it seems that mixing parts of @host and @domain as the module currently does may give a FQDN of a different machine. For instance, if I connect my machine to a domain called "foo.bar", and there exists a different machine "ay.foo.bar", then returning this FQDN (formed with the leading part of ay.vinc17.org and the domain name foo.bar) would be completely wrong. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (900, 'testing'), (900, 'stable'), (200, 'unstable') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.11-20050618 Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1) Versions of packages perl-modules depends on: ii perl 5.8.7-3 Larry Wall's Practical Extraction perl-modules recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]