Skip to content

Update a network's DNS configuration

Request

Requires virtual-networks::modify permission.

Security
JWTAuthorizer
Path
networkNamestringrequired

Network name

domainNamestringrequired

Domain name

Bodyapplication/jsonrequired

DNS configuration

enabledboolean

Whether DNS is enabled for the network

serverstring

IP address of the DNS server

Example:"1.1.1.13"
orgIdstring

Organization ID

networkNamestring

Virtual network name this config belongs to

domainNamestring

Domain name this config belongs to

typestring

Object type discriminator

Example:"DNSConfig"
curl -i -X PUT \
  'https://apidocs.trustgrid.io/_mock/v2/domain/{domainName}/network/{networkName}/dns' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "enabled": true,
    "server": "1.1.1.13",
    "orgId": "string",
    "networkName": "string",
    "domainName": "string",
    "type": "DNSConfig"
  }'

Responses

OK

Response
No content