[Pdns-users] Cannot update server-id

Kevin P. Fleming lists.pdns-users at kevin.km6g.us
Fri May 26 11:01:37 UTC 2023


On Fri, May 26, 2023, at 06:58, Shailendra Gautam via Pdns-users wrote:
> Hello, 
> 
> I cannot seem to update the server-id of my installation.
> It is currently set as localhost although I have explicitly set it to server-id:
> 
> [root at powerdns ~]# curl http://127.0.0.1:8081/api/v1/servers
> [{"autoprimaries_url": "/api/v1/servers/localhost/autoprimaries{/autoprimary}", "config_url": "/api/v1/servers/localhost/config{/config_setting}", "daemon_type": "authoritative", "id": "localhost", "type": "Server", "url": "/api/v1/servers/localhost", "version": "4.7.4", "zones_url": "/api/v1/servers/localhost/zones{/zone}"}]
> 
> [root at powerdns ~]# cat /etc/pdns/pdns.conf | grep -i server-id
> # server-id     Returned when queried for 'id.server' TXT or NSID, defaults to hostname - disabled or custom
> # server-id=
> server-id="pdns"
> 
> I'd like to change the api from `/api/v1/servers/localhost` to `/api/v1/servers/pdns`, how do I achieve this, am I missing something? I am using the mysql backend.

I'm pretty sure those are unrelated IDs, and the 'localhost' in the API URLs cannot be changed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20230526/acc550f1/attachment.htm>


More information about the Pdns-users mailing list