Comments (6)
One way to work around this is using the web-skip parameter to skip part of the reply. I tried setting it to \n\n to skip the HTTP headers and it worked for me:
$ ddclient -query -web ipv4.icanhazip.com -web-skip='\n\n'
----- Test_possible_ip with 'get_ip' -----
...
use=web, web=ipv4.icanhazip.com address is 84.xxx.xxx.xxx
...
It might make sense to change the default skip value to that. I'd assume most IP querying sites will return the IP in the HTTP body, not the headers - and IPs in headers could always happen.
from ddclient.
Thank you for that @LenardHess Would I need to modify the /etc/ddclient.conf file to apply this solution and if so, what would I need to modify? I've added web-skip to the following line to no avail: use=web, web=https://ipv4.icanhazip.com, web-skip='\n\n'
I couldn't get this to work with the ddclient.conf file, so ended up swapping to use https://api.ipify.org/ instead;
use=web, web=api.ipify.org
from ddclient.
Would I need to modify the /etc/ddclient.conf file to apply this solution and if so, what would I need to modify?
I was able to add web-skip
to ddclient.conf by escaping the backslashes:
use=web
web=https://icanhazip.com
web-skip='\\n\\n'
from ddclient.
Thank you for that @LenardHess
Would I need to modify the /etc/ddclient.conf file to apply this solution and if so, what would I need to modify?
I've added web-skip to the following line to no avail:
use=web, web=https://ipv4.icanhazip.com, web-skip='\n\n'
from ddclient.
I just wanted to chime in and say that I also experienced this issue; it gave me a tiny heart attack because 1.0.1.1 seems to be a Chinese IP and I'd thought my security had been compromised.
from ddclient.
Related Issues (20)
- Rework the Mythic Beasts implementation HOT 3
- usev6=ifv6 wouldn't work with protocol=nsupdate @ v3.11.2 HOT 10
- Deprecate the Infomaniak protocol - it now uses DynDns2
- Enhancement: Add '--version' option HOT 1
- Porkbun sub domain identification seems flawed for multiple subdomain levels HOT 4
- possible feature request: multiple web=somebody providers either as confirmation or as fallback? HOT 1
- https://domains.google.com/checkip will stop working HOT 6
- Review and improve ddclient help output HOT 1
- Support NS1
- ddclient v3.11.2/opnsense plugin os-ddclient v1.21 - ddclient updates GoDaddy DNS entry every 300s even if dynamic IP has not changed HOT 5
- Add help to write a config to update both IPV4 and IPV6 adresses. HOT 4
- ipv6 unsupported for no-ip HOT 1
- Add support for name.com provider please
- Help: celeros.de as ddns service
- Cycle through web sources HOT 1
- Using password_env causes check_value to be called with $type uninitialized on each IP check HOT 1
- feature req: bunny dns support
- ddclient doesn't do anything HOT 4
- -debug -verbose not helping in problem resolution (GoDaddy) (raspberrypi4) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ddclient.