Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mail.[mydomain.com], whatever.[mydomain.com] howto?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
ive seen elite city and other free web hosting site to this..

example:
slackware.microsoft.com
whatever.[regitered domain name]

and i noticed that there is no reboot process on those servers, right after you submit your info it is automatically ready...
So my theory is that i only have to edit a certain file/s to do
this...

can some 1 tell me how to achive this... or the file to edit...

Tnx...
 
You need to play with DNS Manager - in particular the server that hosts your domain name.

is registered at xyz.com. I could ask them to create a new record for mail.zelandakh.co.uk which they can do by editing the zone record for zelandakh.co.uk and adding in a mail record and specifying the ip address it is to go to (and what type it is too).

Suggest your next port of call is someone's NT server with a DNS component...
 
Apols, thought I was still in the NT server forum - you can use any DNS manager including the one on NT server. It does not even have to be a "real" DNS server, it can be a cacheing only server (forwarder).
 
Hey Kumbaya,

The way those sites do what you're describing is through *.domain.com records so that anything.domain.com will point to the same IP. They then use the header information sent by the browser to determine which website they visitor really wants. In your case, you just need to edit your zone file on your dns server. If you're running Bind, just check your /etc/named.boot or /etc/named.conf for the name and location of your zone file. Then edit your zone file and add "*.mydomain.com. IN A 10.10.10.1", send a "-HUP" to Bind and it should work. I'm going off memory on the syntax for the "*." record so let me know if you have trouble with it.

GJ

 
To GunJack

when i tried:

mail.mydomain.com
whatever.mydomain.com

its ok... it will go to the same.. html that is my index.html located at d apache dir...

can i redirect my index...
ie.. goes to index.html
and mail.mydomain.com goes to whatever.html

TNX...
 
Yes, you can do this but you'll have to configure your webserver to recognize these as two different sites. This configuration is different for each webserver. If you're using Apache, it's not too hard but I don't work with it enough to remember the syntax.

GJ
 
It's an Apache issue to split the two domains up into two different websites. The dns server is responsible for directing both domain names to the same IP. It's Apache's responsibility to listen on that IP, look at the request, determine which domain name is being requested, and then retrieve the correct website. When two websites share the same IP, the browser must support the newer http1.1 protocol though to get the correct one. If it doesn't, Apache has no way to tell which website the browser is requesting since the sites both are on the same IP.

GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top