tuxis-ie / nsedit

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

Dynamic DNS update support #101

Open berrnd opened 7 years ago

berrnd commented 7 years ago

Hi,

first - thanks for nsedit! :) Just upgraded today my nameservers to PowerDNS 4.x and also replaced poweradmin with nsedit...

The only thing I was missing, is dynamic DNS update support (the thing you need when your home router gets a new IP every night).

I have implemented this right now. Because routers normally require HTTP basic authentication, the current login mechanism is not working for that. I have used the "adminapikey" as password, and fix "admin" as username. Don't know if this is good or not...

Feel free to use it, or if this looks good to you I could also create a pull rquest - everything should be explained in the header of dynamic_update.php.

See berrnd@5740bc0345454be1de7450f1d4ae29c96e62c47e

tuxis-ie commented 7 years ago

You're welcome!

I'm not sure if I find nsedit the correct place to do this. Is this dynamic update what is described here: https://doc.powerdns.com/md/authoritative/dnsupdate/

We might be able to do something with that?

berrnd commented 7 years ago

Didn't read in full - but as far I can see this is nothing that takes a simple HTTP GET request with basic authentication and updates the given records (this is the way the most when not all consumer routers do dynamic DNS updates).

(Poweradmin also had that, same named PHP script.)

tuxis-ie commented 7 years ago

Ok, had a good nights sleep and figured that we can incorporate this, but we are going to fix it with users and ownership of the domain. Not yet sure how, but that makes sense the most.

celevra commented 7 years ago

you can do basic authentification with php and plug it into the allready existing user db: http://php.net/manual/de/features.http-auth.php

+1 for dyndns support

Kraeutergarten commented 7 years ago

+1 for dyndns support

aschieb commented 7 years ago

+1 for dyndns support