I've uploaded a version of the package to intrepid-proposed with the patch posted above.
Note for the TEST CASE: in order to get dnsdomainname return an error, deleting the line in /etc/hosts that defines the fqdn of the system is enough:
127.0.1.1 hostname.domainname alias
Doing so should lead dnsdomainname to return an error:
$ dnsdomainname dnsdomainname: Unknown host
I've uploaded a version of the package to intrepid-proposed with the patch posted above.
Note for the TEST CASE: in order to get dnsdomainname return an error, deleting the line in /etc/hosts that defines the fqdn of the system is enough:
127.0.1.1 hostname.domainname alias
Doing so should lead dnsdomainname to return an error:
$ dnsdomainname
dnsdomainname: Unknown host