Skip to content

Instantly share code, notes, and snippets.

@therevoman
Created October 26, 2022 19:22
Show Gist options
  • Save therevoman/cc986a390bb08255d4119903f734f22d to your computer and use it in GitHub Desktop.
Save therevoman/cc986a390bb08255d4119903f734f22d to your computer and use it in GitHub Desktop.
--- a/src/etc/inc/dyndns.class 2022-10-21 22:11:05.836183000 +0000
+++ b/src/etc/inc/dyndns.class 2022-10-26 19:13:32.756072000 +0000
@@ -1209,11 +1209,11 @@
$post_data['hostname'] = $this->_dnsHost;
$post_data['myip'] = $this->_dnsIP;
$post_data['offline'] = 'no';
- $server = "https://domains.google.com/nic/update";
+ $server = "https://domains.google.com/nic/update?hostname=" . $this->_dnsHost;
$port = "";
- curl_setopt($ch, CURLOPT_URL, 'https://domains.google.com/nic/update');
+ curl_setopt($ch, CURLOPT_URL, 'https://domains.google.com/nic/update?hostname=' . $this->_dnsHost);
curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser . ':' . $this->_dnsPass);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
+ #curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
break;
case 'dnsmadeeasy':
$needsIP = TRUE;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment