From 04487efe96c1a65714a2bde6dd94d278d0fcf90e Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Thu, 12 Jul 2007 13:23:44 +0000 Subject: [PATCH] #23 updated manpage and log row --- man/iodine.8 | 5 ++++- src/iodine.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/man/iodine.8 b/man/iodine.8 index c14e76c..3720a50 100644 --- a/man/iodine.8 +++ b/man/iodine.8 @@ -16,7 +16,9 @@ iodine, iodined \- tunnel IPv4 over DNS .B ] [-d .I device .B ] +.B [ .I nameserver +.B ] .I topdomain .B iodined [-v] @@ -93,7 +95,8 @@ You must make sure the dns requests are forwarded to this port yourself. .B nameserver The nameserver to use to relay the dns traffic. This can be any relaying nameserver or the ip number of the server running iodined if reachable. -Normally, you should specify a nameserver from your +This argument is optional, and if not specified a nameserver will be read +from the .I /etc/resolv.conf file. .TP diff --git a/src/iodine.c b/src/iodine.c index c3ea324..2fd9427 100644 --- a/src/iodine.c +++ b/src/iodine.c @@ -717,7 +717,7 @@ main(int argc, char **argv) if(handshake(dns_fd)) goto cleanup2; - printf("Sending queries for %s to %s\n", argv[1], argv[0]); + printf("Sending queries for %s to %s\n", topdomain, nameserv_addr); do_chroot(newroot);