LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-22-2010, 07:11 PM   #1
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Rep: Reputation: 30
wildcards on domain names clarification


Hi,
I just wanted to clarify what does a wildcard do.

Basically if i had wildcards enabled I'll be to point my browser to steven.portfolio.com and it will point to the same server as portfolio.com.

So if I wanted to setup lots of subdomains, all I have to do is to configure my server to serve the appropriate page for each subdomain right?

What I want to do is have a domain for my home web server. I'm self hosting a site.

Do all 123reg allow wildcards?

Last edited by linuxmandrake; 03-22-2010 at 07:19 PM.
 
Old 03-23-2010, 02:43 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by linuxmandrake View Post
Hi,
I just wanted to clarify what does a wildcard do.

Basically if i had wildcards enabled I'll be to point my browser to steven.portfolio.com and it will point to the same server as portfolio.com.
Correct. Wildcards match against the hostname. WWW is a hostname too.
Quote:
Originally Posted by linuxmandrake View Post
So if I wanted to setup lots of subdomains, all I have to do is to configure my server to serve the appropriate page for each subdomain right?
Correct. You can use apache rewrite rules to redirect to specific pages, or set up virtual name based hosts each with their own web root directory. The virtual hosts is cleaner and easier to do IMHO.
Quote:
Originally Posted by linuxmandrake View Post
What I want to do is have a domain for my home web server. I'm self hosting a site.
You've checked that your isp doesn't block port 80 and whether you have a dynamic or fixed ip address ?
Quote:
Originally Posted by linuxmandrake View Post
Do all 123reg allow wildcards?
If you buy a domain name then you can have whatever DNS you want including wildcards. If you are using someone else's, like DynDNS then you get to use wildcards on their provided domain. But that will usually take the form *.host.domain.com where host is your chosen DynDNS name and domain.com is shared by many others.

Last edited by smoker; 03-23-2010 at 02:46 AM.
 
Old 03-23-2010, 04:43 AM   #3
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
Thanks alot I'm running a dynamic ip BUT o2/be there assign their ip based on a mac address. I've been on O2 for over a yr and my ip has NEVER changed! They charged an exra 5quid a month. I'm too cheap to pay lol.
 
Old 03-23-2010, 05:12 AM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
I'm on Be and I get a free static ip included (Be Unlimited). No port blocking either ...
 
Old 03-23-2010, 05:27 AM   #5
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
oh I'll have to investigate that.
I've just spoke to 123reg they said that despite the wildcard I'll still need to buy subdomain (which are expensive!!). Is this true for all providers?
I was under the impression wild cards enable steven.portfolio.com but I don't need to register it because it's based on the wild card.
 
Old 03-23-2010, 06:14 AM   #6
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
How expensive is expensive ?
I have my domain records hosted on nettica.com, it's only $10 per year for one domain. I actually have bulk hosting which is 50 domains for $50 a year.

You can add and change your records as often as you want and create subdomains (new hosts) for free.
I have all my sites hosted on my home server now, as it's cheaper. My mx records are pointing to gmail (also free).
 
Old 03-23-2010, 02:23 PM   #7
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
They charging me 9.99 GBP which am assuming is per annum. They didn't say.

But technically the whole point of wild card is so that you don't need to register subdomain because it's based on the wildcard right? So if I wanted steven.portfolio.com , I don't need to purchase that as a subdomain right?

So you just have the one record then everything matches to the same IP

Last edited by linuxmandrake; 03-23-2010 at 02:24 PM.
 
Old 03-23-2010, 03:06 PM   #8
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
If your on a budget you could set up 'steven' as a valid hostname in DNS pointing to the same IP. You can set up Apache to handle this 'hostname' as a 'subdomain' using a simple virtual host directive. It would see the hostheader 'steven.portfolio.com' and direct it accordingly.

For example:
Quote:
<VirtualHost *:80>
DocumentRoot /home/www/steven/htdocs
ServerName steven.portfolio.com
ServerAlias www.steven.portfolio.com
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/www/steven/htdocs>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /home/www/steven/logs/error.log
CustomLog /home/www/steven/logs/apache.log combined
</VirtualHost>
Works just fine for a single host that appears in a browser as a subdomain would. Before you spend a penny on anything this may suit your needs. It's not the 'perfect' answer because individual hosts can't be dealt with (such as mail.steven.portfolio.com or www.steven.portfolio.com) - but it's a cheap way for dealing with just web traffic if it's all you need.

HTH
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie domain name clarification question mutsu Linux - Networking 3 04-20-2006 09:30 PM
seeking clarification- Samba CAL License usage with W2K AD Domain network environment integr8er Linux - Enterprise 7 10-06-2004 05:50 PM
Domain Names...? cparker15 Linux - Networking 8 08-27-2003 07:13 AM
Domain Names Timbo General 7 02-14-2003 03:10 PM
domain names cic Linux - Networking 3 06-11-2002 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration