Management Plane API > Networking > Services > DNS

Resolve a given address via the DNS forwarder

Query the nameserver for an ip-address or a FQDN of the given an address optionally using
an specified DNS server. If the address is a fqdn, nslookup will resolve ip-address with it.
If the address is an ip-address, do a reverse lookup and answer fqdn(s).

Request:

Method:
GET
URI Path(s):
/api/v1/dns/forwarders/<forwarder-id>/nslookup
Request Headers:
n/a
Query Parameters:
NsLookupParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/dns/forwarders/1b6cb97f-ffa3-407c-b2ed-a9616feb95dd/nslookup?address=vmware.com

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
DnsAnswer+

Example Response:

{ "dns_server" : "10.117.0.1#53", "edge_node_id" : "e2fa39aa-f4ca-4781-ac48-60a6c47d34e0", "authoritative_answer" : [ { "name": "vmware.com" "address": "10.113.63.149" } ] }

Required Permissions:

read

Feature:

dns_forwarder

Additional Errors: