Koozali.org: home of the SME Server

Websites and DNS Records

penguinzrool

Websites and DNS Records
« on: March 20, 2005, 12:37:32 AM »
This has been driving me mad for a while now!

My SME 6.0.1 box hosts 2 websites, primary and virtual. When I set up my box I used the UK2 (my web host) DNS Management tool to change my DNS records.

The SME box is in server only mode (soon to be changed to server/gateway). I've got an Actiontec router forwarding ports 25 and 80 to the server.

In the DNS records, I've got the main address as my IP address, and on the main domain the www record pointing to the UK2 webspace (we've paid for it for the time being so may as well use it!).

If I go to www.mydomain.com, it works fine. If I go to www.myotherdomain.com it gives me the same as www.mydomain.com, even if I specify a different ibay in the server manager.

The BIG issue is if I set up another ibay, gallery for example, going http://mydomain.com/gallery doesn't work, nor does www.mydomain.com/gallery nor does www.myotherdomain.com/gallery. The only way to get other ibays to work is by using the IP address.

The question is, what do I need to do to the DNS records to get mydomain.com and myotherdomain.com to have different websites, and more importantly to get www.mydomain.com/ibay to work without resorting to IPs!

Thanks a lot.

gbaird

domain setup
« Reply #1 on: March 20, 2005, 03:07:48 AM »
Your dns records need to be setup like the following

mydomain.com = ip address your isp gives you dynamic or static
myotherdomain.com = same ip address your sme box will deal with it for proper routing - probally missed the content box in your domain setup

if dynamic you need keep it updated with your dns provider
I use zoneedit.com easy & free for up to 5 domains I also use
directupdate on a windows box to keep it updated it's cheap

mydomain.com = Primary and content will be right

next create an ibay something like virt1 - this is where you will put your webpages for myotherdomain.com

setup the virtual domain myotherdomain.com and in the content box select virt1

Your dns records will look some thing like this

mydomain.com = ip address !!! example 69.128.12.66
www.mydomain.com = same
mail.mydomain.com = same
ftp.mydomain.com = same

myotherdomain = same
www.myotherdomain.com = same
mail.myotherdomain.com = smae
ftp.myotherdomain.com = same

this is why they are called virtual as they use the same ip address you don't have to setup mail & ftp if you don't use them

I have several domains running on an sme box they all work and are happy The thing that get missed is the CONTENT box in the setup if unchanged every domain will point to it

I have a few setup like

blog.eelriver.com
www.eelriver.com
music.eelriver.com

all domains all different ibays

hope you understand this howto





















i

penguinzrool

Websites and DNS Records
« Reply #2 on: March 20, 2005, 12:39:10 PM »
hey, thanks for the reply.

about an hour after posting, i realised what was wrong while trying to get to sleep!

because i'm still using my web host to do the website for mydomain.com, of course www.mydomain.com/ibay won't work! and because the dns record was set as webhost default, then an exception for mail.mydomain.com, it also meant that http://mydomain.com/ibay wouldn't work.

it also looks like you can't access ibays from virtual domains, maybe this is just a limitation of SME?

i've changed the dns records so that the SME box is now defaulting for both, so http://mydomain.com/ibay works, and am in the process of creating a subdomain which should hopefully make it easy to do http://ibay.myotherdomain.com

thanks!

gbaird

ibay setup
« Reply #3 on: March 20, 2005, 03:57:00 PM »
The question is, what do I need to do to the DNS records to get mydomain.com and myotherdomain.com to have different websites, and more importantly to get www.mydomain.com/ibay to work without resorting to IPs!

setup as follows

dns records as in my previous reply

mydomain.com and myotherdomain.com to have different websites

mydomain.com CONTENT = Primary
myotherdomain.com CONTENT = other ibay

this will point them to the correct "content" location

as far as mydomain.com/gallery this is a sub-directory
you could just create a domain gallery.mydomain.com and point it to a ibay named gallery as I have done with blog.eelriver.com
ip address must be set in your dns records
like mail.mydomain.com is

it also looks like you can't access ibays from virtual domains, maybe this is just a limitation of SME?

NOT a limitation just needs proper setup again mydomain.com/gallery is a sub-directory you can have

mydomain.com/gallery setup as gallery.mydomain.com this is virtual domain as far as reaching mydomain.com/gallery you will have to do it with a link from your content at mydomain.com these are not limitations of SME but standard domain - hostname settings due to dns record setup

One domain such as mydomain.com can have any amount of sub-directories this would be a dns headache every time you add /gallery /photos /pics /alblum and the likes

I may help to check the following links to see how it works

http://www.eelriver.com/faq

http://faq.eelriver.com

only other way to do something is to get a domain registered like penguinzroolgallery.com and set the CONTENT to point to
your gallery ibay

hope this helps
Greg