** Do not attempt to remove the file if it is not in the accept rules but
it is the output destination file.
+
+** Introduce `show_all_dns_entries' to print all IP addresses corresponding to
+ a DNS name when it is resolved.
\f
* Changes in Wget 1.12
2011-08-06 Giuseppe Scrivano <gscrivano@gnu.org>
+ * wget.texi (Wgetrc Commands): Document show_all_dns_entries.
+
* Makefile.am (wget.pod): Pass the VERSION value to texi2pod.
* texi2pod.pl: Update from GCC.
Choose whether or not to print the @sc{http} and @sc{ftp} server
responses---the same as @samp{-S}.
+@item show_all_dns_entries = on/off
+When a DNS name is resolved, show all the IP addresses, not just the first
+three.
+
@item span_hosts = on/off
Same as @samp{-H}.
2011-08-06 Giuseppe Scrivano <gscrivano@gnu.org>
+ * host.c (lookup_host): If `showalldnsentries' is used then print all
+ the IP corresponding to a DNS entry.
+ * init.c (commands): Add `showalldnsentries'.
+ Suggested by: Witold Baryluk <baryluk@smp.if.uj.edu.pl>
+
* http.c (gethttp): Add the Cache-Control HTTP header when --no-cache
is specified.
Reported by: Коренберг Марк <socketpair@gmail.com>.
#endif /* not ENABLE_IPV6 */
/* Print the addresses determined by DNS lookup, but no more than
- three. */
+ three if show_all_dns_entries is not specified. */
if (!silent && !numeric_address)
{
int i;
- int printmax = al->count <= 3 ? al->count : 3;
+ int printmax = al->count;
+
+ if (! opt.show_all_dns_entries)
+ printmax = 3;
+
for (i = 0; i < printmax; i++)
{
logputs (LOG_VERBOSE, print_address (al->addresses + i));
{ "secureprotocol", &opt.secure_protocol, cmd_spec_secure_protocol },
#endif
{ "serverresponse", &opt.server_response, cmd_boolean },
+ { "showalldnsentries", &opt.show_all_dns_entries, cmd_boolean },
{ "spanhosts", &opt.spanhost, cmd_boolean },
{ "spider", &opt.spider, cmd_boolean },
{ "strictcomments", &opt.strict_comments, cmd_boolean },
bool useservertimestamps; /* Update downloaded files' timestamps to
match those on server? */
+ bool show_all_dns_entries; /* Show all the DNS entries when resolving a
+ name. */
};
extern struct options opt;