1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <meta name="GENERATOR" content="PasDoc 0.9.0">
|
---|
5 | <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
---|
6 | <title>dnssend</title>
|
---|
7 | <link rel="StyleSheet" type="text/css" href="pasdoc.css">
|
---|
8 | </head>
|
---|
9 | <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
|
---|
10 | <h1 class="unit">Unit dnssend</h1>
|
---|
11 | <table class="sections">
|
---|
12 | <tr>
|
---|
13 | <td><a class="section" href="#@Description">Description</a></td><td><a class="section" href="#@Uses">uses</a></td><td><a class="section" href="#@Classes">Classes, Interfaces, Objects and Records</a></td><td><a class="section" href="#@FuncsProcs">Functions and Procedures</a></td><td>Types</td><td><a class="section" href="#@Constants">Constants</a></td><td>Variables</td></tr></table>
|
---|
14 | <a name="@Description"></a><h2 class="description">Description</h2>
|
---|
15 | <p>
|
---|
16 | DNS client by UDP or TCP</p>
|
---|
17 | <p>
|
---|
18 | Support for sending DNS queries by UDP or TCP protocol. It can retrieve zone transfers too!
|
---|
19 |
|
---|
20 | <p>Used RFC: RFC-1035, RFC-1183, RFC1706, RFC1712, RFC2163, RFC2230</p>
|
---|
21 | <a name="@Uses"></a><h2 class="uses">uses</h2>
|
---|
22 | <ul class="useslist"><li>SysUtils</li><li>Classes</li><li><a href="blcksock.html">blcksock</a></li><li><a href="synautil.html">synautil</a></li><li><a href="synaip.html">synaip</a></li><li>synsock</li></ul><h2 class="overview">Overview</h2>
|
---|
23 | <a name="@Classes"></a><h3 class="cio">Classes, Interfaces, Objects and Records</h3>
|
---|
24 | <table class="classestable">
|
---|
25 | <tr class="listheader">
|
---|
26 | <th class="itemname">Name</th>
|
---|
27 | <th class="itemdesc">Description</th>
|
---|
28 | </tr>
|
---|
29 | <tr class="list">
|
---|
30 | <td class="itemname">Class <a class="bold" href="dnssend.TDNSSend.html"><code>TDNSSend</code></a></td>
|
---|
31 | <td class="itemdesc">Implementation of DNS protocol by UDP or TCP protocol.</td>
|
---|
32 | </tr>
|
---|
33 | </table>
|
---|
34 | <a name="@FuncsProcs"></a><h3 class="summary">Functions and Procedures</h3>
|
---|
35 | <table class="summary">
|
---|
36 | <tr class="list">
|
---|
37 | <td class="itemcode"><code>function <b><a href="dnssend.html#GetMailServers">GetMailServers</a></b>(const DNSHost, Domain: AnsiString; const Servers: TStrings): Boolean;</code></td>
|
---|
38 | </tr>
|
---|
39 | </table>
|
---|
40 | <a name="@Constants"></a><h3 class="summary">Constants</h3>
|
---|
41 | <table class="summary">
|
---|
42 | <tr class="list">
|
---|
43 | <td class="itemcode"><code><b><a href="dnssend.html#cDnsProtocol">cDnsProtocol</a></b> = '53';</code></td>
|
---|
44 | </tr>
|
---|
45 | <tr class="list2">
|
---|
46 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_A">QTYPE_A</a></b> = 1;</code></td>
|
---|
47 | </tr>
|
---|
48 | <tr class="list">
|
---|
49 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_NS">QTYPE_NS</a></b> = 2;</code></td>
|
---|
50 | </tr>
|
---|
51 | <tr class="list2">
|
---|
52 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_MD">QTYPE_MD</a></b> = 3;</code></td>
|
---|
53 | </tr>
|
---|
54 | <tr class="list">
|
---|
55 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_MF">QTYPE_MF</a></b> = 4;</code></td>
|
---|
56 | </tr>
|
---|
57 | <tr class="list2">
|
---|
58 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_CNAME">QTYPE_CNAME</a></b> = 5;</code></td>
|
---|
59 | </tr>
|
---|
60 | <tr class="list">
|
---|
61 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_SOA">QTYPE_SOA</a></b> = 6;</code></td>
|
---|
62 | </tr>
|
---|
63 | <tr class="list2">
|
---|
64 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_MB">QTYPE_MB</a></b> = 7;</code></td>
|
---|
65 | </tr>
|
---|
66 | <tr class="list">
|
---|
67 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_MG">QTYPE_MG</a></b> = 8;</code></td>
|
---|
68 | </tr>
|
---|
69 | <tr class="list2">
|
---|
70 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_MR">QTYPE_MR</a></b> = 9;</code></td>
|
---|
71 | </tr>
|
---|
72 | <tr class="list">
|
---|
73 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_NULL">QTYPE_NULL</a></b> = 10;</code></td>
|
---|
74 | </tr>
|
---|
75 | <tr class="list2">
|
---|
76 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_WKS">QTYPE_WKS</a></b> = 11;</code></td>
|
---|
77 | </tr>
|
---|
78 | <tr class="list">
|
---|
79 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_PTR">QTYPE_PTR</a></b> = 12;</code></td>
|
---|
80 | </tr>
|
---|
81 | <tr class="list2">
|
---|
82 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_HINFO">QTYPE_HINFO</a></b> = 13;</code></td>
|
---|
83 | </tr>
|
---|
84 | <tr class="list">
|
---|
85 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_MINFO">QTYPE_MINFO</a></b> = 14;</code></td>
|
---|
86 | </tr>
|
---|
87 | <tr class="list2">
|
---|
88 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_MX">QTYPE_MX</a></b> = 15;</code></td>
|
---|
89 | </tr>
|
---|
90 | <tr class="list">
|
---|
91 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_TXT">QTYPE_TXT</a></b> = 16;</code></td>
|
---|
92 | </tr>
|
---|
93 | <tr class="list2">
|
---|
94 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_RP">QTYPE_RP</a></b> = 17;</code></td>
|
---|
95 | </tr>
|
---|
96 | <tr class="list">
|
---|
97 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_AFSDB">QTYPE_AFSDB</a></b> = 18;</code></td>
|
---|
98 | </tr>
|
---|
99 | <tr class="list2">
|
---|
100 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_X25">QTYPE_X25</a></b> = 19;</code></td>
|
---|
101 | </tr>
|
---|
102 | <tr class="list">
|
---|
103 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_ISDN">QTYPE_ISDN</a></b> = 20;</code></td>
|
---|
104 | </tr>
|
---|
105 | <tr class="list2">
|
---|
106 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_RT">QTYPE_RT</a></b> = 21;</code></td>
|
---|
107 | </tr>
|
---|
108 | <tr class="list">
|
---|
109 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_NSAP">QTYPE_NSAP</a></b> = 22;</code></td>
|
---|
110 | </tr>
|
---|
111 | <tr class="list2">
|
---|
112 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_NSAPPTR">QTYPE_NSAPPTR</a></b> = 23;</code></td>
|
---|
113 | </tr>
|
---|
114 | <tr class="list">
|
---|
115 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_SIG">QTYPE_SIG</a></b> = 24;</code></td>
|
---|
116 | </tr>
|
---|
117 | <tr class="list2">
|
---|
118 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_KEY">QTYPE_KEY</a></b> = 25;</code></td>
|
---|
119 | </tr>
|
---|
120 | <tr class="list">
|
---|
121 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_PX">QTYPE_PX</a></b> = 26;</code></td>
|
---|
122 | </tr>
|
---|
123 | <tr class="list2">
|
---|
124 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_GPOS">QTYPE_GPOS</a></b> = 27;</code></td>
|
---|
125 | </tr>
|
---|
126 | <tr class="list">
|
---|
127 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_AAAA">QTYPE_AAAA</a></b> = 28;</code></td>
|
---|
128 | </tr>
|
---|
129 | <tr class="list2">
|
---|
130 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_LOC">QTYPE_LOC</a></b> = 29;</code></td>
|
---|
131 | </tr>
|
---|
132 | <tr class="list">
|
---|
133 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_NXT">QTYPE_NXT</a></b> = 30;</code></td>
|
---|
134 | </tr>
|
---|
135 | <tr class="list2">
|
---|
136 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_SRV">QTYPE_SRV</a></b> = 33;</code></td>
|
---|
137 | </tr>
|
---|
138 | <tr class="list">
|
---|
139 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_NAPTR">QTYPE_NAPTR</a></b> = 35;</code></td>
|
---|
140 | </tr>
|
---|
141 | <tr class="list2">
|
---|
142 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_KX">QTYPE_KX</a></b> = 36;</code></td>
|
---|
143 | </tr>
|
---|
144 | <tr class="list">
|
---|
145 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_SPF">QTYPE_SPF</a></b> = 99;</code></td>
|
---|
146 | </tr>
|
---|
147 | <tr class="list2">
|
---|
148 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_AXFR">QTYPE_AXFR</a></b> = 252;</code></td>
|
---|
149 | </tr>
|
---|
150 | <tr class="list">
|
---|
151 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_MAILB">QTYPE_MAILB</a></b> = 253;</code></td>
|
---|
152 | </tr>
|
---|
153 | <tr class="list2">
|
---|
154 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_MAILA">QTYPE_MAILA</a></b> = 254;</code></td>
|
---|
155 | </tr>
|
---|
156 | <tr class="list">
|
---|
157 | <td class="itemcode"><code><b><a href="dnssend.html#QTYPE_ALL">QTYPE_ALL</a></b> = 255;</code></td>
|
---|
158 | </tr>
|
---|
159 | </table>
|
---|
160 | <h2 class="description">Description</h2>
|
---|
161 | <h3 class="detail">Functions and Procedures</h3>
|
---|
162 | <table class="detail">
|
---|
163 | <tr class="list">
|
---|
164 | <td class="itemcode"><a name="GetMailServers"></a><code>function <b>GetMailServers</b>(const DNSHost, Domain: AnsiString; const Servers: TStrings): Boolean;</code></td>
|
---|
165 | </tr>
|
---|
166 | </table>
|
---|
167 | <p>
|
---|
168 | A very useful function, and example of it's use is found in the TDNSSend object. This function is used to get mail servers for a domain and sort them by preference numbers. "Servers" contains only the domain names of the mail servers in the right order (without preference number!). The first domain name will always be the highest preferenced mail server. Returns boolean <code>True</code> if all went well.</p>
|
---|
169 | <h3 class="detail">Constants</h3>
|
---|
170 | <table class="detail">
|
---|
171 | <tr class="list">
|
---|
172 | <td class="itemcode"><a name="cDnsProtocol"></a><code><b>cDnsProtocol</b> = '53';</code></td>
|
---|
173 | </tr>
|
---|
174 | </table>
|
---|
175 | <table class="detail">
|
---|
176 | <tr class="list">
|
---|
177 | <td class="itemcode"><a name="QTYPE_A"></a><code><b>QTYPE_A</b> = 1;</code></td>
|
---|
178 | </tr>
|
---|
179 | </table>
|
---|
180 | <table class="detail">
|
---|
181 | <tr class="list">
|
---|
182 | <td class="itemcode"><a name="QTYPE_NS"></a><code><b>QTYPE_NS</b> = 2;</code></td>
|
---|
183 | </tr>
|
---|
184 | </table>
|
---|
185 | <table class="detail">
|
---|
186 | <tr class="list">
|
---|
187 | <td class="itemcode"><a name="QTYPE_MD"></a><code><b>QTYPE_MD</b> = 3;</code></td>
|
---|
188 | </tr>
|
---|
189 | </table>
|
---|
190 | <table class="detail">
|
---|
191 | <tr class="list">
|
---|
192 | <td class="itemcode"><a name="QTYPE_MF"></a><code><b>QTYPE_MF</b> = 4;</code></td>
|
---|
193 | </tr>
|
---|
194 | </table>
|
---|
195 | <table class="detail">
|
---|
196 | <tr class="list">
|
---|
197 | <td class="itemcode"><a name="QTYPE_CNAME"></a><code><b>QTYPE_CNAME</b> = 5;</code></td>
|
---|
198 | </tr>
|
---|
199 | </table>
|
---|
200 | <table class="detail">
|
---|
201 | <tr class="list">
|
---|
202 | <td class="itemcode"><a name="QTYPE_SOA"></a><code><b>QTYPE_SOA</b> = 6;</code></td>
|
---|
203 | </tr>
|
---|
204 | </table>
|
---|
205 | <table class="detail">
|
---|
206 | <tr class="list">
|
---|
207 | <td class="itemcode"><a name="QTYPE_MB"></a><code><b>QTYPE_MB</b> = 7;</code></td>
|
---|
208 | </tr>
|
---|
209 | </table>
|
---|
210 | <table class="detail">
|
---|
211 | <tr class="list">
|
---|
212 | <td class="itemcode"><a name="QTYPE_MG"></a><code><b>QTYPE_MG</b> = 8;</code></td>
|
---|
213 | </tr>
|
---|
214 | </table>
|
---|
215 | <table class="detail">
|
---|
216 | <tr class="list">
|
---|
217 | <td class="itemcode"><a name="QTYPE_MR"></a><code><b>QTYPE_MR</b> = 9;</code></td>
|
---|
218 | </tr>
|
---|
219 | </table>
|
---|
220 | <table class="detail">
|
---|
221 | <tr class="list">
|
---|
222 | <td class="itemcode"><a name="QTYPE_NULL"></a><code><b>QTYPE_NULL</b> = 10;</code></td>
|
---|
223 | </tr>
|
---|
224 | </table>
|
---|
225 | <table class="detail">
|
---|
226 | <tr class="list">
|
---|
227 | <td class="itemcode"><a name="QTYPE_WKS"></a><code><b>QTYPE_WKS</b> = 11;</code></td>
|
---|
228 | </tr>
|
---|
229 | </table>
|
---|
230 | <table class="detail">
|
---|
231 | <tr class="list">
|
---|
232 | <td class="itemcode"><a name="QTYPE_PTR"></a><code><b>QTYPE_PTR</b> = 12;</code></td>
|
---|
233 | </tr>
|
---|
234 | </table>
|
---|
235 | <table class="detail">
|
---|
236 | <tr class="list">
|
---|
237 | <td class="itemcode"><a name="QTYPE_HINFO"></a><code><b>QTYPE_HINFO</b> = 13;</code></td>
|
---|
238 | </tr>
|
---|
239 | </table>
|
---|
240 | <table class="detail">
|
---|
241 | <tr class="list">
|
---|
242 | <td class="itemcode"><a name="QTYPE_MINFO"></a><code><b>QTYPE_MINFO</b> = 14;</code></td>
|
---|
243 | </tr>
|
---|
244 | </table>
|
---|
245 | <table class="detail">
|
---|
246 | <tr class="list">
|
---|
247 | <td class="itemcode"><a name="QTYPE_MX"></a><code><b>QTYPE_MX</b> = 15;</code></td>
|
---|
248 | </tr>
|
---|
249 | </table>
|
---|
250 | <table class="detail">
|
---|
251 | <tr class="list">
|
---|
252 | <td class="itemcode"><a name="QTYPE_TXT"></a><code><b>QTYPE_TXT</b> = 16;</code></td>
|
---|
253 | </tr>
|
---|
254 | </table>
|
---|
255 | <table class="detail">
|
---|
256 | <tr class="list">
|
---|
257 | <td class="itemcode"><a name="QTYPE_RP"></a><code><b>QTYPE_RP</b> = 17;</code></td>
|
---|
258 | </tr>
|
---|
259 | </table>
|
---|
260 | <table class="detail">
|
---|
261 | <tr class="list">
|
---|
262 | <td class="itemcode"><a name="QTYPE_AFSDB"></a><code><b>QTYPE_AFSDB</b> = 18;</code></td>
|
---|
263 | </tr>
|
---|
264 | </table>
|
---|
265 | <table class="detail">
|
---|
266 | <tr class="list">
|
---|
267 | <td class="itemcode"><a name="QTYPE_X25"></a><code><b>QTYPE_X25</b> = 19;</code></td>
|
---|
268 | </tr>
|
---|
269 | </table>
|
---|
270 | <table class="detail">
|
---|
271 | <tr class="list">
|
---|
272 | <td class="itemcode"><a name="QTYPE_ISDN"></a><code><b>QTYPE_ISDN</b> = 20;</code></td>
|
---|
273 | </tr>
|
---|
274 | </table>
|
---|
275 | <table class="detail">
|
---|
276 | <tr class="list">
|
---|
277 | <td class="itemcode"><a name="QTYPE_RT"></a><code><b>QTYPE_RT</b> = 21;</code></td>
|
---|
278 | </tr>
|
---|
279 | </table>
|
---|
280 | <table class="detail">
|
---|
281 | <tr class="list">
|
---|
282 | <td class="itemcode"><a name="QTYPE_NSAP"></a><code><b>QTYPE_NSAP</b> = 22;</code></td>
|
---|
283 | </tr>
|
---|
284 | </table>
|
---|
285 | <table class="detail">
|
---|
286 | <tr class="list">
|
---|
287 | <td class="itemcode"><a name="QTYPE_NSAPPTR"></a><code><b>QTYPE_NSAPPTR</b> = 23;</code></td>
|
---|
288 | </tr>
|
---|
289 | </table>
|
---|
290 | <table class="detail">
|
---|
291 | <tr class="list">
|
---|
292 | <td class="itemcode"><a name="QTYPE_SIG"></a><code><b>QTYPE_SIG</b> = 24;</code></td>
|
---|
293 | </tr>
|
---|
294 | </table>
|
---|
295 | <table class="detail">
|
---|
296 | <tr class="list">
|
---|
297 | <td class="itemcode"><a name="QTYPE_KEY"></a><code><b>QTYPE_KEY</b> = 25;</code></td>
|
---|
298 | </tr>
|
---|
299 | </table>
|
---|
300 | <table class="detail">
|
---|
301 | <tr class="list">
|
---|
302 | <td class="itemcode"><a name="QTYPE_PX"></a><code><b>QTYPE_PX</b> = 26;</code></td>
|
---|
303 | </tr>
|
---|
304 | </table>
|
---|
305 | <table class="detail">
|
---|
306 | <tr class="list">
|
---|
307 | <td class="itemcode"><a name="QTYPE_GPOS"></a><code><b>QTYPE_GPOS</b> = 27;</code></td>
|
---|
308 | </tr>
|
---|
309 | </table>
|
---|
310 | <table class="detail">
|
---|
311 | <tr class="list">
|
---|
312 | <td class="itemcode"><a name="QTYPE_AAAA"></a><code><b>QTYPE_AAAA</b> = 28;</code></td>
|
---|
313 | </tr>
|
---|
314 | </table>
|
---|
315 | <table class="detail">
|
---|
316 | <tr class="list">
|
---|
317 | <td class="itemcode"><a name="QTYPE_LOC"></a><code><b>QTYPE_LOC</b> = 29;</code></td>
|
---|
318 | </tr>
|
---|
319 | </table>
|
---|
320 | <table class="detail">
|
---|
321 | <tr class="list">
|
---|
322 | <td class="itemcode"><a name="QTYPE_NXT"></a><code><b>QTYPE_NXT</b> = 30;</code></td>
|
---|
323 | </tr>
|
---|
324 | </table>
|
---|
325 | <table class="detail">
|
---|
326 | <tr class="list">
|
---|
327 | <td class="itemcode"><a name="QTYPE_SRV"></a><code><b>QTYPE_SRV</b> = 33;</code></td>
|
---|
328 | </tr>
|
---|
329 | </table>
|
---|
330 | <table class="detail">
|
---|
331 | <tr class="list">
|
---|
332 | <td class="itemcode"><a name="QTYPE_NAPTR"></a><code><b>QTYPE_NAPTR</b> = 35;</code></td>
|
---|
333 | </tr>
|
---|
334 | </table>
|
---|
335 | <table class="detail">
|
---|
336 | <tr class="list">
|
---|
337 | <td class="itemcode"><a name="QTYPE_KX"></a><code><b>QTYPE_KX</b> = 36;</code></td>
|
---|
338 | </tr>
|
---|
339 | </table>
|
---|
340 | <table class="detail">
|
---|
341 | <tr class="list">
|
---|
342 | <td class="itemcode"><a name="QTYPE_SPF"></a><code><b>QTYPE_SPF</b> = 99;</code></td>
|
---|
343 | </tr>
|
---|
344 | </table>
|
---|
345 | <table class="detail">
|
---|
346 | <tr class="list">
|
---|
347 | <td class="itemcode"><a name="QTYPE_AXFR"></a><code><b>QTYPE_AXFR</b> = 252;</code></td>
|
---|
348 | </tr>
|
---|
349 | </table>
|
---|
350 | <table class="detail">
|
---|
351 | <tr class="list">
|
---|
352 | <td class="itemcode"><a name="QTYPE_MAILB"></a><code><b>QTYPE_MAILB</b> = 253;</code></td>
|
---|
353 | </tr>
|
---|
354 | </table>
|
---|
355 | <table class="detail">
|
---|
356 | <tr class="list">
|
---|
357 | <td class="itemcode"><a name="QTYPE_MAILA"></a><code><b>QTYPE_MAILA</b> = 254;</code></td>
|
---|
358 | </tr>
|
---|
359 | </table>
|
---|
360 | <table class="detail">
|
---|
361 | <tr class="list">
|
---|
362 | <td class="itemcode"><a name="QTYPE_ALL"></a><code><b>QTYPE_ALL</b> = 255;</code></td>
|
---|
363 | </tr>
|
---|
364 | </table>
|
---|
365 | <hr noshade size="1"><span class="appinfo"><em>Generated by <a target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.9.0</a> on 2012-04-23 21:38:50</em>
|
---|
366 | </span>
|
---|
367 | </body></html>
|
---|