5.11.3.1. DNSResolver methods

MethodDescription
__init__(self, multi, family) Constructor to initialize a DNSResolver instance.

Table 5.83. Method summary

Method __init__(self, multi, family)

This constructor initializes a DNSResolver instance.

Arguments of __init__
family (enum)
Default: AF_UNSPEC
Set this attribute to the necessary address family to filter retrieved IP addresses from the DNS server when name has multiple A records.

multi (boolean)
Default: FALSE
Enable this attribute to retrieve multiple IP addresses from the DNS server if the domain name has multiple A records.