This commit is contained in:
Sandro 2020-05-30 05:24:46 +02:00 committed by GitHub
parent b066538182
commit 327b1e5161
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 20 deletions

View file

@ -4691,14 +4691,14 @@ sub nic_woima_update {
sub nic_dnsexit_examples { sub nic_dnsexit_examples {
return <<"EoEXAMPLE"; return <<"EoEXAMPLE";
o 'dnsexit' o 'dnsexit'
The 'dnsexit' protocol is the protocol used by the dynamic hostname services The 'dnsexit' protocol is the protocol used by the dynamic hostname services
of the 'DnsExit' dns services. This is currently used by the free of the 'DnsExit' dns services. This is currently used by the free
dynamic DNS service offered by www.dnsexit.com. dynamic DNS service offered by www.dnsexit.com.
Configuration variables applicable to the 'dnsexit' protocol are: Configuration variables applicable to the 'dnsexit' protocol are:
ssl=no ## turn off ssl ssl=no ## turn off ssl
protocol=dnsexit ## protocol=dnsexit ##
server=update.dnsexit.com ## defaults to update.dnsexit.com server=update.dnsexit.com ## defaults to update.dnsexit.com
use=web ## defaults to web use=web ## defaults to web
web=update.dnsexit.com ## defaults to update.dnsexit.com web=update.dnsexit.com ## defaults to update.dnsexit.com
@ -4713,7 +4713,7 @@ Example ${program}.conf file entries:
login=service-userid \\ login=service-userid \\
password=service-password \\ password=service-password \\
fully.qualified.host fully.qualified.host
EoEXAMPLE EoEXAMPLE
} }
###################################################################### ######################################################################
@ -4724,21 +4724,17 @@ sub nic_dnsexit_update {
## update each configured host ## update each configured host
foreach my $h (@_) { foreach my $h (@_) {
my $ip = delete $config{$h}{'wantip'}; my $ip = delete $config{$h}{'wantip'};
info("setting IP address to %s for %s", $ip, $h); info("setting IP address to %s for %s", $ip, $h);
verbose("UPDATE:","updating %s", $h); verbose("UPDATE:","updating %s", $h);
# Set the URL that we're going to update # Set the URL that we're going to update
my $url; my $url;
$url = "http://$config{$h}{'server'}$config{$h}{'script'}"; $url = "http://$config{$h}{'server'}$config{$h}{'script'}";
$url .= "?login="; $url .= "?login=$config{$h}{'login'}";
$url .= $config{$h}{'login'}; $url .= "&password=$config{$h}{'password'}";
$url .= "&password="; $url .= "&host=$h";
$url .= $config{$h}{'password'}; $url .= "&myip=$ip";
$url .= "&host=";
$url .= $h;
$url .= "&myip=";
$url .= $ip;
# Try to get URL # Try to get URL
my $reply = geturl(opt('proxy'), $url); my $reply = geturl(opt('proxy'), $url);
@ -4757,9 +4753,7 @@ sub nic_dnsexit_update {
$config{$h}{'mtime'} = $now; $config{$h}{'mtime'} = $now;
$config{$h}{'status'} = 'good'; $config{$h}{'status'} = 'good';
success("updating %s: good: IP address set to %s", $h, $ip); success("updating %s: good: IP address set to %s", $h, $ip);
} } else {
else
{
my @reply = split /\n/, $reply; my @reply = split /\n/, $reply;
my $returned = pop(@reply); my $returned = pop(@reply);
$config{$h}{'status'} = 'failed'; $config{$h}{'status'} = 'failed';

View file

@ -244,7 +244,7 @@ ssl=yes # use ssl-support. Works with
## ##
## dnsexit (www.dnsexit.com) ## dnsexit (www.dnsexit.com)
## ##
#protocol=dnsexit #protocol=dnsexit, \
#login=myusername #login=myusername, \
#password=mypassword #password=mypassword, \
#subdomain-1.domain.com,subdomain-2.domain.com,subdomain-3.domain.com #subdomain-1.domain.com,subdomain-2.domain.com