1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/dnsmasq
2023-11-20 23:02:34 +08:00
..
data update dnsmasq (FIX #202) 2022-08-19 17:37:46 +08:00
dns update dns 2023-04-08 11:34:11 +08:00
pxe add dhcp proxy option 2016-08-07 08:51:52 +08:00
docker-compose.yml update dnsmasq (FIX #202) 2022-08-19 17:37:46 +08:00
Dockerfile upgrade dnsmasq to v2.89 (FIX #206) 2023-05-19 09:34:10 +08:00
README.md update dnsmasq 2023-11-20 23:02:34 +08:00

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
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