-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CoreDNS converter, validator and sanitizer.
- Loading branch information
Lune
committed
Dec 18, 2021
1 parent
2e25d8c
commit 58956d8
Showing
22 changed files
with
317,178 additions
and
4,832 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
if [ "$1" != "" ] ; then | ||
rm "$1.zone" | ||
cat "$1" | while IFS= read -r ruleText ; do | ||
if [[ "$ruleText" == "domain:"* ]] ; then | ||
echo "${ruleText/domain:/template IN ANY } {" >> "$1.zone" | ||
echo -e "\trcode NXDOMAIN" >> "$1.zone" | ||
echo -e "\tauthority \"{{ .Zone }} 60 IN SOA ns.localhost ns2.localhost (1 60 60 60 60)\"" >> "$1.zone" | ||
echo -e "\tfallthrough" >> "$1.zone" | ||
echo -e "}" >> "$1.zone" | ||
else | ||
echo "Line ${ruleText} skipped." | ||
fi | ||
done | ||
fi | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,4 @@ | ||
# Title: 1Hosts (Pro) | ||
# Expires: 12 hours | ||
# ............. | ||
# |URL: https://github.com/badmojr/1Hosts | ||
# |Count: 122,708 rules! | ||
# |Size: 2.40 MB | ||
# |Updated: Sat, 18 Dec 2021 13:32:22 +0000 | ||
# | | ||
# |Credits & ©: https://o0.pages.dev/-data/lists/assets.txt | ||
# |Licence: MPLv2, | ||
# | https://www.mozilla.org/en-US/MPL/2.0/ | ||
# / | ||
# ( Please report any issues related to this file. | ||
# \...................................... | ||
# | GH: github.com/badmojr/1Hosts/issues | ||
# | XDA: go.energized.pro/badmojr | ||
# | e-mail: [email protected] | ||
# | Telegram: t.me/badmojr | ||
# \____________________ | ||
|
||
# Generated and sanitized by the Validater. | ||
domain:marketing.globalpointofcare.abbott | ||
domain:metrics.abbott | ||
domain:smetrics.abbott | ||
|
Oops, something went wrong.