|
Lines 175-184
Link Here
|
| 175 |
res_init(); |
175 |
res_init(); |
| 176 |
_res.retrans = 5; |
176 |
_res.retrans = 5; |
| 177 |
|
177 |
|
| 178 |
if (c < 2) { |
|
|
| 179 |
fprintf(stderr, "Usage: host [-w] [-v] [-r] [-d] [-t querytype] [-c class] [-a] host [server]\n -w to wait forever until reply\n -v for verbose output\n -r to disable recursive processing\n -d to turn on debugging output\n -t querytype to look for a specific type of information\n -c class to look for non-Internet data\n -a is equivalent to '-v -t *'\n"); |
| 180 |
exit(1); |
| 181 |
} |
| 182 |
while (c > 2 && v[1][0] == '-') { |
178 |
while (c > 2 && v[1][0] == '-') { |
| 183 |
if (strcmp (v[1], "-w") == 0) { |
179 |
if (strcmp (v[1], "-w") == 0) { |
| 184 |
_res.retry = 1; |
180 |
_res.retry = 1; |
|
Lines 228-233
Link Here
|
| 228 |
c--; |
224 |
c--; |
| 229 |
} |
225 |
} |
| 230 |
} |
226 |
} |
|
|
227 |
if (c < 2) { |
| 228 |
fprintf(stderr, "Usage: host [-w] [-v] [-r] [-d] [-t querytype] [-c class] [-a] host [server]\n -w to wait forever until reply\n -v for verbose output\n -r to disable recursive processing\n -d to turn on debugging output\n -t querytype to look for a specific type of information\n -c class to look for non-Internet data\n -a is equivalent to '-v -t *'\n"); |
| 229 |
exit(1); |
| 230 |
} |
| 231 |
if (c > 2) { |
231 |
if (c > 2) { |
| 232 |
s = v[2]; |
232 |
s = v[2]; |
| 233 |
server_specified++; |
233 |
server_specified++; |