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@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@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.
_______________________________________________
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to