bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Feature Request or How To Request


From: address@hidden
Subject: Re: [Bug-wget] Feature Request or How To Request
Date: Wed, 25 Nov 2009 20:17:21 -0500
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hi Micah,

this could be one very good way to do it.
I would also like to see the same option / s on the wget command line.
eg:

--dns-server-one=99.88.77.66 --dns-server-two=99.88.77.55

That way it can all be dynamic / adaptable from the command line.

extract from "resolve.conf" man:

*nameserver* Name server IP address
   Internet address (in dot notation) of a name server that the
   resolver should query. Up to MAXNS (currently 3, see <resolv.h
   <http://linux.die.net/include/resolv.h>>) name servers may be
   listed, one per keyword. If there are multiple servers, the resolver
   library queries them in the order listed. If no *nameserver* entries
   are present, the default is to use the name server on the local
   machine. (The algorithm used is to try a name server, and if the
   query times out, try the next, until out of name servers, then
   repeat trying all the name servers until a maximum number of retries
are made.)

Micah Cowan wrote:
address@hidden wrote:
Hi Everybody.

I would like to use wget in the following way:

wget --spider http://www.mydomain.com:9080/ --no-dns-cache
--dns-server-one=99.88.77.66
wget --spider http://www.mydomain.com:9080/ --no-dns-cache
--dns-server-one=99.88.77.66 --dns-server-two=99.88.77.55

So that wget can resolve the domain name and cname / address from
another DNS server, just in case the local server WGET is running on
has mirrored or backup or alternative DNS records, that also might
contain the www.mydomain.com, but given the actual TEST case the
www.mydomain.com is not the actual intended test server.  The remote DNS
server will have the appropriate www / address / cname record.

If you have root access, you can of course just modify /etc/resolv.conf.

Wget doesn't do anything fancy, just uses the system library name-lookup
routines.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]