tuxis-ie / nsedit

DNS Editor working with PowerDNS's new API
GNU General Public License v2.0
198 stars 55 forks source link

Unsupported API version #179

Closed christoph-ernst closed 5 years ago

christoph-ernst commented 5 years ago

Hi all I setup nsedit with PowerDNS 4.1.3 (Authoritative Server). my pdns.conf shows:

api=yes
api-key=<apipw>
api-logfile=/var/log/pdns.log

cache-ttl=60
guardian=yes

launch=gmysql
gmysql-host=host.docker.internal
gmysql-port=3306
gmysql-dbname=pdns
gmysql-user=powerdns
gmysql-password=<powerdnspw>
gmysql-dnssec=no

logging-facility=0
loglevel=7
master=yes

setgid=pdns
setuid=pdns

socket-dir=/var/run
version-string=full

webserver=yes
webserver-address=0.0.0.0
webserver-allow-from=127.0.0.1,172.17.0.0/24,::1
webserver-password=<webserverpw>
webserver-port=8081

when i open up the nsedit gui i am able to login using admin/admin. Right after the successful login i receive an error: "Unsupported API version".

Could you suggest what has to be done to get a supported API? thank you - best regards

christoph-ernst commented 5 years ago

my further investigations showed that on: # curl -s -H 'X-API-Key: <apipw>' http://172.17.0.2:8081/api/v1/servers/localhost powerdns answers with:

{
  "config_url": "/api/v1/servers/localhost/config{/config_setting}",
  "daemon_type": "authoritative",
  "id": "localhost",
  "type": "Server",
  "url": "/api/v1/servers/localhost",
  "version": "0.0.2400g4c928be",
  "zones_url": "/api/v1/servers/localhost/zones{/zone}"
}

isn't the version string strange?

christoph-ernst commented 5 years ago

Was able to resolve the issue using the pdns mailing list. On error i used packages from the master branch...