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 PNS host has to determine the destination address, and the results of a name resolution are needed. Application-level Gateway is also able to store the addresses of often used domain names in a hash. Application-level Gateway supports DNS-based ( ) and Hash table-based ( ) name resolution.
Application-level Gateway 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. (The DNS server used by the PNS 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 Application-level Gateway 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)) |
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 HashResolver can be used to direct incoming connections to specific servers based on the target domain name.
Example 6.16. Using HashResolver to direct traffic to specific servers |
---|
If a PNS 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 June 04, 2020
© 2007-2019 BalaSys
Send your comments to support@balasys.hu