-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some more changes appear to be necessary for api v1 compatibility #73
Comments
I don't get the $url part. https://github.com/tuxis-ie/nsedit/blob/master/includes/misc.inc.php#L54 should set $apipath if needed. |
with APIv1, the zoneurl returned by powerdns looks like "api/v1/zone/path", this patch fixes it by not including $apipath if the path already starts with "api/v1", the problem before was the API path was being added twice: once by powerdns, once by us. Possibly a cleaner fix would be to fix zoneurl when we get it either in the list action or in get_all_zones. |
the patch worked for me until there is a real fix, thank you! |
More and more changes are coming on the 4.0 (alpha 2 has added new features) |
jep, i've updated today and now nsedit can't fetch my records anymore |
You've updated what? |
pdns |
Yes. Well, as long as pdns has not completely finished their API, I'm not in the mood to adjust nsedit for it. e.g., PowerDNS/pdns#3253 is open and that's something I would really like to see. If anyone is willing to fix this, please send a PR. But keep in mind that stable pdns should still work.. |
In the meantime before the final release of PowerDNS 4.0, we could use pdnsutil in CLI. |
@zeha has just created PowerDNS/pdns#3495 which should make this pretty easy. I'll track that PR and make sure nsedit supports it ASAP. (Feel free to write a PR to implement this). |
just wanted to note that alpha2 is included in ubuntu 16.04. The patch above got rid of some 404 api errors when editing zones. But trying to add an A Record, I still get: Any help with this would be appreciated. |
It looks like there are a lot of API changes.
Certainly all of the methods might require some changes. |
Yes. I`m planning to create a 2.0 branche to fix compatibility with the new pdns api. Help would be much appreciated |
Working on this, nearing completion. I'm expection to release NSEdit 1.0 tomorrow. |
I was only able to restore function with api v1 doing the following but i'm sure there is a cleaner way to get there, so this is more a note that there seem to be some issues and not a suggestion to make use of the changes below. ;-)
The text was updated successfully, but these errors were encountered: