psi-4ward / docker-powerdns

PowerDNS Docker Image based on Alpine
106 stars 110 forks source link

API Key #59

Open matiasah opened 3 years ago

matiasah commented 3 years ago

Hello, could you add a way to provide an API Key and a port to use the API?

ross commented 2 years ago

You can enable the API and set an api-key by adding arguments, --api=yes --api-key=its@secret. Depending on how you're accessing it you may need to allow requests from non-localhost IP blocks. To allow from anywhere that'd be --webserver-allow-from=0.0.0.0/0. --loglevel=99 can be helpful in tracking down problems.