[GH-ISSUE #145] Error 404 when trying to add a simple A record. #92

Closed
opened 2026-02-28 01:20:56 +03:00 by kerem · 1 comment
Owner

Originally created by @rdoerr01 on GitHub (Apr 27, 2017).
Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/145

I've been struggling to get NSEDIT working with PowerDNS. O I have PowerDNS working fine and can do any API call to it. NSEDIT GUI comes up and I can create the Domain, but it gives an error 404 and creates it anyway. But if you try and create an A record, you get the 404 and nothing is created in the DB. You get this in the PowerDNS API logs.

Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Handling request "/api"
Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Result for "/api": 200, body length: 34
Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Handling request "/api/v1/servers/localhost/zones/ttlab.com."
Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 gmysql Connection successful. Connected to database 'pdns' on '127.0.0.1'.
Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 gmysql Connection successful. Connected to database 'pdns' on '127.0.0.1'.
Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Result for "/api/v1/servers/localhost/zones/ttlab.com.": 200, body length: 711
Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Handling request "/apiv1serverslocalhostzonesttlab.com."
Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: No route found for "/apiv1serverslocalhostzonesttlab.com."
Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Error result for "/apiv1serverslocalhostzonesttlab.com.": 404

I'm using PowerDNS
Installed:
pdns.x86_64 0:4.0.3-1pdns.el7

NSEDIT using git on the Master branch. I've tried checkout of Tag 1.0 and 1.1, but checking out the master branch worked better, but still can't get around the 404.

Originally created by @rdoerr01 on GitHub (Apr 27, 2017). Original GitHub issue: https://github.com/tuxis-ie/nsedit/issues/145 I've been struggling to get NSEDIT working with PowerDNS. O I have PowerDNS working fine and can do any API call to it. NSEDIT GUI comes up and I can create the Domain, but it gives an error 404 and creates it anyway. But if you try and create an A record, you get the 404 and nothing is created in the DB. You get this in the PowerDNS API logs. ``` Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Handling request "/api" Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Result for "/api": 200, body length: 34 Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Handling request "/api/v1/servers/localhost/zones/ttlab.com." Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 gmysql Connection successful. Connected to database 'pdns' on '127.0.0.1'. Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 gmysql Connection successful. Connected to database 'pdns' on '127.0.0.1'. Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Result for "/api/v1/servers/localhost/zones/ttlab.com.": 200, body length: 711 Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Handling request "/apiv1serverslocalhostzonesttlab.com." Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: No route found for "/apiv1serverslocalhostzonesttlab.com." Apr 27 18:22:17 powerdns pdns_server: Apr 27 18:22:17 HTTP: Error result for "/apiv1serverslocalhostzonesttlab.com.": 404 ``` I'm using PowerDNS Installed: pdns.x86_64 0:4.0.3-1pdns.el7 NSEDIT using git on the Master branch. I've tried checkout of Tag 1.0 and 1.1, but checking out the master branch worked better, but still can't get around the 404.
kerem closed this issue 2026-02-28 01:20:57 +03:00
Author
Owner

@phelset commented on GitHub (Apr 28, 2017):

See comments on commit github.com/tuxis-ie/nsedit@4d4e536d52.
Quickfix: comment out line 94 in includes/class/ApiHandler.php

<!-- gh-comment-id:297958666 --> @phelset commented on GitHub (Apr 28, 2017): See comments on commit https://github.com/tuxis-ie/nsedit/commit/4d4e536d52d93cf41b25bbfe530775dd10c51df9. Quickfix: comment out line 94 in includes/class/ApiHandler.php
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsedit#92
No description provided.