Comments (7)
I think this is coming from the address provider. Are you using the default address provider (Web
, which uses https://icanhazip.com/
by default)? If so, could you check that curl https://ipv4.icanhazip.com/
returns an IPv4 address? Make sure you run that command on the same machine you are running dnsupdate
on.
from dnsupdate.
Yes I have almost everything on default, my config looks like this:
dns_services:
- type: NSUpdate
args:
hostname: some_host_name
secret_key: the_key
- type: FreeDNS
args:
ipv4_key: the_v4_key
ipv6_key: the_v6_key
Tonight, during the DSL reconnect, everything suddenly worked again. The update worked without errors.
I entered the command curl https://ipv4.icanhazip.com/
before and got an IPv4 address.
Yesterday, of course, I don't know, but there I had entered the command ip a
and saw that the interface had both an IPv4 and an IPv6 address. I have dual stack and so an official IPv4 address as well as IPv6 address.
from dnsupdate.
dnsupdate
should work fine with dual stack; that's actually part of the reason I wrote it. ipv4.icanhazip.com
should only resolve to an IPv4 address, and therefore show your IPv4 address even if you have an IPv6 address as well. Off the top of my head, I can't think of a reason for that error other than ipv4.icanhazip.com
somehow returning a IPv6 address.
If it happens again, run curl https://ipv4.icanhazip.com/
and drill ipv4.icanhazip.com
(or dig
if that is available on your system instead) to try to see what is happening.
from dnsupdate.
Yes, very well possible that it was exactly like that.
Because the error occurred only 5 days and disappeared as suddenly as it had come.
Thanks for the reply :-)
from dnsupdate.
The error just appears again.
I used curl and noticed that when I use curl -6 https://ipv4.icanhazip.com/
I get an IPv6 address and
when I use curl -4 https://ipv6.icanhazip.com/
I get an IPv4 address.
Is it possible to force the IP version in Python when doing these queries?
from dnsupdate.
There is an open issue about this: major/icanhaz#31. I'll look into workarounds, but unfortunately there doesn't seem to be a non-hacky way to force requests
to use a particular protocol.
from dnsupdate.
This should be fixed in master.
from dnsupdate.
Related Issues (3)
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 dnsupdate.