Commit Graph

7 Commits

Author SHA1 Message Date
494a89f181 Generate lancache.conf based on specified cache entries 2020-06-25 09:15:42 +10:00
85f05fcc77 Refactor Dnsmasq script to support multiple cache ips
This change is a continuation of #54, it modifies the output of the dnsmasq script to host file format which allows round robin DNS entries.

There is a caveat with round robin DNS entries in dnsmasq, they only supports a single address for wildcard domains, for example: *.cdn.blizzard.com.

If previously you had the generated .conf files dumped into a directory where dnsmasq automatically loaded on start-up, you will need to create config that loads all the host files, for example:

**lancache.conf**
```conf
addn-hosts=/etc/dnsmasq/conf.d/blizzard.hosts
addn-hosts=/etc/dnsmasq/conf.d/steam.hosts
addn-hosts=/etc/dnsmasq/conf.d/uplay.hosts
```

Closes #107.
2020-06-06 20:32:24 +10:00
6557fda4d6 create-dnsmasq: Run through shellcheck
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-11 12:56:40 -07:00
66194b3db5 Support passing multiple IP addresses
Signed-off-by: Christophe Vanlancker <carroarmato0@inuits.eu>
2019-06-15 23:27:16 +02:00
88a2026b5c Add executable bit for create-dnsmasq.sh 2019-01-30 10:47:31 +11:00
1525b5e243 Add Dnsmasq variant of Unbound generation script 2019-01-29 15:05:28 +11:00
b365bb205c Add unbound generation script (#16) 2018-06-23 18:25:18 +01:00