Resolver policies specify how a given service should resolve the domain names in client requests. This capability is essential when non-transparent services are used, as in these cases the Zorp host has to determine the destination address, and the results of a name resolution are needed. Zorp is also able to store the addresses of often used domain names in a hash. Zorp supports DNS-based ( ) and Hash table-based ( ) name resolution.
Zorp in general to resolve domain names. If a domain name is associated to multiple IP addresses (that is, it has more than one 'A' records), these records can be retrieved by checking the checkbox. From Zorp version 7.0 12, the policies also cache the domain names and the IP addresses found. (The DNS server used by the Zorp host can be specified on the tab of the component, see Section 5.3, Managing client-side name resolution for details.)
policies query the domain name server used byTip |
---|
Retrieving multiple 'A' records is useful when Zorp is used to perform load balancing. |
Example 6.15. Defining a Resolver policy |
---|
Python: Below is a simple DNSResolver policy enabled to return multiple 'A' records. ResolverPolicy(name="Mailservers", resolver=DNSResolver(multi=TRUE)) |
Zorp version 7.0.12, the policies also cache the domain names and the IP addresses found.
policies are used to locally store the IP addresses belonging to a domain name. A domain name ( ) and one or more corresponding IP addresses ( ) can be stored in a hash. If the domain name to be resolved is not included in the hash, the name resolution will fail. The can be used to direct incoming connections to specific servers based on the target domain name. FromExample 6.16. Using HashResolver to direct traffic to specific servers |
---|
If a Zorp host is protecting a number of servers located in a DMZ, the connections can be easily directed to the proper server without a DNS query if the hostname – IP address pairs are stored in a HashResolver. If multiple IPs are associated with a hostname, simple fail-over functionality can be realized by using . The resolver policy below associates the IP addresses Python: ResolverPolicy(name="DMZ", resolver=HashResolver(mapping={"mail.example.com":\ ("192.168.1.12", "192.168.1.13")})) |
Published on May 30, 2024
© BalaSys IT Ltd.
Send your comments to support@balasys.hu