From 84975621a0d537ee45f7893ccbace21c0b280b82 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Sat, 21 Jul 2018 13:09:00 -0400 Subject: [PATCH] Specify port number properly to 'nsupdate' 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 = '';