By default, EMnify uses the Google DNS 8.8.8.8. Customers have the possibility to change the DNS of their endpoints by updating the Device Policies used.
This can be done directly in the EMnify User Interface, or via API:
How to configure DNS settings in the EMnify User Interface
In the Device Policies menu, please select the Service Policy you would like to modify:
Click on "More Options" and then on "DNS configs"
Enter the primary and secondary DNS.
Your devices may take up to 24 hours to start using the new settings. This can also be forced by reseting the connectivity of your Connected Devices.
How to configure DNS settings via API
1) Log in Swagger using an application token
2) Create a new DNS with POST /api/v1/dns
Scroll down in the API calls list and find "/api/v1/dns". Extend it and click on "try it out".
To configure OpenDNS for example, use the following:
{
"primary": "208.67.222.222",
"secondary": "208.67.220.220",
"ip_address_version": 4
}
3) Find the DNS config with GET /api/v1/dns
Right above in swagger, use the GET /api/v1/dns by clicking and "try it out" and "execute".
In the response you can find the ID of your new DNS configuration:
4) Update or create a new Service Profile with the new DNS ID
You can now use the ID to update an existing Service profile with the API PATCH /api/v1/service_profile/{service_profile_id} or create a new Service Profile with the API POST /api/v1/service_profile
Here is an example to update your Service Profile:
Comments
0 comments
Please sign in to leave a comment.