Skip to content

Commit

Permalink
format readme newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-molloy committed Feb 1, 2018
1 parent f25db3d commit e91a8b6
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,22 @@ Resources for blocking ads using a local Unbound DNS server, as well as setting
## Scripts
We include the following scripts
- `gen-adblock-spoof.sh`
This uses host file data from https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
to create local-data that redirects ad-domains to `127.0.0.2`.

Note: it assumes the hostfile uses `0.0.0.0` as the ip .
*A custom redirection ip address can be specified in the first argument.*
This uses host file data from https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
to create local-data that redirects ad-domains to `127.0.0.2`.
Note: it assumes the hostfile uses `0.0.0.0` as the ip .
*A custom redirection ip address can be specified in the first argument.*

- `gen-adblock-refuse.sh`
This uses host file data from https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts to create local-data that responds to ad-domains with `NXDOMAIN`
This uses host file data from https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts to create local-data that responds to ad-domains with `NXDOMAIN`

- `hosts-to-unbound.sh`
Reads from `/etc/hosts` and creates both local-data (forward) and local-data-ptr (reverse) records for each entry.

Note: it assumes that records contain only two fields per line.
*An alternative file can be specified by the first argument*
Reads from `/etc/hosts` and creates both local-data (forward) and local-data-ptr (reverse) records for each entry.
Note: it assumes that records contain only two fields per line.
*An alternative file can be specified by the first argument*

- `hosts-to-unbound-noptr.sh`
Reads from `/etc/hosts` and creates only local-data (forward) records for each entry.

*An alternative file can be specified by the first argument.*
Reads from `/etc/hosts` and creates only local-data (forward) records for each entry.
*An alternative file can be specified by the first argument.*

## Unbound configuration Example

Expand Down

0 comments on commit e91a8b6

Please sign in to comment.