Module Expr Str Import alias Import alias ClassDef bases body Expr Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Dict Str Str Assign NameStore Num Assign NameStore NameLoad Assign NameStore ListLoad If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad For NameStore NameLoad body Assign AttributeStore NameLoad attr ListLoad NameLoad AugAssignAdd NameStore Num TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str handlers ExceptHandler body Assign NameStore NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str BinOpAdd Call NameLoad NameLoad Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str orelse Assign SubscriptStore NameLoad Index Str BinOpAdd Call NameLoad NameLoad Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Str ImportFrom alias Assign NameStore Call NameLoad Assign NameStore Dict Str Str Str Str While NameLoad body Print Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call NameLoad Num
N/A N/A 
Display DNS resolution success on a configured domain.

This module launch a simple query on each nameservers for the specified domain.
Nameservers are dynamically retrieved. The FQDN is the only one mandatory parameter.
It's also possible to add additional nameservers by appending them in nameservers list.

The default resolver can be overwritten with my_resolver.nameservers parameter.

Configuration parameters:
    domain: domain name to check
    lifetime: resolver lifetime
    nameservers: comma separated list of reference DNS nameservers
    resolvers: comma separated list of DNS resolvers to use

@author nawadanp
 N/A dns.resolver N/A socket Py3status N/A N/A N/A N/A domain N/A lifetime 0.3 N/A nameservers N/A resolvers ns_checker N/A N/A self i3s_output_list i3s_config N/A N/A N/A response N/A full_text N/A counter 0 N/A error False N/A nameservers N/A N/A N/A N/A isinstance N/A self nameservers list N/A N/A N/A self nameservers N/A N/A N/A self nameservers split , N/A N/A N/A isinstance N/A self resolvers list N/A N/A N/A self resolvers N/A N/A N/A self resolvers split , N/A my_resolver N/A N/A N/A dns resolver Resolver N/A N/A my_resolver lifetime N/A self lifetime N/A N/A self resolvers N/A N/A N/A my_resolver nameservers N/A self resolvers N/A my_ns N/A N/A my_resolver query N/A self domain NS N/A ns my_ns N/A N/A N/A N/A nameservers append N/A str N/A N/A socket gethostbyname N/A str ns N/A ns N/A self nameservers N/A N/A N/A N/A nameservers append N/A str ns N/A ns nameservers N/A N/A N/A my_resolver nameservers N/A ns N/A counter 1 N/A N/A N/A N/A N/A my_resolver query N/A self domain A N/A N/A N/A N/A error True N/A error N/A N/A N/A response N/A full_text N/A N/A str counter  NS NOK N/A N/A response N/A color N/A i3s_config N/A color_bad N/A N/A N/A response N/A full_text N/A N/A str counter  NS OK N/A N/A response N/A color N/A i3s_config N/A color_good N/A response N/A N/A N/A N/A __name__ __main__ N/A N/A 
    Test this module by calling it directly.
     time sleep N/A x N/A Py3status N/A config N/A color_good color_bad #00FF00 #FF0000 N/A True N/A N/A N/A N/A x ns_checker N/A config N/A N/A sleep 1