linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dns config for virtual hosts
@ 2003-04-18 21:17 J. S. Weeks
  2003-04-18 22:02 ` Mikel Bauer
  2003-04-20 15:37 ` terry white
  0 siblings, 2 replies; 3+ messages in thread
From: J. S. Weeks @ 2003-04-18 21:17 UTC (permalink / raw)
  To: linux-admin

hello all!

I am preparing my http server to host virtual domains
and I'm unsure of how the (dns) zone files for each
domain will be accessed by those who wish to go to the
domains.  I have only set up dns for internal networks
and haven't found documentation that helps me out.

Am I supposed to have a zone file that is for my
external ip address (not the range but the full
address)?  How do other (not mine )dns servers catch
on to major zone file changes such as ip address
changes?

Thanks in advance for your help--I apologize if I
phrased my questions incoherently.  btw I'm running
the newest flavor of bind 9 and apache2 on a redhat 8
machine.

--dobro

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dns config for virtual hosts
  2003-04-18 21:17 dns config for virtual hosts J. S. Weeks
@ 2003-04-18 22:02 ` Mikel Bauer
  2003-04-20 15:37 ` terry white
  1 sibling, 0 replies; 3+ messages in thread
From: Mikel Bauer @ 2003-04-18 22:02 UTC (permalink / raw)
  To: J. S. Weeks; +Cc: linux-admin

Virtual Hosting requires no special configuration dns side, except 
pointing the domains to the correct IP address that your web server is 
listening on.

For example:

rtfm.com SOA
www   66.66.66.66 ; ip address of the web server in question

seconddom.com SOA
www   66.66.66.66 ; same ip address

these would point to something like (assuming NameVirtualHost *):
<VirtualHost *>
....
ServerName www.rtfm.com
....
</VirtualHost>
<VirtualHost *>
....
ServerName www.seconddom.com
....
</VirtualHost>

You can even throw aliases in there, I like to name the server as the 
base domain, and alias the www

ServerName rtfm.com
ServerAlias www.rtfm.com rtfm.com

Virtual Hosting (aka name based hosting) used the name to see what 
virtualhost entry to be using, assuming proper web server configuration.

- Mikel Bauer -

J. S. Weeks wrote:
> hello all!
> 
> I am preparing my http server to host virtual domains
> and I'm unsure of how the (dns) zone files for each
> domain will be accessed by those who wish to go to the
> domains.  I have only set up dns for internal networks
> and haven't found documentation that helps me out.
> 
> Am I supposed to have a zone file that is for my
> external ip address (not the range but the full
> address)?  How do other (not mine )dns servers catch
> on to major zone file changes such as ip address
> changes?
> 
> Thanks in advance for your help--I apologize if I
> phrased my questions incoherently.  btw I'm running
> the newest flavor of bind 9 and apache2 on a redhat 8
> machine.
> 
> --dobro
> 
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dns config for virtual hosts
  2003-04-18 21:17 dns config for virtual hosts J. S. Weeks
  2003-04-18 22:02 ` Mikel Bauer
@ 2003-04-20 15:37 ` terry white
  1 sibling, 0 replies; 3+ messages in thread
From: terry white @ 2003-04-20 15:37 UTC (permalink / raw)
  To: linux-admin

on "4-18-2003" "J. S. Weeks" writ:

[ befor i start: given the scope , and intended purpose of the question,
using a *.yahoo.com mail account is not an intuitive match. ]

: I'm unsure of how the (dns) zone files for each domain will be accessed
: by those who wish to go to the domains.

... first of all, YOU have to be assigned the 'authorative' nameserver
for any domain you wish to host.  dependant upon the registrar you have
to use, milage guaranteed to vary.  it is then your responsibility to
assign a 'secondary' (slave) nameserver for each of those domains.

    when a dns request is made for any domain you host, YOU provide the
'authoritive' information about it.  so, ultimately, all requests come to
you.  changes you make, should propogate through your dns network.  i
will mention that 'slinging around' ip addresses not know to be good
proctice.


:I have only set up dns for internal networks and haven't found
:documentation that helps me out.

    let me suggest "DNS-HOWTO.html" ...

        ( find / -name DNS-HOWTO.html -print )


: Am I supposed to have a zone file that is for my
: external ip address (not the range but the full
: address)?  How do other (not mine )dns servers catch
: on to major zone file changes such as ip address
: changes?

    you will end up with zone file(s) for each domain you host.  once
again i suggest reading the above mentioned text ...


-- 
... i'm a man, but i can change,
    if i have to , i guess ...


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-20 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-18 21:17 dns config for virtual hosts J. S. Weeks
2003-04-18 22:02 ` Mikel Bauer
2003-04-20 15:37 ` terry white

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).