[lug] Re: Virtual Hosting

Nate Duehr nate at natetech.com
Mon Mar 19 09:39:56 MST 2001


On Mon, Mar 19, 2001 at 01:16:51AM -0700, SoloCDM wrote:
> Nate Duehr stated the following:

> > If you want to save some time and all the servers use the same IP, leave
> > the $ORIGIN statement out of the zonefile and make a master file and
> > symlink your "real" domain names to that master.
> 
> Do you mean the "ln -s" command for symlink?

Yep.

If you have two zone files defined in your named.conf like such...
(This isn't how natetech.com is set up, just an example...)

zone natetech.com {
	type master;
	file "natetech.com";
};

zone natetech2.com {
	type master; 
	file "natetech2.com";
};

Then your filesystem has a file called "masterzone.file" and two
symlinks from "natetech.com" and "natetech2.com" pointing to
"masterzone.file" you can simply edit the "masterzone.file" and reload
both zones with "ndc reload natetech.com; ndc reload natetech2.com" when
changes happen.  Only works if both zones are exactly the same.

Just a thought that might save you some time if you have lots and lots
of domains that are exactly the same.

-- 
Nate Duehr <nate at natetech.com>

GPG Key fingerprint = DCAF 2B9D CC9B 96FA 7A6D AAF4 2D61 77C5 7ECE C1D2
Public Key available upon request, or at wwwkeys.pgp.net and others.



More information about the LUG mailing list