aboutsummaryrefslogtreecommitdiff
path: root/docs/dns.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/dns.html')
-rw-r--r--docs/dns.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/dns.html b/docs/dns.html
index 56ce3ba..e8320e8 100644
--- a/docs/dns.html
+++ b/docs/dns.html
@@ -106,6 +106,32 @@ the resolver. In case of error, the function returns <b><tt>nil</tt></b>
106followed by an error message. 106followed by an error message.
107</p> 107</p>
108 108
109<!-- getnameinfo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
110
111<p class="name" id="getnameinfo">
112socket.dns.<b>getnameinfo(</b>[host] [, service]<b>)</b>
113</p>
114
115<p class="description">
116Resolves a host and/or a service name through the system resolver and
117returns their canonical name form. At least one of <tt>host</tt> or
118<tt>service</tt> must be given.
119</p>
120
121<p class="parameters">
122<tt>Host</tt> is an optional string with a host name or IP address.
123<tt>Service</tt> is an optional string with a service name or port number.
124</p>
125
126<p class="return">
127If <tt>host</tt> was given, returns a numerically-indexed table with the
128canonical host name found for each address the resolver returns for
129<tt>host</tt>. If <tt>service</tt> was also given, the canonical service
130name is returned as an additional value; if only <tt>service</tt> was
131given, its canonical name is returned by itself. In case of error, the
132function returns <b><tt>nil</tt></b> followed by an error message.
133</p>
134
109<!-- gethostname ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 135<!-- gethostname ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
110 136
111<p class="name" id="gethostname"> 137<p class="name" id="gethostname">