1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/dnsmasq/README.md
2023-11-22 17:00:33 +08:00

826 B

dnsmasq

Dnsmasq is a Domain Name System forwarder and Dynamic Host Configuration Protocol server for small computer networks, created as free software.

DNS Server for WORK

$ tree
├── data
│   ├── nsfw.txt
│   └── settings.conf
└── docker-compose.yml

$ docker-compose up -d

$ docker-compose kill -s SIGHUP
# settings.conf

no-hosts
no-resolv
filter-AAAA
cache-size=10000
server=8.8.8.8
servers-file=/etc/dnsmasq.d/nsfw.txt
curl -s https://thepornbest.com/ |
  htmlq -a href a |
    grep '://' |
      sort -u |
        xargs tldextract -j |
          jq -r 'select(.registered_domain!="").registered_domain' |
            sort -u |
              sed 's@.*@server=/&/@' > data/nsfw.txt