The hosts file expects an IP address for each hostname listed.
You may need to look up the IP address of
example.com.edgesuite.net and use it in the hosts file.
First perform the DNS lookup:
Addresses: 22.214.171.124, 126.96.36.199
Then add a line line in your hosts file such as:
But keep in mind that if
example.com.edgesuite.net ever changes its IP address, then you will have to make a corresponding change in your hosts file.