SPLITDNS.CONFIG(5) | Apache Traffic Server | SPLITDNS.CONFIG(5) |
splitdns.config - Traffic Server split DNS configuration file
The splitdns.config file enables you to specify the DNS server that Traffic Server should use for resolving hosts under specific conditions. For more information, refer to Split DNS.
To specify a DNS server, you must supply the following information in each active line within the file:
You can also include the following optional information with each DNS server specification:
After you modify the splitdns.config file, run the traffic_ctl config reload command to apply the changes.
Each line in the splitdns.config file uses one of the following formats:
dest_domain=dest_domain | dest_host | url_regex named=dns_server def_domain=def_domain search_list=search_list
The following list describes each field.
You must specify the domains with IP addresses in CIDR ("dot") notation.
Consider the following DNS server selection specifications:
dest_domain=internal.company.com named="255.255.255.255:212 255.255.255.254" def_domain=company.com search_list="company.com company1.com" dest_domain=!internal.company.com named=255.255.255.253
Now consider the following two requests:
http://minstar.internal.company.com
This request matches the first line and therefore selects DNS server 255.255.255.255 on port 212. All resolver requests use company.com as the default domain, and company.com and company1.com as the set of domains to search first.
http://www.microsoft.com
This request matches the second line. Therefore, Traffic Server selects DNS server 255.255.255.253. Because no def_domain or search_list was supplied, Traffic Server retrieves this information from resolv.conf(5)
2023, dev@trafficserver.apache.org
November 2, 2023 | 9.2 |