Accessing the DNS Client
The DNS Client module will perform DNS probing after installation, to automate WinGate's use of available DNS servers. Manual administration of the DNS client can be performed using the DNS Client settings, located at Control Panel > DNS Client in the WinGate Management console.
Note
Any DNS servers that you manually list in the DNS Client settings, will need to be accessible to WinGate either on the LAN through its Internal network adapter, or the Internet via its Internet connection.
WinGate objects
When using a WinGate script system (such as the Lua or Javascript event processors) or a configuration that has access to the Symbol Browser, you can use DNSClient object published by the DNS Client module to manage the DNS cache.
License restriction: The DNSClient object is only available with a WinGate Enterprise license.
DNSClient object
Member
|
Description
|
EmptyCache()
|
e.g. A script could contain:
This will empty ALL records currently in the DNS cache.
|
Lookup (TextName, NumberType)
|
Provided mainly for testing, this method will perform a DNS lookup of the given domain name, and provide the record according to the NumberType (DNS record type) specified (e.g. 5=CNAME record, 15=MX record etc.).
|
PurgeCache()
|
This will purge the DNS cache according to the rules configured in the DNS Client settings.
|