summaryrefslogtreecommitdiffstats
path: root/Doc/mac/libmacdnr.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-03-02 16:37:17 (GMT)
committerFred Drake <fdrake@acm.org>1999-03-02 16:37:17 (GMT)
commitf6863c19091ca23ef69db31aa033b5802c2be871 (patch)
tree016349280cb7a4f3d5ba55e74ab58649abb27275 /Doc/mac/libmacdnr.tex
parent46a9438c43ae28db0433e5b65352f6b13a5afe63 (diff)
downloadcpython-f6863c19091ca23ef69db31aa033b5802c2be871.zip
cpython-f6863c19091ca23ef69db31aa033b5802c2be871.tar.gz
cpython-f6863c19091ca23ef69db31aa033b5802c2be871.tar.bz2
Added \platform annotations.
Diffstat (limited to 'Doc/mac/libmacdnr.tex')
-rw-r--r--Doc/mac/libmacdnr.tex12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/mac/libmacdnr.tex b/Doc/mac/libmacdnr.tex
index 6da88f2..efd80d4 100644
--- a/Doc/mac/libmacdnr.tex
+++ b/Doc/mac/libmacdnr.tex
@@ -1,12 +1,13 @@
\section{\module{macdnr} ---
- Interfaces to the Macintosh Domain Name Resolver.}
-\declaremodule{builtin}{macdnr}
+ Interface to the Macintosh Domain Name Resolver}
+\declaremodule{builtin}{macdnr}
+ \platform{Mac}
\modulesynopsis{Interfaces to the Macintosh Domain Name Resolver.}
This module provides an interface to the Macintosh Domain Name
-Resolver. It is usually used in conjunction with the \module{mactcp}
+Resolver. It is usually used in conjunction with the \refmodule{mactcp}
module, to map hostnames to IP addresses. It may not be available in
all Mac Python versions.
\index{Macintosh Domain Name Resolver}
@@ -55,8 +56,8 @@ the hostname of a host willing to accept SMTP\index{SMTP} mail for the
given domain. Returns a dnr result object of the ``mx'' variety.
\end{funcdesc}
-\subsection{dnr result object}
-\label{dnr-result-object}
+
+\subsection{DNR Result Objects \label{dnr-result-object}}
Since the DNR calls all execute asynchronously you do not get the
results back immediately. Instead, you get a dnr result object. You
@@ -115,6 +116,7 @@ will only return a single mx record. Valid for ``mx'' queries only.
The simplest way to use the module to convert names to dotted-decimal
strings, without worrying about idle time, etc:
+
\begin{verbatim}
>>> def gethostname(name):
... import macdnr