Files
martnet-ddns/bin/delvhost.pl
2016-02-22 08:46:29 -05:00

15 lines
272 B
Perl
Executable File

#!/usr/bin/perl
use strict;
use warnings;
use Martnet::DDNS;
use Regexp::Common qw/net/;
my $host = shift || die "No vhost provided";
die "Hostname must end in a dot"
unless ($host =~ /^[a-zA-Z0-9\.]+\.$/);
my $ddns = Martnet::DDNS->new();
$ddns->delvhost($host);