CSC Host file generator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zachary Seguin 97c1ea52be Rename os-block to os-block1 6 years ago
.gitignore Initial commit 7 years ago
README Update documentation 7 years ago
generate-hosts.py Output IPv6 addresses 7 years ago
hosts.in Rename os-block to os-block1 6 years ago
requirements.txt Initial commit 7 years ago

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