Skip to content

renan/powerdns-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerDNS-Docker

PowerDNS running on Docker with MySQL backend.

Build and start services

docker-compose stop
docker-compose rm
docker-compose build
docker-compose up

Create the first domain

curl -X POST --data '{"name":"example.local", "kind": "Native", "masters": [], "nameservers": ["ns1.example.local", "ns2.example.local"]}' -v -H 'X-API-Key: changeme' $DOCKER_IP/servers/localhost/zones
curl -X PATCH --data '{"rrsets": [ {"name": "example.local", "type": "A", "changetype": "REPLACE", "records": [ {"content": "127.0.0.1", "disabled": false, "name": "example.local", "ttl": 86400, "type": "A", "priority": 0 } ] } ] }' -H 'X-API-Key: changeme' $DOCKER_IP/servers/localhost/zones/example.local

Dig the domain

dig example.local @$DOCKER_IP

Docker IP

When using docker-machine, this will come in handy:

export DOCKER_IP=$(docker-machine ip)

About

PowerDNS running on Docker with MySQL backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages