diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-16 15:26:57 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-16 15:26:57 +0100 |
commit | 1c4f90e7c538f1489ea17be3d2f655c2390d7ccf (patch) | |
tree | 9a8dc8245d1ffe456076cc8612754d0d9dd7298f /src/gns/gnunet-dns2gns.c | |
parent | 04a46ba5acf180be6f3a7d85cd6f6ce0ff13b1ba (diff) | |
download | gnunet-1c4f90e7c538f1489ea17be3d2f655c2390d7ccf.tar.gz gnunet-1c4f90e7c538f1489ea17be3d2f655c2390d7ccf.zip |
porting gnunet-publish + others..
Diffstat (limited to 'src/gns/gnunet-dns2gns.c')
-rw-r--r-- | src/gns/gnunet-dns2gns.c | 48 |
1 files changed, 32 insertions, 16 deletions
diff --git a/src/gns/gnunet-dns2gns.c b/src/gns/gnunet-dns2gns.c index 813ecdf8e..c9b4bde9c 100644 --- a/src/gns/gnunet-dns2gns.c +++ b/src/gns/gnunet-dns2gns.c | |||
@@ -776,22 +776,38 @@ int | |||
776 | main (int argc, | 776 | main (int argc, |
777 | char *const *argv) | 777 | char *const *argv) |
778 | { | 778 | { |
779 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 779 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
780 | {'d', "dns", "IP", | 780 | |
781 | gettext_noop ("IP of recursive DNS resolver to use (required)"), 1, | 781 | GNUNET_GETOPT_OPTION_STRING ('d', |
782 | &GNUNET_GETOPT_set_string, &dns_ip}, | 782 | "dns", |
783 | {'f', "fcfs", "NAME", | 783 | "IP", |
784 | gettext_noop ("Authoritative FCFS suffix to use (optional); default: fcfs.zkey.eu"), 1, | 784 | gettext_noop ("IP of recursive DNS resolver to use (required)"), |
785 | &GNUNET_GETOPT_set_string, &fcfs_suffix}, | 785 | &dns_ip), |
786 | {'s', "suffix", "SUFFIX", | 786 | |
787 | gettext_noop ("Authoritative DNS suffix to use (optional); default: zkey.eu"), 1, | 787 | GNUNET_GETOPT_OPTION_STRING ('f', |
788 | &GNUNET_GETOPT_set_string, &dns_suffix}, | 788 | "fcfs", |
789 | {'p', "port", "UDPPORT", | 789 | "NAME", |
790 | gettext_noop ("UDP port to listen on for inbound DNS requests; default: 2853"), 1, | 790 | gettext_noop ("Authoritative FCFS suffix to use (optional); default: fcfs.zkey.eu"), |
791 | &GNUNET_GETOPT_set_uint, &listen_port}, | 791 | &fcfs_suffix), |
792 | {'z', "zone", "PUBLICKEY", | 792 | |
793 | gettext_noop ("Public key of the GNS zone to use (overrides default)"), 1, | 793 | GNUNET_GETOPT_OPTION_STRING ('s', |
794 | &GNUNET_GETOPT_set_string, &gns_zone_str}, | 794 | "suffix", |
795 | "SUFFIX", | ||
796 | gettext_noop ("Authoritative DNS suffix to use (optional); default: zkey.eu"), | ||
797 | &dns_suffix), | ||
798 | |||
799 | GNUNET_GETOPT_OPTION_SET_UINT ('p', | ||
800 | "port", | ||
801 | "UDPPORT", | ||
802 | gettext_noop ("UDP port to listen on for inbound DNS requests; default: 2853"), | ||
803 | &listen_port), | ||
804 | |||
805 | GNUNET_GETOPT_OPTION_STRING ('z', | ||
806 | "zone", | ||
807 | "PUBLICKEY", | ||
808 | gettext_noop ("Public key of the GNS zone to use (overrides default)"), | ||
809 | &gns_zone_str), | ||
810 | |||
795 | GNUNET_GETOPT_OPTION_END | 811 | GNUNET_GETOPT_OPTION_END |
796 | }; | 812 | }; |
797 | int ret; | 813 | int ret; |