From 118cad0f1173ff3c4fcfe463b23feb35a2b06191 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Wed, 25 Jul 2018 05:08:49 -0400 Subject: [PATCH] Specify port number properly to 'nsupdate' (#58) If a port number is included in the 'server' configuration item, ddclient allows a port number to be specified by appending a colon and the port number to the server's name or IPv4 address. However, nsupdate does not support this syntax, it requires the port number to be separated from the server name/address by whitespace. Signed-off-by: Kevin P. Fleming --- ddclient | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ddclient b/ddclient index 6b74cf9..5c250fd 100755 --- a/ddclient +++ b/ddclient @@ -4146,6 +4146,8 @@ sub nic_nsupdate_update { my $binary = $config{$h}{'login'}; my $keyfile = $config{$h}{'password'}; my $server = $config{$h}{'server'}; + ## nsupdate requires a port number to be separated by whitepace, not colon + $server =~ s/:/ /; my $zone = $config{$h}{'zone'}; my $ip = $config{$h}{'wantip'}; my $recordtype = '';