12 char temp[IPFMT + FMT_ULONG];
24 if (!argv[1]) _exit(100);
26 if (!stralloc_copys(&sa,argv[1]))
27 { substdio_putsflush(subfderr,"out of memory\n"); _exit(111); }
31 dnsdoe(dns_mxip(&ia,&sa,r));
32 for (j = 0;j < ia.len;++j)
34 substdio_put(subfdout,temp,ip_fmt(temp,&ia.ix[j].ip));
35 substdio_puts(subfdout," ");
36 substdio_put(subfdout,temp,fmt_ulong(temp,(unsigned long) ia.ix[j].pref));
37 substdio_putsflush(subfdout,"\n");