Compare commits
2 Commits
722f843fe9
...
5566774c55
Author | SHA1 | Date | |
---|---|---|---|
5566774c55 | |||
21de98c3e5 |
@ -82,3 +82,8 @@ We can find the zone files in `/etc/bind/zones`, although note that your zone m
|
|||||||
```bash
|
```bash
|
||||||
named-compilezone -f raw -F text -o - blacka.com /etc/bind/zones/blacka.com.signed
|
named-compilezone -f raw -F text -o - blacka.com /etc/bind/zones/blacka.com.signed
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If using the script that runs the version in our container, note that you may have to use the paths that work *inside the container*. The current script mounts your current working directory, so you can use `run_named_compilezone.sh ./some.zone`, but not `run_named_compilezone.sh /etc/named/zones/blacka.com`.
|
||||||
|
|
||||||
|
That said, we are probably better off just using the version that comes with our OS, and not using the container.
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ options {
|
|||||||
lock-file "/var/cache/bind/named.lock";
|
lock-file "/var/cache/bind/named.lock";
|
||||||
|
|
||||||
listen-on { any; };
|
listen-on { any; };
|
||||||
listen-on-v6 { ::1; };
|
listen-on-v6 { any; };
|
||||||
allow-recursion { 127.0.0.1; ::1; };
|
allow-recursion { 127.0.0.1; ::1; };
|
||||||
|
|
||||||
dnssec-validation yes;
|
dnssec-validation yes;
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
[ -x "$(which docker 2>/dev/null)" ] && DOCKER=docker
|
[ -x "$(which docker 2>/dev/null)" ] && DOCKER=docker
|
||||||
[ -x "$(which podman 2>/dev/null)" ] && DOCKER=podman
|
[ -x "$(which podman 2>/dev/null)" ] && DOCKER=podman
|
||||||
$DOCKER exec bind9 named-compilezone "$@"
|
|
||||||
|
$DOCKER run -ti --rm --name=bind9-tools --network=host \
|
||||||
|
-v "$(pwd):$(pwd)" -w "$(pwd)" \
|
||||||
|
docker.io/internetsystemsconsortium/bind9:9.18 named-compilezone "$@"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user