10 use Net::Domain qw(hostname domainname hostdomain);
13 unless($NetConfig{test_hosts}) {
20 $domain = domainname();
22 if(defined $domain && $domain ne "") {
29 # This check thats hostanme does not overwrite $_
30 my @domain = qw(foo.example.com bar.example.jp);
33 my @dummy = grep { hostname eq $_ } @domain;
35 ($domain[0] && $domain[0] eq $copy[0])