Retrieve information about the API itself and inspect the current context. The returned dictionary can be used with getdns_context_config() directly to configure another context with precisely these settings.
- Parameters
-
context | The context from which to get the information |
- Returns
- A getdns_dict containing the following name/value pairs:
version_string
(a bindata) represents the version string for this version of the DNS API.
implementation_string
(a bindata) is a string showing which implementation of the getdns API this is. In our implementation this will always be set to "https://getdnsapi.net"
- resolution_type (an int) is the type of resolver that the API is acting as in this context: GETDNS_RESOLUTION_RECURSING or GETDNS_RESOLUTION_STUB.
- all_context (a dict) with names for all the other settings in context. The application is responsible for cleaning up the returned dictionary object with getdns_dict_destroy.