summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJelte Jansen <jeltejan@NLnetLabs.nl>2006-06-09 10:57:27 +0200
committerJelte Jansen <jeltejan@NLnetLabs.nl>2006-06-09 10:57:27 +0200
commit2a3990394e24197200c201f0049dcff928777872 (patch)
treeaee1ae881d6e434e969b4cad714864840501e83a /examples
parent981f0dc4ea7768661bafdee7814d04c5de6821dd (diff)
downloadldns-2a3990394e24197200c201f0049dcff928777872.tar.gz
better comments at start of examples
Diffstat (limited to 'examples')
-rw-r--r--examples/ldns-chaos.c1
-rw-r--r--examples/ldns-dpa.c10
-rw-r--r--examples/ldns-ixfr.c3
-rw-r--r--examples/ldns-key2ds.c3
-rw-r--r--examples/ldns-keyfetcher.c2
-rw-r--r--examples/ldns-keygen.c3
-rw-r--r--examples/ldns-notify.c4
-rw-r--r--examples/ldns-read-zone.c2
-rw-r--r--examples/ldns-resolver.c8
-rw-r--r--examples/ldns-rrsig.c4
-rw-r--r--examples/ldns-signzone.c9
-rw-r--r--examples/ldns-version.c4
-rw-r--r--examples/ldns-walk.c1
13 files changed, 42 insertions, 12 deletions
diff --git a/examples/ldns-chaos.c b/examples/ldns-chaos.c
index 507a3c27..f4467b2f 100644
--- a/examples/ldns-chaos.c
+++ b/examples/ldns-chaos.c
@@ -1,6 +1,7 @@
/*
* chaos is a small programs that prints some information
* about a nameserver
+ *
* (c) NLnet Labs, 2005
*
* See the file LICENSE for the license
diff --git a/examples/ldns-dpa.c b/examples/ldns-dpa.c
index 18fe2052..7a7d3f70 100644
--- a/examples/ldns-dpa.c
+++ b/examples/ldns-dpa.c
@@ -1,3 +1,13 @@
+/*
+ * ldns-dpa inspects the (udp) DNS packets found in a pcap file
+ * and provides statistics about them
+ *
+ * (C) NLnet Labs 2006
+ *
+ * See the file LICENSE for the license
+ */
+
+
#include "config.h"
#include <ldns/dns.h>
diff --git a/examples/ldns-ixfr.c b/examples/ldns-ixfr.c
index 7e4906ec..0f573571 100644
--- a/examples/ldns-ixfr.c
+++ b/examples/ldns-ixfr.c
@@ -1,6 +1,7 @@
/*
* mx is a small programs that prints out the mx records
- * for a particulary domain
+ * for a particular domain
+ *
* (c) NLnet Labs, 2005
* See the file LICENSE for the license
*/
diff --git a/examples/ldns-key2ds.c b/examples/ldns-key2ds.c
index 939542a8..967ed863 100644
--- a/examples/ldns-key2ds.c
+++ b/examples/ldns-key2ds.c
@@ -1,6 +1,7 @@
/*
* key2ds transforms a public key into its DS
- * for a particulary domain. It (currently) prints out the public key
+ * It (currently) prints out the public key
+ *
* (c) NLnet Labs, 2005
* See the file LICENSE for the license
*/
diff --git a/examples/ldns-keyfetcher.c b/examples/ldns-keyfetcher.c
index 09245b56..cea7130f 100644
--- a/examples/ldns-keyfetcher.c
+++ b/examples/ldns-keyfetcher.c
@@ -1,8 +1,8 @@
/*
* ldns-keyfetcher retrieves the DNSKEYS for a certain domain
- * for a particulary domain
* It traces the authoritatives nameservers down from the root
* And uses TCP, to minimize spoofing danger.
+ *
* (c) NLnet Labs, 2006
* See the file LICENSE for the license
*/
diff --git a/examples/ldns-keygen.c b/examples/ldns-keygen.c
index 05de52fd..4f202282 100644
--- a/examples/ldns-keygen.c
+++ b/examples/ldns-keygen.c
@@ -1,6 +1,7 @@
/*
* keygen is a small programs that generate a dnskey and private key
- * for a particulary domain. It (currently) prints out the public key
+ * for a particular domain.
+ *
* (c) NLnet Labs, 2005
* See the file LICENSE for the license
*/
diff --git a/examples/ldns-notify.c b/examples/ldns-notify.c
index 6b62f288..e96914f6 100644
--- a/examples/ldns-notify.c
+++ b/examples/ldns-notify.c
@@ -1,6 +1,6 @@
/*
- * mx is a small programs that prints out the mx records
- * for a particulary domain
+ * Example notify
+ *
* (c) NLnet Labs, 2005
* See the file LICENSE for the license
*/
diff --git a/examples/ldns-read-zone.c b/examples/ldns-read-zone.c
index af6a71c2..6992eeca 100644
--- a/examples/ldns-read-zone.c
+++ b/examples/ldns-read-zone.c
@@ -1,5 +1,5 @@
/*
- * read a zone file from disk and print it
+ * read a zone file from disk and prints it, one RR per line
*
* See the file LICENSE for the license
*/
diff --git a/examples/ldns-resolver.c b/examples/ldns-resolver.c
index ade28115..7b2b5c54 100644
--- a/examples/ldns-resolver.c
+++ b/examples/ldns-resolver.c
@@ -1,3 +1,11 @@
+/*
+ * ldns-resolver tries to create a resolver structure from /dev/urandom
+ * this is only useful to test the library for robusteness with input data
+ *
+ * (c) NLnet Labs 2006
+ * See the file LICENSE for the license
+ */
+
#include "config.h"
#include <ldns/dns.h>
diff --git a/examples/ldns-rrsig.c b/examples/ldns-rrsig.c
index 888ab86c..320fc7a2 100644
--- a/examples/ldns-rrsig.c
+++ b/examples/ldns-rrsig.c
@@ -1,5 +1,7 @@
/*
- * mx is a small programs that prints out the mx records
+ * ldns-rrsig prints out the inception and expiration dates in a more readable
+ * way than the normal RRSIG presentation format
+ *
* for a particulary domain
* (c) NLnet Labs, 2005
* See the file LICENSE for the license
diff --git a/examples/ldns-signzone.c b/examples/ldns-signzone.c
index e5390346..65c3fcf5 100644
--- a/examples/ldns-signzone.c
+++ b/examples/ldns-signzone.c
@@ -1,11 +1,16 @@
/*
- * signzone signs a zone file
+ * ldns-signzone signs a zone file
+ *
* for a particulary domain
* (c) NLnet Labs, 2005
* See the file LICENSE for the license
*/
-#include "config.h"
+/*#include "config.h"*/
+#include <stdint.h>
+#include <stdlib.h>
+#include <unistd.h>
+
#include <errno.h>
#include <time.h>
diff --git a/examples/ldns-version.c b/examples/ldns-version.c
index 23f08280..43255a53 100644
--- a/examples/ldns-version.c
+++ b/examples/ldns-version.c
@@ -1,6 +1,6 @@
/*
- * version. Show ldns's version
- * for a particulary domain
+ * ldns-version shows ldns's version
+ *
* (c) NLnet Labs, 2005
* See the file LICENSE for the license
*/
diff --git a/examples/ldns-walk.c b/examples/ldns-walk.c
index 3884c371..64b7f937 100644
--- a/examples/ldns-walk.c
+++ b/examples/ldns-walk.c
@@ -1,6 +1,7 @@
/*
* ldns-walk uses educated guesses and NSEC data to retrieve the
* contents of a dnssec signed zone
+ *
* (c) NLnet Labs, 2005
* See the file LICENSE for the license
*/