https://github.com/vindarel/open-nic
Use open-nic DNS right now
https://github.com/vindarel/open-nic
opennic-dns
Last synced: about 1 year ago
JSON representation
Use open-nic DNS right now
- Host: GitHub
- URL: https://github.com/vindarel/open-nic
- Owner: vindarel
- Created: 2013-09-29T15:54:57.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-02T23:15:07.000Z (over 12 years ago)
- Last Synced: 2025-03-26T09:44:44.105Z (about 1 year ago)
- Topics: opennic-dns
- Language: Python
- Size: 137 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
open-nic
========
Use OpenNIC DNS right now
Current status as of 1st nov 13:
- works fine on Debian
- does not work on Mint/Ubuntu (runs as intented but for some reason it has no effect -see below)
What is OpenNIC and why should I use it ?
=================
The OpenNIC project is an alternative DNS provider. Users of the
OpenNIC DNS servers are able to resolve all existing ICANN top-level
domains (TLD) as well as their own.
You should use it if you're concerned about censorship, if you don't
want your internet provider to know every site you visit, if you want
to support independant projects, and maybe if you want to access
.geek, .indy, .free, .ing… websites, that are only served by OpenNIC.
http://www.opennicproject.org/
https://en.wikipedia.org/wiki/OpenNIC
How to use this script
======================
The scripts depends on the **resolvconf** package (by default in
Mint/Ubuntu) and the **BeautifulSoup4** python library (by default ?).
To install the dependencies:
sudo apt-get install resolvconf
sudo apt-get install python-pip && sudo pip install BeautifulSoup4
Download the script and call:
sudo python opennic-set.py
Or run:
wget https://raw.github.com/vindarel/open-nic/master/opennic-set.py && sudo python opennic-set.py
Now you will keep using the same DNS providers for all the usual
websites, but you will also be able to access OpenNIC's TLDs. If you
would like to always use OpenNIC's servers, then you have to copy
`/etc/resolvconf/resolv.conf.d/tail` to `…/head`.
You should now be able to access this website:
http://wiki.opennic.glue/SponsoredTLDs). You can also test with:
python opennic-set.py --test
What the script does
===========
More precisely, the script does the following:
- it retrieves which are the nearest OpenNIC DNS servers from your
location thanks to the project's homepage (if their site isn't
reachable it takes 3 servers by default)
- it adds them to the configuration file used by resolvconf (`/etc/resolvconf/resolv.conf.d/tail`) (a backup is made)
- it runs `resolvconf -u` to update the configuration (you can see changes in `/etc/resolv.conf`)
- it tests wether we can access opennic's TLDs.
Every remark welcomed.
Known issues
============
It runs as expected in Mint/Ubunt but has no effect. The bug is reproductible:
- add the line
nameserver 185.19.105.6 # openNic
at the beginning of `/etc/resolvconf/resolv.conf.d/head`
- execute sudo resolvconf -u
- you *should* be able to access the url given above, but you can't. With Debian it's ok.
More info
=========
- on network conf: http://www.linux-france.org/prj/edu/archinet/systeme/ch03s02.html