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);