Module Expr Str Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd BinOpAdd BinOpAdd NameLoad Str Call AttributeLoad Str attr GeneratorExp Call NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad Str orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd Call NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Raise Call NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num
N/A N/A 
Print the SRV records for a given DOMAINNAME eg

 python dns-service.py xmpp-client tcp gmail.com

SERVICE: the symbolic name of the desired service.

PROTO: the transport protocol of the desired service; this is usually
       either TCP or UDP.

DOMAINNAME: the domain name for which this record is valid.
 N/A sys twisted.names client error twisted.internet.task react twisted.python usage Options N/A N/A usage Options N/A N/A synopsis Usage: dns-service.py SERVICE PROTO DOMAINNAME parseArgs N/A N/A self service proto domainname N/A N/A N/A N/A self N/A service service N/A N/A self N/A proto proto N/A N/A self N/A domainname domainname N/A N/A printResult N/A N/A records domainname N/A N/A N/A 
    Print the SRV records for the domainname or an error message if no
    SRV records were found.
     N/A N/A answers authority additional records N/A answers N/A N/A N/A N/A N/A sys stdout write N/A N/A N/A domainname  IN 
  N/A N/A join N/A N/A str N/A x payload N/A x answers N/A N/A N/A N/A N/A sys stderr write N/A ERROR: No SRV records found for name %r
 N/A domainname N/A printError N/A N/A failure domainname N/A N/A N/A 
    Print a friendly error message if the domainname could not be
    resolved.
     N/A N/A N/A failure trap N/A error DNSNameError N/A N/A N/A N/A sys stderr write N/A ERROR: domain name not found %r
 N/A domainname N/A main N/A N/A reactor N/A argv N/A N/A options N/A Options N/A N/A N/A N/A N/A options parseOptions argv N/A N/A N/A N/A usage UsageError N/A errortext N/A N/A N/A N/A N/A sys stderr write N/A N/A str options N/A N/A N/A N/A sys stderr write N/A ERROR: %s
 N/A errortext N/A N/A SystemExit 1 N/A resolver N/A N/A client Resolver /etc/resolv.conf N/A domainname N/A _%(service)s._%(proto)s.%(domainname)s options N/A d N/A N/A resolver lookupService domainname N/A N/A N/A d addCallback printResult domainname N/A N/A N/A d addErrback printError domainname N/A d N/A N/A N/A __name__ __main__ N/A N/A N/A react main N/A N/A sys argv N/A 1