Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ggarnier/local-domains

Maps your local domain names to your local ip address
https://github.com/ggarnier/local-domains

Last synced: about 1 month ago
JSON representation

Maps your local domain names to your local ip address

Awesome Lists containing this project

README

        

# local-domains

Maps a list of domains to an ip address

## Installation

Add this line to your application's Gemfile:

gem install local-domains

And then execute:

bundle install

Or install it yourself as:

gem install local-domains

## Usage

Create a .local-domains file in your home directory, with a list of
domains, one on each line (see .local-domains.example)

Run it with *sudo*:

sudo local-domains

Or, if you use [RVM](http://rvm.io), use *rvmsudo*:

rvmsudo local-domains

To run on a specific Ruby version and gemset:

rvm ruby-2.0.0-p481@gemset-name do rvmsudo local-domains

If the ip address is omitted, domains will be mapped to the first local ip
address

## TODO

* tests!
* better error checking
* verbose option
* help message