[svlug] Re: virtual domain names inside the LAN

Daevid Vincent daevid at daevid.com
Tue Aug 27 15:06:31 PDT 2002

Thank you for that descriptive reply.

Now in my /etc/hosts file, what should I put for all my virutal domains?

It currently looks like this:
# Do not remove the following line, or various programs
# that require network functionality will fail.               daevid localhost.localdomain localhost

I have for example, "daevid.com", "daevid.net", "daevid.org",
"marq.org", "theOctane.com", "vrtradeshows.com" and a bunch more (28
virtual domains in total actually).

And will it know that "www.vrtradeshows.com" is the same as
"vrtradeshows.com" or do I have to explicitly put them both?

The linux box is assigned as the LAN IP.

> -----Original Message-----
> From: svlug-bounces+daevid=daevid.com at svlug.org 
> [mailto:svlug-bounces+daevid=daevid.com at svlug.org] On Behalf 
> Of Ira Abramov
> Sent: Tuesday, August 27, 2002 6:37 AM
> Subject: [svlug] Re: virtual domain names inside the LAN
> Quoting Daevid Vincent, from the post of Tue, 27 Aug:
> > Shouldn't the linux box know about itself and all it's own virtual 
> > domains? I mean, how come if I'm telnetted in, and I "lynx 
> > http://www.marq.org" or "lynx http://www.daevid.com" it 
> doesn't know 
> > that those virtual domains are itself, but rather sends me to the 
> > router which is  Whereas external people can get there 
> > just fine.
> when you tell lynx to open a connection to www.daevid.com it 
> looks it up in the hosts file (which is where you want to put 
> it as an alias to or your ethX address) and then 
> the DNS. since you have nothing in your hosts file, lynx goes 
> to which is not an IP address of your machine, 
> nor on your default network, so the request is sent out via 
> the default router. straight and simple. the machine doesn't 
> know its names, it knows where to route IP-addressed packets. 
> it is the responsability of the browser, proxy but mainly the 
> resolver library to get your request to the right  web 
> server, and you can't expect lynx to look in the local apache 
> config to see if your request should actually remain inside 
> the machine and not do the round trip to the NAT router.
> therefore - /etc/hosts hacks.
> the other option, just for NAT and other private-address 
> intranets, is to use BIND9, which supports answering 
> different IP addresses to hosts inside and outside of the 
> LAN, or rather serve different zone files to requests 
> originating from different hosts.
> > Do I really need to set up DNS on this box? Is that 
> difficult? Can't I 
> > just modify a 'hosts' file or something for all my virtual 
> domains? I 
> > still think Linux should know it's virtual domains without this.
> setting up a local DNS is an option, and it's not difficult. 
> DNS setup is pretty basic. once you understand how the server 
> hyrarchy works, it's smooth sailing, and I think it's a good 
> basic knowledge to have. makes you understand the Internet's 
> infrastructure a bit better.
> -- 
> The opposite of sex
> Ira Abramov
http://ira.abramov.org/email/ This post is encrypted twice with ROT-13.
Documenting or attempting to crack this encryption is illegal.

svlug mailing list
svlug at lists.svlug.org http://lists.svlug.org/lists/listinfo/svlug

More information about the svlug mailing list