kewlfft / opennic-up Goto Github PK
View Code? Open in Web Editor NEWOpenNIC auto DNS updater
License: GNU Lesser General Public License v3.0
OpenNIC auto DNS updater
License: GNU Lesser General Public License v3.0
On line 3 you set:
readonly resolvconf="/etc/resolv.conf"
And then on line 65 you do:
f) resolvconf=$OPTARG
That doesn't work and the script warns me that it doesn't work and it writes to /etc/resolv.conf
instead of /opt/resolv.conf
, which I specified.
Hi kewl,
Is there a way to automativally change the ipv6 dns servers?
Regards
Each time I run
opennic-up
I will see
Checking network is up
Using 88.198.116.156 as API host
https://api.opennicproject.org/geoip/?list&ipv=4&res=200&adm=0&bl&wl
Pinging 49 hosts to determine the top ones...
Resulting in 1 responsive hosts
Not enough responsive OpenNIC servers available
in my terminal.
Hi certainly, then I am not using ipv6 servers myself and haven't implemented it
Originally posted by @kewlfft in #4 (comment)
What would you need to implement it?
First off, thank you very much for this utility. It works great and is very handy.
The README could use a bit more information though.
Only upon executing the script was I informed that I also needed 'fping' and 'drill'. (I finally found drill in the 'ldns' package.)
After installing fping, the script still said it couldn't find it. It was not in my user path, because it was installed to /usr/sbin/ .
Apparently the script needs to be run as root?
The README informs where opennic-up and opennic-up.conf can reside, but does not say where opennic-up.timer and opennic-up.service should be placed.
And just FYI, there is a typo: "For a full integration of the automated update process with you system and with systemd..." Should be, "your system".
The API loves giving me slow servers at the top of the list. It would be a very nice feature if you could blacklist certain servers that are known to be slow.
Two lines in the script have hard coded IPs and neither of the IPs resolve at this time
anycast="185.121.177.177"
# wait for network up 20s*4
log 'Checking network is up'
fping -q -t 20000 "$anycast"
# find out what the IP address of api.opennicproject.org is, fallback static IP address configured
apihost=api.opennic.org
apiip=$(dnslookup "$anycast" "$apihost")
echo $apiip
apiip=${apiip:-"161.97.219.82"}
log "Using $apiip as API host"
The IP 185.121.177.177 is down and 161.97.219.82 is abandoned to a VM host provider.
Took me a while to figure out, maybe it could be helpful for future users to make it known
https://manpages.ubuntu.com/manpages/bionic/man1/drill.1.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.