Skip to content
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

API record update fail #36

Open
kayhan89 opened this issue Jun 28, 2013 · 2 comments
Open

API record update fail #36

kayhan89 opened this issue Jun 28, 2013 · 2 comments

Comments

@kayhan89
Copy link

Hi all,

I am use PowerDNS-API, Not update dns records.

Case 1 :
www.itnl.com > 10.0.0.1 >> www.itnl.com > 10.0.0.111

Client Send [1]:
curl -X PUT -u endersys:endersys "http://127.0.0.1:3000/api/record/itnl.com/www?name=www&type=A&data=10.0.0.111&ttl=86400"
{
"error" : "record not found"
}

Client Send[2] :
curl -X PUT -u endersys:endersys "http://127.0.0.1:3000/api/record/itnl.com/www?name=www&type=A&data=10.0.0.111&ttl=86400"
{
"error" : "record not found"
}

root@k-Sys:~# curl -X PUT -u endersys:endersys "http://95.211.10.159:3000/api/record/isimtescilnl.com/name=www&type=A&data=10.0.0.1&ttl=86400"
{
"error" : "record not found"
Could you please share with me the correct syntax?

}

Regards

@kayhan89
Copy link
Author

Server log :

[Fri Jun 28 14:34:32 2013] [debug] 404 Not Found (0.009915s, 100.857/s).
[Fri Jun 28 14:34:57 2013] [debug] PUT "/api/record/itnl.com/123".
[Fri Jun 28 14:34:57 2013] [debug] Routing to controller "PowerDNS::API::Handler" and action "auth".
[Fri Jun 28 14:34:57 2013] [debug] Routing to controller "PowerDNS::API::Handler" and action "handle_request".
ERROR: record not found at /opt/pdns/PowerDNS-API/script/../lib/PowerDNS/API/Handler.pm line 138.

[Fri Jun 28 14:33:48 2013] [debug] 404 Not Found (0.009890s, 101.112/s).
[Fri Jun 28 14:34:26 2013] [debug] PUT "/api/record/itnl.com/www".
[Fri Jun 28 14:34:26 2013] [debug] Routing to controller "PowerDNS::API::Handler" and action "auth".
[Fri Jun 28 14:34:26 2013] [debug] Routing to controller "PowerDNS::API::Handler" and action "handle_request".
ERROR: record not found at /opt/pdns/PowerDNS-API/script/../lib/PowerDNS/API/Handler.pm line 138.

@spiderfingers
Copy link

same thing here, is there a chance we can work it out soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants