Why won't it update the IP address? I certainly have the correct domain name, and password. Ohhhhh, I think I got it. I didn't quite understand what a subdomain was.
Let me see if I have time to fix it tomorrow, then I'll post a link to the perl script if anybody wants it. Um, I'll make it a BSD license, or whatever. Probably be useful to more people if I did that. Top Reply with quote Report. Separate name and target by whitespace. A name is a relative or fully- qualified domain name.
A target can be one of these:. This mirrors the basic functions of the script. To add some extra candy, the target parameter has two other possibilities which have proven very useful in my environment. A target can also be:. In both cases, the script will give the name a free IP if possible from either the C net or the net segment specified by its identifier.
To pull all of the various possibilities together, here is a list of sample input lines, each representing one of the mentioned possibilities for the target:. Now to the code. At startup, wdns. This is handy, because it will use this list again and again. If it finds a host for the given name, it uses the FQDN as a basis to construct the name part of the targeted record. If it cannot find a name, it assumes that it should create an entirely new record.
If the options permit -c , it constructs one. Then it inspects the target. Depending on its type, the program prepares to assign a new IP to the name, rename an existing A record while retaining the IP, search for a free IP in a certain range, or just delete existing records. When everything settles, the actual changes take place, using dnscmd to delete and add A and PTR records as appropriate. There is no UpdateRecord function in dnscmd , so updating is in fact a combination of delete and create.
One of the major issues when manipulating DNS resource records is picking the right zone to do the change in. If you have just one forward and one reverse zone, this is simple. However, if you are maintaining a lot of zones with domains and nested subdomains, while other subdomains of the same parent have their own zones, this might be tedious. They take an IP or a fully qualified domain name respectively, and split it into the node part and the zone part. If --urlping web page requires authentication, supply password for a secured web page.
Use non-capturing parenthesis to control the match as needed. For example this is incorrect:. Use this if you want to know details how the program initiates connection or if you experience trouble contacting DDNS provider. Print help page in Unix manual page format. You want to feed this output to nroff -man in order to read it.
Run in test mode, do not actually update anything. This is for developer only. All command line values that set host information or provider are ignored. Visit the page of the provider and create an account. Write down the login name, password and host name you registered. It may not work under other Unix variants due to different commands and outputs to get network IP assignment information.
Please see BUGS section how to provide details to add support to other operating systems. The DDNS providers have may have basic services, like single account and single host name, which may still be free of charge. Please check the current status form the pages of the providers. Separate files are used for remembering the last IP address to prevent updating the same IP address again. This is necessary in order to comply guidelines of the providers where multiple updates of the same IP address could cause your domain to be blocked.
You should not normally need to touch the files where the ip addresses are stored. If you know what you are doing and desperately need a forced update, delete the IP files and start program with apropriate arguments.
Without the information about previous IP address, program sends a new update request to the provider. For windows operating systems, you need to install Perl.
The Cygwin is a Unix layer running on top of windws and makes it possible to use cron jobs etc. Activestate includes a Windows installer, but the Perl programs must be run through Perl interpreter. The option --file-default uses OS's default directory structure. If you have a cable or DSL and your router can display a web page containing the world known IP address, you can instruct to "ping" it. Suppose that router occupies address If the default regexp does not find IP address from the page, supply your own match with option --urlping-regexp.
In case of doubt, add option --debug 1 and examine the responses. In serious doubt, contact the maintainer see option --Version and send the full debug output. Tip: if you run a local web server, provider www. Instead of supplying options at command line, the options can be stored to configuration files. For each DDNS account and different domains, a separate configuration file must be created. The configuration files are read with option --Config. The syntax of the configuration file includes comments that start with.
Anything after hash-sign is interpreted as comment. Keys are not case sensitive, but values are. Below, lines marked with [default] need only be set if the default value needs to be changed.
Lines marked with [noip] or [dyndns] apply to only those providers' DDNS accounts. Notice that some keys, like host , can take multple values seprated by colons. All host name values below are fictional. See the details of all of these options from the corresponding command line option descriptions. The normal configuration file for average user would only include few lines:. For new Operating System, provide all relevant commands, their options, examples and their output which answer to following questions.
The items in parentheses are examples from Linux:. To add support for routers that can be connected through HTTP protocol or with some other commands, please provide connection details and full HTTP response:. Turn on --debug to see exact details how the program runs and what HTTP requests are sent and received.
Please see documentation what additional options you need to supply with them. There is no default location where program would search for configuration files. See other dyndns. There is no syslog daemon in Cygwin. Please use option --debug 2 and save the result.
0コメント