diff options
Diffstat (limited to 'tinydns-get.c')
-rw-r--r-- | tinydns-get.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tinydns-get.c b/tinydns-get.c index f7fd67f..56edb13 100644 --- a/tinydns-get.c +++ b/tinydns-get.c @@ -11,6 +11,7 @@ #include "printpacket.h" #include "parsetype.h" #include "ip4.h" +#include "ip6.h" #include "dns.h" extern int respond(char *,char *,char *); @@ -26,7 +27,7 @@ void oops(void) strerr_die2sys(111,FATAL,"unable to parse: "); } -static char ip[4]; +static char ip[16]; static char type[2]; static char *q; @@ -45,7 +46,7 @@ int main(int argc,char **argv) if (!dns_domain_fromdot(&q,*argv,str_len(*argv))) oops(); if (*++argv) { - if (!ip4_scan(*argv,ip)) usage(); + if (!ip6_scan(*argv,ip)) usage(); } if (!stralloc_copys(&out,"")) oops(); |