Commit e4818eb5 by vindarel

Merge branch 'master' of https://github.com/vindarel/open-nic

Conflicts:
	opennic-set.py
parents d99d660b 94ee59cd
......@@ -3,6 +3,10 @@ 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 ?
=================
......@@ -59,7 +63,17 @@ More precisely, the script does the following:
- 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 !
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
=========
......
......@@ -133,9 +133,8 @@ def editConf(dns_list, conf):
w = " # openNIC\n".join("nameserver " + dns for dns in dns_list)
with open(conf, 'a+') as f:
print "we add the lines:\n" + w + "\nto the file " + conf
print "We saved the original configuration file, so if you notice any connection pb, you can still put it back"
import ipdb; ipdb.set_trace()
print "we add the lines:\n" + w + "\nto " + conf
print "We saved the original configuration file, so if you notice any connection pb, you can still put it back with the --undo option."
f.write(w)
def main(*args):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment