This acricle based on VMware KB 68035: https://kb.vmware.com/s/article/68035

So, ESG installed, however having error under log: "Error resolving hostname; host='vrli.domain.local'

As article said, going to API to the NSX:

1. Using Postman, find all your ESGs:

GET https://NSX-Manager/api/4.0/edges

Grab edge ID: in my case "edge-1"

2.

PUT https://NSX-Manager/api/4.0/edges/{edgeId}/dnsclient

Body:

(USE KB ARTICELE)
HTTP Result Codes:
204 NO CONTENT

3. Check settings applied:

GET https://NSX-Manager/api/4.0/edges/{edgeId}/dnsclient