mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-02 03:37:40 +02:00
update dnsmasq
This commit is contained in:
parent
cc7f21204f
commit
b700939e60
@ -4,4 +4,39 @@ dnsmasq
|
|||||||
[Dnsmasq][1] is a Domain Name System forwarder and Dynamic Host Configuration
|
[Dnsmasq][1] is a Domain Name System forwarder and Dynamic Host Configuration
|
||||||
Protocol server for small computer networks, created as free software.
|
Protocol server for small computer networks, created as free software.
|
||||||
|
|
||||||
|
## DNS Server for WORK
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ tree
|
||||||
|
├── data
|
||||||
|
│ ├── nsfw.txt
|
||||||
|
│ └── settings.conf
|
||||||
|
└── docker-compose.yml
|
||||||
|
|
||||||
|
$ docker-compose up -d
|
||||||
|
|
||||||
|
$ docker-compose kill -s SIGHUP
|
||||||
|
```
|
||||||
|
|
||||||
|
```ini
|
||||||
|
# settings.conf
|
||||||
|
|
||||||
|
no-hosts
|
||||||
|
no-resolv
|
||||||
|
cache-size=10000
|
||||||
|
server=8.8.8.8
|
||||||
|
servers-file=/etc/dnsmasq.d/nsfw.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
[1]: http://www.thekelleys.org.uk/dnsmasq/doc.html
|
[1]: http://www.thekelleys.org.uk/dnsmasq/doc.html
|
||||||
|
Loading…
Reference in New Issue
Block a user