--- check_ntp.pl.orig 2005-12-19 13:34:41.000000000 +0100 +++ check_ntp.pl 2005-12-19 13:43:49.000000000 +0100 @@ -112,7 +112,7 @@ } $opt_H = shift unless ($opt_H); -my $host = $1 if ($opt_H && $opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+(\.[a-zA-Z][-a-zA-Z0-9]+)*)$/); +my $host = $1 if ($opt_H && $opt_H =~ m/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|[a-zA-Z][-a-zA-Z0-9]+([a-zA-Z][-a-zA-Z0-9\.]+)*)$/); unless ($host) { print "No target host specified\n"; print_usage();