Skip to content

Commit

Permalink
CoreDNS converter, validator and sanitizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lune committed Dec 18, 2021
1 parent 2e25d8c commit 58956d8
Show file tree
Hide file tree
Showing 22 changed files with 317,178 additions and 4,832 deletions.
33,960 changes: 33,960 additions & 0 deletions 1hosts-pro

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This project is pulled from v2fly/domain-list-community, with only its data chan

Make your V2Ray instance a powerful adblocker, either on servers or on clients.

Build status: [![Build dlc.dat](https://github.com/ltgcgo/domain-db/actions/workflows/build.yml/badge.svg)](https://github.com/ltgcgo/domain-db/releases/latest/download/dlc.dat) (Click to download!)

## Download links

- **dlc.dat**[https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat](https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat)
Expand Down
16 changes: 16 additions & 0 deletions coredns.sh
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
21 changes: 1 addition & 20 deletions data/1hosts-pro
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
Expand Down
Loading

0 comments on commit 58956d8

Please sign in to comment.