forked from RMerl/asuswrt-merlin.ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ddns: implement support for DYNV6.com
For dynv6.com to work correctly for setting DNS A record we need to utilize the DynDNS API that is supported. inadyn can handle this via the 'custom' config (instead of dynv6 provider config). The config for inadyn looks like: custom dynv6 { ddns-server = dynv6.com ddns-path = "/nic/update?hostname=%h&myip=%i" ... } Update rc/services.c to handle this custom config, which is similar to what is needed for WWW.NAMECHEAP.COM. Signed-off-by: Kumar Gala <[email protected]>
- Loading branch information
Showing
3 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4148,6 +4148,10 @@ start_ddns(char *caller) | |
} | ||
else if (strcmp(server, "WWW.NO-IP.COM") == 0) | ||
service = "[email protected]"; | ||
else if (strcmp(server, "WWW.DYNV6.COM") == 0) { | ||
service = "dynv6"; | ||
asus_ddns = 11; | ||
} | ||
else if (strcmp(server, "WWW.NAMECHEAP.COM")==0) { | ||
service = "namecheap"; | ||
asus_ddns = 10; | ||
|
@@ -4300,6 +4304,10 @@ start_ddns(char *caller) | |
fprintf(fp, "ddns-server = dynamicdns.park-your-domain.com\n"); | ||
// We store the domain.tld in the username nvram | ||
fprintf(fp, "ddns-path = \"/update?domain=%%u&password=%%p&host=%%h\"\n"); | ||
} else if (asus_ddns == 11) { | ||
fprintf(fp, "custom dynv6 {\n"); | ||
fprintf(fp, "ddns-server = dynv6.com\n"); | ||
fprintf(fp, "ddns-path = \"/nic/update?hostname=%%h&myip=%%i\"\n"); | ||
} else { | ||
fprintf(fp, "provider %s {\n", service); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters