]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
docjes
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Tue, 13 Jun 2006 08:27:17 +0000 (08:27 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Tue, 13 Jun 2006 08:27:17 +0000 (08:27 +0000)
doc/overview
doc/overview.dox
doc/tutorial1_mx.dox
ldns/zone.h

index 9dc233643cc62a7beaffc5de1dcc0d6a7f65861a..4fd86d5972fa9a3c1f2eeb94a672a90af2d17163 100644 (file)
@@ -65,14 +65,14 @@ o TSIG functionality
 o Dynamic update function
 
 
-3. CENTRAL structures
+3. Central structures
 
-nlnetlabs.nl.   600     IN      MX      10    open.nlnetlabs.nl.
- \              \       \       \       \_                  _/
-   _owner        _ttl    _klass   _type    \_  rdf[]      _/
+nlnetlabs.nl.   600     IN      MX           10    open.nlnetlabs.nl.
+ \              \       \       \            \_                  _/
+   _owner        _ttl    _klass   _type        \_   rdf[]      _/
   (rdf)     (uint16_t) (rr_class) (rr_type)
-                                           10          := rdf[0]
-                                    open.nlnetlabs.nl. := rdf[1]
+                                                 10          := rdf[0]
+                                                 open.nlnetlabs.nl. := rdf[1]
 
 * rdf structure:
 The LHS is put in a rdf structure, which is a normal rdf but always has the
index d7a0fb7e2d8daffb0d18ac62c4ef1999b30a40fb..8fb98b7621f9c13cdb2354f622904bd69943ace8 100644 (file)
@@ -7,7 +7,7 @@ functionality.
 
 \section central_structures Central structures
 
-  - \ref ldns_pkt A DNS Packet, that can contain a qeury, answers, and additional information.
+  - \ref ldns_pkt A DNS Packet, which can contain a qeury, answers, and additional information.
   - \ref ldns_rr A Resource Record, which holds a bit of information about a specific domain name.
   - \ref ldns_rdf An RDATA field, every Resource Record contains one or more RDATA fields, depending on the type of RR. These are the 'basic types' of DNS data.
   - \ref ldns_rr_list A list of resource records
@@ -17,19 +17,19 @@ functionality.
 A DNS Resource record looks like this:
 
 <pre>
-nlnetlabs.nl.   600     IN      MX      10    open.nlnetlabs.nl.
- \              \       \       \       \                     /
-  owner          ttl     class   type    \        rdf[]      /
+nlnetlabs.nl.   600     IN      MX             10    open.nlnetlabs.nl.
+ \              \       \       \              \                     /
+  owner          ttl     class   type           \        rdf[]      /
   (rdf)     (uint16_t) (rr_class) (rr_type)
-                                                10          := rdf[0]
-                                                open.nlnetlabs.nl. := rdf[1]
+                                                 10          := rdf[0]
+                                                 open.nlnetlabs.nl. := rdf[1]
 </pre>
 
 * Owner:
 The owner name is put in an \c ldns_rdf structure, which is a normal rdata field but always
 has the type LDNS_RDF_TYPE_DNAME.
 
-An \ref ldns_rdf structure has 3 members; the size, the type is carrying and a void *
+An \ref ldns_rdf structure has 3 members; the size, the type of rdata and a void *
 pointer to the data. The data is always in uncompressed wireformat.
 
 The RSH (rdata) is put in an array of rdf's (in this case 2).
@@ -46,12 +46,12 @@ the fields described above (under the RR):
                 - rdf[1]  (open.nlnetlabs.nl.)
 
 * RR list structure:
-An RR list structure is simply structure with a counter
+An RR list structure is simply structure with a counter
 and an array of RR structures. Different kinds of RR's can
 be grouped together this way.
 
-* RR set structure
-An RR set structure is an RR list structure, but its accessor
+* RRset structure
+An RRset structure is an RR list structure, but its accessor
 function checks if the \c ldns_rr structures in there are: 
  - from the same type
  - have the same TTL
index 8e3e0109d3045b14638ad5eaa1d8802b50ebc494..42219807e31a33f86e1deadb1d244bf188ddb7c9 100644 (file)
@@ -29,7 +29,7 @@
 
    - The \c ldns_resolver structure keeps a list of nameservers, and can perform queries for us
    - An \c ldns_rdf is a basic data type of dns, the RDATA. See \ref overview for a description about the building blocks of DNS.
-     \c domain will contain the name the user specifies when calling the program
+     In this case, \c domain will be used to store the name the user specifies when calling the program
    - An \c ldns_pkt is a DNS packet, for instance a complete query, or an answer
    - The \c ldns_rr_list structure contains a list of DNS Resource Records (RRs). In this case, we will store the MX records we find in the list.
    - \c ldns_status is the basic type for status messages in ldns. Most functions will return a value of this type.
    \skipline ldns_resolver_query
    \until )
 
+   The last argument contains flags to influence the type of query the
+   resolver structure sends. In this case, we want the nameserver to use
+   recursion, so that we'll get the final answer. Therefore, we specify the
+   \ref LDNS_RD (Recursion Desired) flag.
+
    This should return a packet if everything goes well.
 
    We get all RRs of type MX from the answer packet and store them in our list:
index 032f06c5e892003ddf9f6f878602eb333733dece..a1890549e5b770a6d57a8a6b84220c444cbf839a 100644 (file)
@@ -26,7 +26,7 @@
  *
  * A list of RR's with some
  * extra information which comes from the SOA RR
- * Note: nothing is done to make this efficient (yet).
+ * Note: nothing has been done to make this efficient (yet).
  */
 struct ldns_struct_zone
 {