Commit Graph
22 Commits
Author SHA1 Message Date
Amir Zarrinkafsh 0fb55395bb fix: explicitly specify ipv4 addresses in adguard script (#265)
* fix: explicitly specify ipv4 addresses

This change fixes the AdGuard Home generation script by disabling the return of ipv6 addresses. This would have been causing issues for users who are running dual stack with the addresses that accept both ipv4 and ipv6 traffic.

* fix: explicitly block returning on ipv6 queries
2025-07-18 09:39:48 +01:00
Amir Zarrinkafsh 67594ce10c Update scripts and add combined_output flag (#251)
* Update scripts and add combined_output flag

* Add editorconfig to enforcing formatting requirements

* Adjust generic references to monolithic
2024-10-25 09:13:50 +01:00
Amir Zarrinkafsh 4155d3db26 Clean additional CDN hosts
This change addresses some general housecleaning for CDN hosts:

* Removing all hosts that do not resolve
* Only including the Steam CDN trigger address
2022-07-28 13:13:11 +10:00
Amir Zarrinkafsh 03a391f648 Clean CDN hosts
This change addresses some general housecleaning for CDN hosts:

* Removing all hosts that do not resolve
* Removing any rogue whitespaces in CDN `.txt` files
* Removing hirez CDN (as the only host could not be resolved)
2022-07-22 10:20:05 +10:00
Amir Zarrinkafsh 87f92467f7 Remove additional newline 2021-10-14 09:05:05 +11:00
Amir Zarrinkafsh 9ea56243de Simplify Dnsmasq script
[Dnsmasq version >= 2.86](https://thekelleys.org.uk/dnsmasq/CHANGELOG) supports passing multiple IP addresses via the `address=` syntax now.

>Major rewrite of the DNS server and domain handling code. The change makes multiple addresses associated with a domain work address=/example.com/1.2.3.4 address=/example.com/5.6.7.8.

This allows us to simplify the script and the `.hosts` file workaround is no longer necessary.
2021-09-12 10:15:11 +10:00
Amir Zarrinkafsh 1cbdc8dbf4 Remove duplicates in Unbound generation script
#149 introduced a minor regression which included duplicates for the Unbound generation script.
While this does not have a technical impact it may cause confusion for users, this PR will ignore duplicate entries.
2021-06-15 13:14:49 +10:00
Amir Zarrinkafsh 8fbf55bdbe Handle newlines in generation scripts
The generation scripts will now properly handle/ignore empty lines as this previously would cause issues with the generated Unbound output.
2021-01-28 10:16:44 +11:00
Amir Zarrinkafsh 14ccfecb1f Include advice for unbound script 2021-01-15 21:43:21 +11:00
Amir Zarrinkafsh 634b7dfff8 Provide advice to users upon completion of script 2021-01-15 20:09:32 +11:00
Amir Zarrinkafsh c05d2cfec4 Output *.hosts file in output/dnsmasq/hosts/ directory 2021-01-15 19:01:02 +11:00
Amir Zarrinkafsh 654d19ce84 Change Dnsmasq *.hosts reference to /etc/dnsmasq/ 2021-01-15 10:20:51 +11:00
Amir Zarrinkafsh 3e649ab5d7 Add README.md for DNS generation scripts
Also fix up some typos in the main README.md.
2021-01-15 08:48:31 +11:00
Amir Zarrinkafsh 74cab757af Fix generation scripts
This change leverages #130 and also applies this to the dnsmasq script.

As it currently stands both generation scripts (unbound and dnsmasq) have a condition where a domain will be skipped if it fuzzy matches a domain already parsed that is higher in the CDN domain list.

For example the latter of the below two samples would never be added.
https://github.com/uklans/cache-domains/blob/8793ce15315cac1e594f7602158c2e82f510bc91/steam.txt#L20 https://github.com/uklans/cache-domains/blob/8793ce15315cac1e594f7602158c2e82f510bc91/steam.txt#L29

I've also taken the liberty to sort the output of said scripts for readability and troubleshooting purposes.

Closes #130.
2020-10-29 23:05:45 +11:00
Amir Zarrinkafsh 300dcb377e Add Steam CDN (#144) 2020-10-22 10:01:38 +01:00
Amir Zarrinkafsh b4431bcfaa Fix wildcard domains in dnsmasq script (#143)
While #140 added support for round-robin DNS the script needs a slight modification to ensure that wildcard domains are still added with the old method due to dnsmasq limitations.
This change will include all wildcard domains in the generated `lancache.conf` along with all the `addn-hosts=` entries.
2020-10-22 09:56:07 +01:00
Amir Zarrinkafsh 07ed91fccc Add Epic Games hostnames 2020-08-20 11:02:57 +10:00
Amir Zarrinkafsh 494a89f181 Generate lancache.conf based on specified cache entries 2020-06-25 09:15:42 +10:00
Amir Zarrinkafsh 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
Amir Zarrinkafsh 04a6bb36e4 Additional Windows Server 2019 WSUS domains 2019-07-14 00:36:39 +10:00
Amir Zarrinkafsh 88a2026b5c Add executable bit for create-dnsmasq.sh 2019-01-30 10:47:31 +11:00
Amir Zarrinkafsh 1525b5e243 Add Dnsmasq variant of Unbound generation script 2019-01-29 15:05:28 +11:00