CSC Host file generator
Go to file
Zachary Seguin 6333255295 Add new hosts 2017-01-04 21:12:45 -05:00
.gitignore Initial commit 2015-11-21 13:19:03 -05:00
README Update documentation 2015-11-21 13:21:42 -05:00
generate-hosts.py Output IPv6 addresses 2016-02-29 12:13:06 -05:00
hosts.in Add new hosts 2017-01-04 21:12:45 -05:00
requirements.txt Initial commit 2015-11-21 13:19:03 -05:00

README

INSTALL
-------

$ virtualenv .venv
$ . .venv/bin/activate
$ pip install -r requirements.txt

GENERATE
--------

$ . .venv/bin/activate
$ ./generate_hosts.py < hosts.in > hosts


FORMAT OF HOSTS
---------------

There are 4 types of lines:

- Whitespace
- Lines starting with # are a comment
- Lines starting with a ! are copied word-for-word (minues the bang)
- Other lines are resolved through DNS

EXAMPLE
-------

* hosts.in

# HOSTS
!127.0.0.1 localhost
hostname.csclub.uwaterloo.ca

* hosts
127.0.0.1 localhost
129.97.134.111 hostname.csclub.uwaterloo.ca hostname