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.
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
- Default
- Beta
-
Navigate to Device Policies.
-
Find your desired service policy in the Service Policies section and click Details.
-
Select the More options tab to find the Custom DNS section.
-
Click Configure custom DNS.
-
Enter the primary and secondary DNS, then click Add custom DNS.
- Log in to your emnify account.
- Navigate to Device Policies.
- Find your desired service policy in the Service Policies section and expand the policy details.
- In Data, find the Custom DNS Server section. By default, the badge next to the section title reads Default DNS.
- Click Edit to open the configuration modal.
- Enter a valid IP address in the Primary NS and Secondary NS fields. Click Confirm to save your changes.
The Custom DNS Server section of the policy details should display the Configured DNS badge and the updated IP address values.
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
- Default
- Beta
-
Navigate to Device Policies.
-
Find your desired service policy in the Service Policies section and click Details.
-
Select the More options tab to find the Custom DNS section.
-
Click Edit.
-
Edit the primary or secondary DNS, then select Save custom DNS.
- Log in to your emnify account.
- Navigate to Device Policies.
- Find your desired service policy in the Service Policies section and expand the policy details.
- In Data, find the Custom DNS Server section. The badge next to the section title should read Configured DNS.
- Click Edit to open the configuration modal.
- Edit the Primary NS or Secondary NS field, then click Confirm to save your changes.
The Custom DNS Server section of the policy details should display the updated IP address values.
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
- Default
- Beta
-
Navigate to Device Policies.
-
Find your desired service policy in the Service Policies section and click Details.
-
Select the More options tab to find the Custom DNS section.
-
Click Edit.
-
Finally, select Remove custom DNS.
- Log in to your emnify account.
- Navigate to Device Policies.
- Find your desired service policy in the Service Policies section and expand the policy details.
- In Data, find the Custom DNS Server section. The badge next to the section title should read Configured DNS.
- Click Edit to open the configuration modal.
- Click Delete, then select Confirm to save your changes.
The Custom DNS Server section of the policy details should display the Default DNS badge and the updated IP address values.
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.