CNAME as @ line

Joseph S D Yao jsdy at cospo.osis.gov
Mon Aug 13 23:16:22 UTC 2001


On Mon, Aug 13, 2001 at 02:16:36PM -0700, Jerry wrote:
> Hm. The problem I am trying to solve is where i need
> to create some new zones with various mispellings of a
> company name.  I wanted each of those @ lines for the
> mispellings to point to a CNAME so that I could change
> the CNAME at a later point in time without having to
> change all the @ lines.  As it is now I hard coded it
> to an ip which sucks because if they request to change
> the ip of the webserver I have to edit all those files
> (20 or more sometimes).  Any ideas?

Use the same zone file for all misspellings, and have different zone
declarations in /etc/named.conf, if I understand correctly what you're
trying to do.

If I don't, then use 'vi':

	:g/^@<TAB>/s/old.ip.add.ress/new.ip.add.ress/

-- 
Joe Yao				jsdy at cospo.osis.gov - Joseph S. D. Yao
OSIS Center Computer Support					EMT-B
-----------------------------------------------------------------------
This message is not an official statement of COSPO policies.


More information about the bind-users mailing list