Networking Forums

Networking Forums > Computer Networking > Linux Networking > DNS zone file configuration question

Reply
Thread Tools Display Modes

DNS zone file configuration question

 
 
Greg Baumgratz
Guest
Posts: n/a

 
      02-18-2005, 04:33 PM
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?

Thanks,
Greg



 
Reply With Quote
 
 
 
 
ynotssor
Guest
Posts: n/a

 
      02-18-2005, 07:14 PM
"Greg Baumgratz" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)

> 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?


That's outside the realm of DNS possibility.

--
use hotmail for email replies
 
Reply With Quote
 
Andrei Ivanov
Guest
Posts: n/a

 
      02-18-2005, 07:20 PM
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
 
Reply With Quote
 
Greg Baumgratz
Guest
Posts: n/a

 
      02-21-2005, 02:09 PM
Thanks for the quick responses - this is actually what I ended up doing.
I just wondered if I was missing something that could be done another way.

~Greg



Andrei Ivanov wrote:
> 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.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
new DNS zone question Tester Linux Networking 0 04-26-2011 06:09 PM
Batch file that can set my AD-integrated zone to standard primary Spin Windows Networking 1 12-07-2005 04:12 PM
DNS zone file woes Salvador Peralta Linux Networking 1 12-05-2004 05:44 PM
DNS Newb Zone Transfer Question Phil Windows Networking 2 04-14-2004 09:22 PM
DNS Zone/Domain Newb question #2 Phil Windows Networking 1 04-06-2004 06:21 AM



1 2 3 4 5 6 7 8 9 10 11