Product Documentation

Cache EDNS0 client subnet data when the Citrix ADC appliance is in proxy mode

In Citrix ADC Proxy mode, if a back-end server that supports EDNS0 Client Subnet (ECS) sends a response containing the ECS option, the Citrix ADC appliance forwards the response as-is to the client and stores it in the cache, along with the client subnet information. Further DNS requests that are from the same subnet of the same domain, and for which the server would send the same response, are then served from the cache instead of being directed to the server.

Note:

  • ECS caching is disabled by default. You have to enable caching of EDNS0 client-subnet data in the associated DNS profile.
  • The number of subnets that you can cache for a domain is limited to the available subnet IDs, that is, 1270 in the Citrix ADC appliance. Optionally, you can set the limit to a lower number (minimum value: 1 ipv4/ipv6).

Enable caching of ECS responses by using the CLI

At the command prompt, type:

set dns profile <dnsProfileName> -cacheECSSubnet ( ENABLED | DISABLED )

Limit the number of subnets that can be cached per domain by using the CLI

At the command prompt, type:

set dns profile <dnsProfileName> -maxSubnetsPerDomain <positive_integer>

Example:

localized image

In the example shown in the above figure, the client at IP address 2.2.2.2 sends a query for www.example.com to the DNS resolver, and the DNS resolver sends the following response:

www.example.com IN A, IP is 2.2.2.11, and ECS 2.2.2.0/24/24

At this point, the response and the client-subnet identifier (2.2.2.0/24) are cached. Further requests from the same subnet and domain will be served from the cache.

For example, if the client’s IP address is 2.2.2.100 and the query is for www.example.com, the query is served from the cache instead of being sent to the backend server.

Cache EDNS0 client subnet data when the Citrix ADC appliance is in proxy mode