[email protected] 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. -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer. Maintainer of GNU Wget and GNU Teseq http://micah.cowan.name/
