Citrix Virtual Delivery Agent for macOS

DNS caching

DNS Caching is an advanced capability that improves session launch reliability during DNS outages. When enabled, the VDA caches the IP addresses of Citrix Gateway Service (CGS) Edge Nodes after successful DNS resolution. If a subsequent DNS lookup fails, the VDA automatically falls back to the cached IP address, allowing sessions to continue launching without interruption.

Enabling the feature

DNS Result Caching is disabled by default. An administrator must explicitly enable it via a local registry setting.

  • Run the following command on the VDA machine to enable DNS Caching:

    sudo ctxreg create -k "HKLM\Software\Citrix\Ica\EdgeNodeCache" -t "REG_DWORD" -v "EnableDNSCache" -d "0x00000001" --force

  • Run the following command on the VDA machine to disable DNS Caching:

    sudo ctxreg create -k "HKLM\Software\Citrix\Ica\EdgeNodeCache" -t "REG_DWORD" -v "EnableDNSCache" -d "0x00000000" --force

Known Limitations

  • The cache is empty on first use — at least one successful DNS resolution must occur before the fallback mechanism can work.

  • If the IP address of a CGS Edge Node changes (e.g., after a CGS infrastructure deployment or redeployment), the cached IP address will be stale and the fallback connection will fail. The cache will be updated automatically on the next successful DNS resolution.

Troubleshooting

  • Verifying the feature is enabled

    Run the following command to check the current setting:

    sudo ctxreg read -k "HKLM\Software\Citrix\Ica\EdgeNodeCache" -v "EnableDNSCache"

    A value of “1” means the feature is enabled.

  • Viewing cached DNS entries

    All cached entries are stored under the same registry key. To view them:

    sudo ctxreg dump -k "HKLM\Software\Citrix\Ica\EdgeNodeCache"

    This displays all cached FQDN-to-IP mappings alone with the feature toggle.

DNS caching