Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ggarnier/local-domains
- Owner: ggarnier
- Created: 2013-10-29T13:45:16.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-28T13:38:58.000Z (over 10 years ago)
- Last Synced: 2024-03-15T06:04:17.151Z (8 months ago)
- Language: Ruby
- Size: 141 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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