blob: 3e55ace0199fe5bae5fbe7a5ccca26873c0d04ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use Net::Domain qw(hostname domainname hostdomain);
use Net::Config;
unless($NetConfig{test_hosts}) {
print "1..0\n";
exit 0;
}
print "1..1\n";
$domain = domainname();
if(defined $domain && $domain ne "") {
print "ok 1\n";
}
else {
print "not ok 1\n";
}
|