--- title: "Read or configure DNS server addresses" slug: "read-or-configure-dns-server-addresses" tags: ["Reference"] updated: 2026-09-03T18:40:43Z published: 2026-09-03T18:40:43Z canonical: "docs.trellix.com/read-or-configure-dns-server-addresses" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Read or configure DNS server addresses Reads or configures DNS server addresses. ### API URL `GET https://<host>/wsapis/v2.0.0/devicemgmt/mgmtinterface/dns` or `POST https://<host>/wsapis/v2.0.0/devicemgmt/mgmtinterface/dns/static` ### Payload `POST https://<host>/wsapis/v2.0.0/devicemgmt/mgmtinterface/dns/static` Configure the Primary DNS: `{"primary": "172.16.2.1"}` Configure the Secondary DNS: `{"secondary": "172.16.2.2"}` ### Sample curl requests Update Primary DNS ``` curl -skg -H "$auth-token" https://172.16.12.151/wsapis/v2.0.0/devicemgmt/mgmtinterface/dns/static -d '{"primary": "172.16.2.3"}' -H 'content-type:application/json' { "error": false, "message": "updated object" } ``` Update secondary DNS `curl -skg -H "$c" https://172.16.12.151/wsapis/v2.0.0/devicemgmt/mgmtinterface/dns/static -d '{"secondary": "172.16.2.3"}' -H 'content-type:application/json' { "error": false, "message": "updated object" }` **Availability** This command is available on the following platforms: - Network Security - Helix Enterprise ### Authentication Standard WSAPI authentication ### Response mime type `application/json` :