Giter Club home page Giter Club logo

opennic-up's People

Contributors

anastygnome avatar kewlfft avatar oxr463 avatar poikilotherm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

opennic-up's Issues

resolvconf is a read-only variable

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.

ipv6

Hi kewl,
Is there a way to automativally change the ipv6 dns servers?
Regards

Not enough responsive OpenNIC servers available

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.

  • Is it an expected error for Chinese users?
  • Or what can I do to fix it given that I am in China and only have SOCKS proxy?

IPv6

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?

README needs more info

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/ .

  1. Apparently the script needs to be run as root?

  2. 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".

Feature request: Blacklist

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.

Dead IPs in script

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.