diff options
Diffstat (limited to 'dnsmxip.c')
| -rw-r--r-- | dnsmxip.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -28,13 +28,15 @@ char **argv; | |||
| 28 | { substdio_putsflush(subfderr,"out of memory\n"); _exit(111); } | 28 | { substdio_putsflush(subfderr,"out of memory\n"); _exit(111); } |
| 29 | 29 | ||
| 30 | r = now() + getpid(); | 30 | r = now() + getpid(); |
| 31 | dns_init(0); | ||
| 32 | dnsdoe(dns_mxip(&ia,&sa,r)); | 31 | dnsdoe(dns_mxip(&ia,&sa,r)); |
| 33 | for (j = 0;j < ia.len;++j) | 32 | for (j = 0;j < ia.len;++j) |
| 34 | { | 33 | { |
| 35 | substdio_put(subfdout,temp,ip_fmt(temp,&ia.ix[j].ip)); | 34 | substdio_put(subfdout,temp,ip_fmt(temp,&ia.ix[j].ip)); |
| 36 | substdio_puts(subfdout," "); | 35 | substdio_puts(subfdout," "); |
| 37 | substdio_put(subfdout,temp,fmt_ulong(temp,(unsigned long) ia.ix[j].pref)); | 36 | substdio_put(subfdout,temp,fmt_ulong(temp,(unsigned long) ia.ix[j].pref)); |
| 37 | #ifdef TLS | ||
| 38 | substdio_puts(subfdout,ia.ix[j].validated ? " validated" : ""); | ||
| 39 | #endif | ||
| 38 | substdio_putsflush(subfdout,"\n"); | 40 | substdio_putsflush(subfdout,"\n"); |
| 39 | } | 41 | } |
| 40 | _exit(0); | 42 | _exit(0); |
