@@ -3,13 +3,12 @@ \section{Built-in Module \sectcode{macdnr}}
33\bimodindex {macdnr}
44
55This module provides an interface to the Macintosh Domain Name
6- Resolver. It is usually used in conjunction with the \var {mactcp}
6+ Resolver. It is usually used in conjunction with the \module {mactcp}
77module, to map hostnames to IP-addresses. It may not be available in
88all Mac Python versions.
99
10- The \code {macdnr} module defines the following functions:
10+ The \module {macdnr} module defines the following functions:
1111
12- \setindexsubitem {(in module macdnr)}
1312
1413\begin {funcdesc }{Open}{\optional {filename}}
1514Open the domain name resolver extension. If \var {filename} is given it
@@ -61,22 +60,23 @@ \subsection{dnr result object}
6160Alternatively, you can also reference the result attributes directly,
6261this will result in an implicit wait for the query to complete.
6362
64- The \var {rtnCode} and \var {cname} attributes are always available, the
65- others depend on the type of query (address, hinfo or mx).
63+ The \member {rtnCode} and \member {cname} attributes are always
64+ available, the others depend on the type of query (address, hinfo or
65+ mx).
6666
67- \setindexsubitem {(dnr result object method)}
67+ \setindexsubitem {(dnr result method)}
6868
69- % Add args, as in {arg1\ , arg2 \optional{\ , arg3}}
69+ % Add args, as in {arg1, arg2 \optional{, arg3}}
7070\begin {funcdesc }{wait}{}
7171Wait for the query to complete.
7272\end {funcdesc }
7373
74- % Add args, as in {arg1\ , arg2 \optional{\ , arg3}}
74+ % Add args, as in {arg1, arg2 \optional{, arg3}}
7575\begin {funcdesc }{isdone}{}
76- Return 1 if the query is complete.
76+ Return \code {1} if the query is complete.
7777\end {funcdesc }
7878
79- \setindexsubitem {(dnr result object attribute)}
79+ \setindexsubitem {(dnr result attribute)}
8080
8181\begin {datadesc }{rtnCode}
8282The error code returned by the query.
@@ -96,17 +96,17 @@ \subsection{dnr result object}
9696
9797\begin {datadesc }{cpuType}
9898\dataline {osType}
99- Textual strings giving the machine type an OS name. Valid for hinfo
99+ Textual strings giving the machine type an OS name. Valid for `` hinfo''
100100queries.
101101\end {datadesc }
102102
103103\begin {datadesc }{exchange}
104- The name of a mail-exchanger host. Valid for mx queries.
104+ The name of a mail-exchanger host. Valid for `` mx '' queries.
105105\end {datadesc }
106106
107107\begin {datadesc }{preference}
108108The preference of this mx record. Not too useful, since the Macintosh
109- will only return a single mx record. Mx queries only.
109+ will only return a single mx record. Valid for `` mx '' queries only.
110110\end {datadesc }
111111
112112The simplest way to use the module to convert names to dotted-decimal
0 commit comments