mirror of
https://github.com/luzifer-docker/personal-dns.git
synced 2024-11-09 10:10:00 +00:00
Unify info entry, make blacklist-file diffable
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
1411cde2bd
commit
3f5e4a5a4a
2 changed files with 6 additions and 7 deletions
|
@ -22,10 +22,9 @@ This is quite easy:
|
||||||
```console
|
```console
|
||||||
$ docker build -t personal-dns .
|
$ docker build -t personal-dns .
|
||||||
$ docker run --rm -ti -p 53:53 -p 53:53/udp personal-dns
|
$ docker run --rm -ti -p 53:53 -p 53:53/udp personal-dns
|
||||||
$ dig +short @<ip of your container> TXT version.pdns.luzifer.io
|
$ dig +short @<ip of your container> TXT info.pdns.luzifer.io
|
||||||
"0ecb98c @ 2019-08-25 19:25:14 +00:00"
|
"Entries: 128676"
|
||||||
$ dig +short @<ip of your container> TXT count.pdns.luzifer.io
|
"Build: 689a5e8 @ 2020-02-15 13:24:32 +00:00"
|
||||||
"128561"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Connect your computer to the container
|
### Connect your computer to the container
|
||||||
|
|
|
@ -138,12 +138,12 @@ template: |
|
||||||
|
|
||||||
; Healthcheck record - don't remove
|
; Healthcheck record - don't remove
|
||||||
health.pdns.luzifer.io A 127.0.1.1
|
health.pdns.luzifer.io A 127.0.1.1
|
||||||
version.pdns.luzifer.io TXT "{{ env `GIT_VERSION` }} @ {{ now `2006-01-02 15:04:05 -07:00` }}"
|
info.pdns.luzifer.io TXT "Build: {{ env `GIT_VERSION` }} @ {{ now `2006-01-02 15:04:05 -07:00` }}"
|
||||||
count.pdns.luzifer.io TXT "{{ len .blacklist }}"
|
info.pdns.luzifer.io TXT "Entries: {{ len .blacklist }}"
|
||||||
|
|
||||||
; Blacklist entries
|
; Blacklist entries
|
||||||
{{ range .blacklist -}}
|
{{ range .blacklist -}}
|
||||||
{{ to_punycode .Domain }} CNAME . ; {{ .Comment }}
|
{{ to_punycode .Domain }} CNAME . ; {{ join (sort .Comments) ", " }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue