5.11.3.1. DNSResolver methods

MethodDescription
__init__(self, name_server, timeout, use_search_domain)Constructor to initialize a DNSResolver instance.

Table 5.89. Method summary

Method __init__(self, name_server, timeout, use_search_domain)

This constructor initializes a DNSResolver instance.

Arguments of __init__
name_server (string)
Default: None
IP address of the DNS server to query. Defaults to the servers set in the resolv.conf file.

timeout (integer)
Default: 2
Seconds to wait a response from a server.

use_search_domain (boolean)
Default: FALSE
Append the host's search domain to the query.