From 31b2ba1e0a7c419327cb97f589b508d78b9aecbf Mon Sep 17 00:00:00 2001 From: Travis Snoozy Date: Tue, 28 Mar 2023 03:36:46 -0700 Subject: [PATCH 1/3] Tell dnsmasq not to pass requests upstream (#223) * Tell dnsmasq not to pass requests upstream The behavior of dnsmasq changed in version 2.86 -- before then, if a record was set for a domain name with dnsmasq, and a record for a type not specified for that domain was requested, dnsmasq would indicate no data existed for that record type. After 2.86, record types that are not specified are instead passed upstream. The latter behavior causes problems for, e.g., the Steam client, which will disregard a correctly set A-record for lancache.steamcontent.com, if no AAAA is set with dnsmasq and dnsmasq passes the AAAA query upstream. The documentation for dnsmasq indicates the correct way to restore the old behavior is to use the local=/host/ syntax -- emit this syntax for each of our lancache-hosted DNS entries. * Update scripts/create-dnsmasq.sh Co-authored-by: Amir Zarrinkafsh --------- Co-authored-by: Amir Zarrinkafsh --- scripts/create-dnsmasq.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/create-dnsmasq.sh b/scripts/create-dnsmasq.sh index 756cf2a..46483ac 100755 --- a/scripts/create-dnsmasq.sh +++ b/scripts/create-dnsmasq.sh @@ -52,10 +52,12 @@ while read -r entry; do fi parsed=$(echo ${fileentry} | sed -e "s/^\*\.//") for i in ${cacheip}; do - if grep -qx "address=/${parsed}/${i}" "${outputfile}"; then - continue + if ! grep -qx "address=/${parsed}/${i}" "${outputfile}"; then + echo "address=/${parsed}/${i}" >> "${outputfile}" + fi + if ! grep -qx "local=/${parsed}/" "${outputfile}"; then + echo "local=/${parsed}/" >> "${outputfile}" fi - echo "address=/${parsed}/${i}" >> "${outputfile}" done done <<< $(cat ${basedir}/${filename} | sort); done <<< $(jq -r ".cache_domains[${entry}].domain_files[$fileid]" ${path}) From d7f4061d17724e075d72de998017ce5e306934e0 Mon Sep 17 00:00:00 2001 From: Proto Date: Sun, 5 May 2024 08:16:53 +0100 Subject: [PATCH 2/3] Update epicgames.txt (#241) Added domains based on uklans issue 240 --- epicgames.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/epicgames.txt b/epicgames.txt index 006761b..01b38ab 100644 --- a/epicgames.txt +++ b/epicgames.txt @@ -1,4 +1,5 @@ cdn1.epicgames.com +cdn2.epicgames.com cdn.unrealengine.com cdn1.unrealengine.com cdn2.unrealengine.com @@ -9,3 +10,4 @@ download3.epicgames.com download4.epicgames.com epicgames-download1.akamaized.net fastly-download.epicgames.com +cloudflare.epicgames.cdn From 1f5897f4dacf3dab5f4d6fca2fe497d3327eaea9 Mon Sep 17 00:00:00 2001 From: Tim Pilius Date: Mon, 6 May 2024 10:09:41 -0400 Subject: [PATCH 3/3] Update epicgames.txt (#243) --- epicgames.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epicgames.txt b/epicgames.txt index 01b38ab..fbd1ca2 100644 --- a/epicgames.txt +++ b/epicgames.txt @@ -10,4 +10,4 @@ download3.epicgames.com download4.epicgames.com epicgames-download1.akamaized.net fastly-download.epicgames.com -cloudflare.epicgames.cdn +cloudflare.epicgamescdn.com