Greg Baumgratz <(E-Mail Removed)> wrote:
> I am trying to do something out of the ordinary from what I usually do.
> When I set up address records, they point to ip addresses such as:
>
> www A 10.0.0.1
>
> Let say, off site, someone has a web page set up at 1.2.3.4/~accountname
> and I want to set up the www address record in the zone file to point to
> this. Can this be done?
Not in DNS.
You can create DNS-record for new virtual web server
www.domain.tld. IN A 10.0.0.1
name.domain.tld. IN CNAME
www.domain.tld.
and then on the "www" host create virtual web server, which will
send just HTTP-redirect's:
Host: www
File: /etc/httpd/httpd.conf
<VirtualHost *:80>
ServerName name.domain.tld
ServerPath /name/
RedirectPermanent /
http://1.2.3.4/~accountname/
</VirtualHost>
Users will use
http://name.domain.tld/ URL for initial connection.
--
andrei