Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


DNS Entry? | 11 comments | Create New Account
Click here to return to the 'DNS Entry?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
DNS Entry?
Authored by: Gwyrrdin on Apr 24, '01 04:00:15AM

Hi

Maybe a dumb question, but I always worked only with domainnames purchased by eq. an ISP.

What's the point of giving a local website a virtualdomain when it doesn't have a DNS entry?
Only yourself from behind your own OS X box will be able to find you?

Or am I completely wrong?

I hope so:)


regards

Gwyrrdin



[ Reply to This | # ]
It's easier!
Authored by: robg on Apr 24, '01 08:33:12AM

The names are only local (you should probably avoid using something that might be publicly usable, as you'd get odd results). However, it makes it much easier to remember what you're working on, if you have a number of sites.

Compare "127.0.01/customer1", "127.0.0.1/customer2" to "dev.customer1.mine" and "dev.customer2.mine". easier to rememember the name instead of the number/name.

-rob.



[ Reply to This | # ]
DNS Entry?
Authored by: Anonymous on Jul 30, '02 07:15:41AM

a) you can edit (ie break) your sites locally without affecting the 'live' site)

b) you can specify absolute path and they'll work

c) if you mimic your ISP's paths php includes etc will work



[ Reply to This | # ]
DNS Entry?
Authored by: timrob on Jul 31, '02 04:55:13PM

Well you can give different names to sections of your server.
If you setup an alias (CName?) in DNS that points to *.yourdomain.tld,
you can have http://foo.yourdomain.tld and http://bar.yourdomain.tld.
You can setup up as many of these Virtual Hosts as you like and refer
to them by name by using the "ServerName" directive in your
Virtual Host configuration.

ie.

NameVirtualHost *

<VirtualHost *>
DocumentRoot /path/to/site/html
ServerName foo.yourdomain.tld
</VirtualHost>

<VirtualHost *>
DocumentRoot /path/to/othersite/html
ServerName bar.yourdomain.tld
</VirtualHost>

You can also do this without touching NetInfo.



[ Reply to This | # ]