Skip to content

Create a VPN DNS configuration

Request

Security
JWTAuthorizer
Path
nodeIDstringrequired

Node ID

networkNamestringrequired

Network name

Bodyapplication/json
enabledboolean

Whether DNS forwarding is enabled on this VPN network

upstreamArray of objects

Upstream DNS servers to forward queries to

curl -i -X POST \
  'https://apidocs.trustgrid.io/_mock/v2/node/{nodeID}/vpn/{networkName}/dns' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "enabled": true,
    "upstream": [
      {
        "ip": "string",
        "port": 0,
        "description": "string"
      }
    ]
  }'

Responses

OK

Response
No content