wget not resolving domain names

Derek Martin code at pizzashack.org
Sun Nov 6 01:09:11 UTC 2005


On Sat, Nov 05, 2005 at 11:20:05PM +1030, Tim wrote:
> > But this can also be accomplished by using an A record that points to
> > 10.0.0.1 instead of the CNAME...
> 
> I think that the usefulness of Paul's example is that you can change the
> machine acting as "myserver" with one record change (the A record for
> "myserver".  Alternatively, if you made all the next three records "A"
> records with the same IP address, you'd need to change all of them.

Oh, come now...

If this is genuinely a problem for you, then you need to spend some
time learning how to use your favorite editor, or find a better one...
If the records are all in the same zone, as in Paul's example, almost
any editor can search-and-replace all instances of the IP address
quite simply.  With vi(m), this will do it:

:%s/<old IP>/<new IP>/g

[You may need to remember to quote the '.' characters in the IP
address to guarantee an exact match.  I can't remember if vi supports
the '%' address range or not, but if it doesn't, you can replace it
with "1,$"]

If your site is so dynamic that you find yourself doing this quite
often, and/or it needs to be done across many zone files, then you
should keep a little sed script (or equivalent) to do it for you.
I can write a shell script to do this for you in a handfull of
lines...  I'd be happy to provide it if you like.  :)

> Of course, if you hadn't used domain names (harping on about a prior
> thread), and configured all your clients with IP addresses, you'd have
> to configure all the other machines when you changed a server.  ;-\

I'm reluctant to respond to this because you've taken the point
of that thread totally out of context.  That said, on the client side,
if one were to use IP addresses only (and by the way, I only suggested
that once, totally as a joke) the only configuration that needs
changing is the user's brain...  ;-)

[The entire remainder of that thread, save that one line I wrote as a
joke, was about whether there was any technical requirement to use
FQDNs.  You can use host names without using FQDNs -- using only IPs
is not the only alternative.  Let's not rehash the practicalities and
ramifications of that again, shall we?]

-- 
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051105/f65a79ac/attachment-0001.sig>


More information about the fedora-list mailing list