Dynamic response overview
Pickers are rule sets that determine how the DNS server chooses which record to return for each query. They control dynamic responses by checking DNS query data against the metadata set for each record, in the order configured. Dynamic response makes the RRSet dynamic. Multiple records can be added to determine which one appears in DNS responses, based on criteria — user subnet, ASN, geolocation metadata, or others. Dynamic response setup consists of two stages:- Set the metadata or other data types against which the query parameters will be compared.
- Select pickers to define the sequence in which the resolver compares query data against the metadata or other criteria of the record.
Configure dynamic response
1
Create a record set
Create a DNS record set in advanced mode (steps 1–4).
2
Enable the Dynamic response toggle
3
Select pickers
Select a picker preset from the “Presets” buttons or manually select pickers from the list on the right. The order of pickers in the left list determines priority: the topmost picker is checked first.
Adjust pickers as follows:
Available pickers
Available pickers
The following pickers are available:
- GeoDistance. Geo proximity to the latlong (latitude and longitude) in the metadata determines the record in the response; the fallback metadata will be ignored.
- Weighted shuffle. Weight metadata determines the probability of the record hitting the response.
- Default. Fallback metadata determines the record in the response if no other pickers were selected.
- ASN. The match with the ASN (autonomous system number) in the metadata determines the record in the response.
- Country. The match with the country in the metadata determines the record in the response.
- Continent. The match with the continent in the metadata determines the record in the response.
- Region. The match with the region in the metadata determines the record in the response.
- IP. The match with IP address or CIDR notation (in IPv4 and IPv6) determines the record in the response.
- Healthcheck. The record in the response is selected based on availability determined with Healthcheck.
- To raise or lower a picker, use drag and drop.
- To remove a picker, click the cross.
- To remove all selected pickers, click Clear.

4
Specify the record value
5
Set metadata
Set the appropriate metadata against which the query value will be compared and specify the value. Multiple metadata fields can be added for one value by clicking the plus button.
Available metadata
Available metadata
Ten metadata types are available:
- asn (autonomous system number)
- continents
- countries
- regions
- latlong (latitude and longitude)
- fallback (only used in the response if no other metadata type is selected)
- backup (only used in combination with health checks to provide failover capability; if the rest of the records are not “healthy,” backup records will be used to form an answer; if at least one non-backup record is “healthy,” the record with the backup metadata does not participate in the response)
- notes (any comments — a city name, data center name, or cluster name)
- weight
- ip (IP address or CIDR notation, IPv4 and IPv6)
6
Add more records (optional)
Click Add record to add more records and repeat steps 4 and 5.
7
Save the configuration
Click Create.
Examples of preset settings
- Geo DNS
- Geo distance
- Weighted shuffle
With the “Geo DNS” preset, metadata of different types can be added to each record.When a DNS request is made, the response is formed using the selected “Records selection” option and the metadata specified for records.The system checks whether a client matches the criteria from the metadata in the following order: IP, ASN, country, and continent. The processing logic works like this:
Two records are added with IP metadata:
A client with an IP from subnet 192.168.1.0/24 receives the record
- Gcore’s DNS server receives a request to the domain.
- If Health Checks are configured, all “non-healthy” records are filtered out.
- Gcore’s DNS server compares the requestor’s IP (respecting EDNS(0)) with the IP from the metadata. Records with matching metadata are used to form an answer if possible.
- If no matches are found, the ASN meta is considered as in step 3.
- If no matches are found, the country meta is considered as in step 3.
- If no matches are found, the continent meta is considered as in step 3.
- If no matches are found, the region meta is considered as in step 3.
- If no matches are found, the records with “fallback=true” metadata are considered.
- If no matches are found, all records are used in the answer (respecting the max answers value).

- For
10.0.0.0record, subnet 192.168.1.0/24 - For
10.0.0.1record, subnet 192.0.2.0/24

10.0.0.0. A client from subnet 192.0.2.0/24 receives the record 10.0.0.1.


