Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

Commit 0b0a99c

Browse files
committed
check DNS with getent
1 parent bf78d0e commit 0b0a99c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ services:
4242
- ${BIND_DNS_NAMED_CONFIG:-./internal-dns/named.conf}:/etc/bind/named.conf:ro
4343
- ./internal-dns/zones/:/etc/bind/zones/:ro
4444
healthcheck:
45-
test: "true"
45+
test: "getent hosts dns.mail-server.intranet | grep -F '10.222.222.1 dns.mail-server.intranet dns' -c 1>/dev/null"
4646
timeout: 3s
4747
retries: 10
4848
start_period: 2s
4949

50-
5150
mailserver:
5251
logging:
5352
driver: syslog

0 commit comments

Comments
 (0)