From 07dc0d75c51695777c247423be6b1a6f983f8ae8 Mon Sep 17 00:00:00 2001 From: Matthew Slowe Date: Sat, 12 Jun 2021 17:02:15 +0100 Subject: [PATCH] Handle unknown types a little nicer --- manage-dns.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manage-dns.pl b/manage-dns.pl index a6907bd..9bc6adb 100755 --- a/manage-dns.pl +++ b/manage-dns.pl @@ -137,7 +137,8 @@ sub reformat_data($$) { sub check_and_update_record($$$$$) { my ($zone, $data, $type, $host, $value) = @_; if(my $err = is_unsupported($type)) { - die ("Unable to process $host $type: $err"); + warn ("WARNING: Unable to process $host $type: $err"); + return; } # _info("Considering %s %s %s", $host, $type, $value);