Project

terco

0.0
No commit activity in last 3 years
No release in over 3 years
Terco is a DNS server that always resolves to 127.0.0.1
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

terco

Obstinate DNS

Description

Terco is a DNS server that always resolves to 127.0.0.1.

It binds to port 53 by default, so probably you will have to sudo it. If you want to run it in a different port, pass the port number as the first argument.

One possible use is to configure your computer to resolve all requests for a given TLD to your own computer.

Usage

$ terco
Listening on port 53

Or, if you want to run it in the background:

$ terco &

Now you can tell your OS to use 127.0.0.1:53 as your DNS for a given TLD. Here's how to do it in OS X:

$ sudo mkdir /etc/resolver
$ sudo sh -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev'

Now all domains that use the .dev TLD will point to 127.0.0.1.

Installation

You can install it using rubygems.

$ gem install terco