DjangoPowerDNS icon indicating copy to clipboard operation
DjangoPowerDNS copied to clipboard

DynDns

Open Kraeutergarten opened this issue 7 years ago • 5 comments

Does it support dyndns?

Kraeutergarten avatar Oct 17 '17 07:10 Kraeutergarten

It currently doesn‘t support dyndns. How should a feature like that look like?

For now you can easily create dynamic DNS records with the REST-API.

McLive avatar Oct 17 '17 10:10 McLive

For most routers you need to add username and password to the url like:

https://domain.de/api/v3/update?hostname={hostname}&myip={IPAddress}&user={user}&password={password}

Does this work with your rest api? Some API only support username and password via header.

Kraeutergarten avatar Oct 17 '17 10:10 Kraeutergarten

You have to use an apiKey like this:

http://127.0.0.1:8000/api/domain/1/record/?apiKey=1234567890

Then PUT a json string: { "id": 11, "content": "192.168.178.2" }

This will set the content of record 11 to 192.168.178.2

McLive avatar Oct 17 '17 13:10 McLive

This won't work on the most routers. A lot of router hardware can't do json.

There need to be a extra API for dyndns.

Like: https://domain.de/dyn/v1/update?hostname={hostname}&myip={IPAddress}&user={user}&password={password}

This API should only be able to update records.

Do you come from Germany? Maybe you know Fritz.box (Router)

Kraeutergarten avatar Oct 17 '17 16:10 Kraeutergarten

Yeah I know them but that's currently not supported.

I'll add an api endpoint for dyndns soon

McLive avatar Oct 19 '17 19:10 McLive