chiark
/
gitweb
/
~mdw
/
adns
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e3f575f
)
Support for reverse queries.
author
ian
<ian>
Sun, 10 Oct 1999 17:17:35 +0000
(17:17 +0000)
committer
ian
<ian>
Sun, 10 Oct 1999 17:17:35 +0000
(17:17 +0000)
client/adh-main.c
patch
|
blob
|
blame
|
history
client/adh-opts.c
patch
|
blob
|
blame
|
history
diff --git
a/client/adh-main.c
b/client/adh-main.c
index 7c43d1e6dce70798cdf98a474815bdd50997950e..855a258c9a2f874f42ace81c984dc89598b5aed2 100644
(file)
--- a/
client/adh-main.c
+++ b/
client/adh-main.c
@@
-104,5
+104,6
@@
int main(int argc, const char *const *argv) {
domain_do_arg(arg);
}
}
domain_do_arg(arg);
}
}
+ if (!ov_pipe && !ads) usageerr("no domains given, and -f/--pipe not used; try --help");
abort();
}
abort();
}
diff --git
a/client/adh-opts.c
b/client/adh-opts.c
index bc32ba9bb527c1c3ead985d9e3d30b72b2ae5f0f..03ba5bbfc28eecfa189f1f5ea20193cb01eb8e97 100644
(file)
--- a/
client/adh-opts.c
+++ b/
client/adh-opts.c
@@
-64,6
+64,8
@@
static const struct optioninfo perquery_options[]= {
{ ot_desconly, "per-query options:" },
{ ot_funcarg, "Query type (see below)",
"t", "type", 0,0, &of_type, "type" },
{ ot_desconly, "per-query options:" },
{ ot_funcarg, "Query type (see below)",
"t", "type", 0,0, &of_type, "type" },
+ { ot_funcarg, "Do reverse query (address -> name lookup)",
+ "i", "ptr", 0,0, &of_type, "addr" },
{ ot_desconly, "per-query binary options:" },
{ ot_flag, "Use the search list",
{ ot_desconly, "per-query binary options:" },
{ ot_flag, "Use the search list",
@@
-101,7
+103,7
@@
static const struct optioninfo perquery_options[]= {
{ ot_desconly, "asynchronous/pipe mode options:" },
{ ot_funcarg, "Set <id>, default is decimal sequence starting 0",
{ ot_desconly, "asynchronous/pipe mode options:" },
{ ot_funcarg, "Set <id>, default is decimal sequence starting 0",
-
"i", "asynch-id",
0,0, &of_asynch_id, "id" },
+
0, "asynch-id",
0,0, &of_asynch_id, "id" },
{ ot_funcarg, "Cancel the query with id <id>",
0, "cancel-id", 0,0, &of_cancel_id, "id" },
{ ot_funcarg, "Cancel the query with id <id>",
0, "cancel-id", 0,0, &of_cancel_id, "id" },
@@
-237,7
+239,8
@@
static void printusage(void) {
"Query types (see adns.h; default is addr):\n"
" ns soa ptr mx rp addr - enhanced versions\n"
" cname hinfo txt - types with only one version\n"
"Query types (see adns.h; default is addr):\n"
" ns soa ptr mx rp addr - enhanced versions\n"
" cname hinfo txt - types with only one version\n"
- " a ns- soa- ptr- mx- rp- - _raw versions\n",
+ " a ns- soa- ptr- mx- rp- - _raw versions\n"
+ "Default is addr, or ptr for -i/--ptr queries\n",
stdout);
if (ferror(stdout)) sysfail("write usage message",errno);
}
stdout);
if (ferror(stdout)) sysfail("write usage message",errno);
}