Skip to content

Commit 70f2420

Browse files
committed
Support PowerDNS 4.3
1 parent b68f021 commit 70f2420

File tree

3 files changed

+51
-4
lines changed

3 files changed

+51
-4
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Johannes Eiglsperger
3+
Copyright (c) 2020 Johannes Eiglsperger
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ See [examples](https://github.com/joeig/go-powerdns/tree/master/examples).
7474

7575
- PowerDNS 4.x ("API v1")
7676
- `--webserver=yes --api=yes --api-key=apipw --api-readonly=no`
77-
- Note that API v1 is actively maintained. There are major differences between 3.x, 4.0 and 4.1 and this client works only with 4.1 and 4.2.
77+
- Note that API v1 is actively maintained. There are major differences between 3.x, 4.0 and 4.1 and this client works only with 4.1, 4.2 and 4.3.
7878
- Tested with Go version 1.12/1.13/1.14, according to [Go's version support policy](https://golang.org/doc/devel/release.html#policy) (should work with other minor releases as well)
7979

8080
### Install from source
@@ -94,8 +94,8 @@ This API client has not been completed yet, so feel free to contribute. The [Ope
9494
Start a PowerDNS authoritative server including a generic MySQL backend, DNSSEC support and some fixtures using Docker compose:
9595

9696
```bash
97-
docker-compose -f docker-compose-v4.2.yml up
98-
docker-compose -f docker-compose-v4.2.yml exec powerdns sh init_docker_fixtures.sh
97+
docker-compose -f docker-compose-v4.3.yml up
98+
docker-compose -f docker-compose-v4.3.yml exec powerdns sh init_docker_fixtures.sh
9999
```
100100

101101
It's also possible to target mocks against this server:

docker-compose-v4.3.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
version: '3.3'
3+
4+
services:
5+
mariadb:
6+
image: mariadb:10.3
7+
restart: always
8+
environment:
9+
MYSQL_ROOT_PASSWORD: root
10+
MYSQL_DATABASE: powerdns
11+
MYSQL_USER: powerdns
12+
MYSQL_PASSWORD: powerdns
13+
14+
powerdns:
15+
depends_on:
16+
- mariadb
17+
image: psitrax/powerdns:v4.3
18+
ports:
19+
- "8053:53"
20+
- "8053:53/udp"
21+
- "8080:80"
22+
links:
23+
- mariadb
24+
volumes:
25+
- ./scripts/init_docker_fixtures.sh:/init_docker_fixtures.sh:ro
26+
restart: always
27+
environment:
28+
MYSQL_HOST: mariadb
29+
MYSQL_DB: powerdns
30+
MYSQL_USER: powerdns
31+
MYSQL_PASS: powerdns
32+
command: [
33+
"--webserver=yes",
34+
"--webserver-address=0.0.0.0",
35+
"--webserver-port=80",
36+
"--webserver-password=webserverpw",
37+
"--webserver-allow-from=0.0.0.0/0",
38+
"--api=yes",
39+
"--api-key=apipw",
40+
"--disable-syslog=yes",
41+
"--loglevel=9",
42+
"--log-dns-queries=yes",
43+
"--log-dns-details=yes",
44+
"--query-logging=yes",
45+
"--default-soa-edit=INCEPTION-INCREMENT",
46+
"--gmysql-dnssec=yes"
47+
]

0 commit comments

Comments
 (0)