Open main menu

Linux and Unix Users Group at Virginia Teck Wiki β

OpenNIC

Revision as of 20:31, 5 January 2011 by imported>Mutantmonkey (Simple configuration)

OpenNIC is an alternate DNS root.

Contents

Simple configuration

The easiest way to set up OpenNIC is to edit resolv.conf and add some of OpenNIC's DNS servers to the list. You should add at least two in case one of them goes down. I personally use 69.164.208.50, 69.164.211.225, and 64.0.55.201.

Advanced configuration

If you run your own DNS server, you may want to instead use OpenNIC's DNS servers only for OpenNIC TLDs and use a DNS server that is closer to you for other domains.

Dnsmasq

Add these lines to your Dnsmasq configuration file:

server=/bbs/69.164.208.50
server=/dyn/69.164.208.50
server=/fur/69.164.208.50
server=/free/69.164.208.50
server=/geek/69.164.208.50
server=/glue/69.164.208.50
server=/gopher/69.164.208.50
server=/indy/69.164.208.50
server=/ing/69.164.208.50
server=/micro/69.164.208.50
server=/null/69.164.208.50
server=/oss/69.164.208.50
server=/p2p/69.164.208.50
server=/parody/69.164.208.500

You can replace 69.164.208.50 with any of the other OpenNIC DNS servers if you so choose.

Unbound

To configure OpenNIC to work with the Unbound recursive DNS server, simply add these to your unbound.conf:

forward-zone:
	name: "bbs."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "dyn."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "fur."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "free."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "geek."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "glue."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "gopher."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "indy."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "ing."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "micro."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "null."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "oss."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "p2p."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

forward-zone:
	name: "parody."
	forward-addr: 69.164.208.50
	forward-addr: 69.164.211.225
	forward-addr: 64.0.55.201

You can replace 69.164.208.50, 69.164.211.225, and 64.0.55.201 with some of the other DNS servers listed on the OpenNIC site if you wish.

External links