Skip to main content

Configure DNS settings

You have the option to configure your own DNS settings, no matter if it's a public or a private server. DNS settings can be changed in the emnify Portal. By default, emnify uses the Google DNS 8.8.8.8 and 8.8.4.4.

note

Utilizing a private DNS server that isn't accessible via the public internet requires establishing a private network with the device or a network where the private DNS server is situated. This can be accomplished using Cloud Connect through Amazon Transit Gateway or IPsec.

See DNS Filtering with emnify Cloud Connect and AWS Route53 on the emnify Developer Blog for step-by-step instructions.

Add a custom DNS

  1. Log in to your emnify account.

  2. Navigate to Device Policies.

  3. Find your desired service policy in the Service Policies section and click Details.

  4. Select the More options tab to find the Custom DNS section.

  5. Click Configure custom DNS.

  6. Enter the primary and secondary DNS, then click Add custom DNS.

warning

Changes save automatically, but your devices may take up to 24 hours to use the new settings. This can also be forced by resetting the connectivity of devices on this service policy.

Edit a custom DNS

  1. Log in to your emnify account.

  2. Navigate to Device Policies.

  3. Find your desired service policy in the Service Policies section and click Details.

  4. Select the More options tab to find the Custom DNS section.

  5. Click Edit.

  6. Edit the primary or secondary DNS, then select Save custom DNS.

warning

Changes save automatically, but your devices may take up to 24 hours to use the new settings. This can also be forced by resetting the connectivity of devices on this service policy.

Delete a custom DNS

  1. Log in to your emnify account.

  2. Navigate to Device Policies.

  3. Find your desired service policy in the Service Policies section and click Details.

  4. Select the More options tab to find the Custom DNS section.

  5. Click Edit.

  6. Finally, select Remove custom DNS.

warning

Changes save automatically, but your devices may take up to 24 hours to use the new settings. This can also be forced by resetting the connectivity of devices on this service policy.

Configure DNS settings with the emnify REST API

You can also add, list, or delete DNS configurations using the emnify REST API. For step-by-step instructions, see Configure DNS Settings in the emnify System Documentation.