Questions tagged [subdomain]

In the Domain Name System (DNS) hierarchy, a subdomain is a domain that is part of a larger domain.[1]

The Domain Name System has a tree structure or hierarchy, with each node on the tree being a domain name. A subdomain is a domain that is part of a larger domain, the only domain that is not also a subdomain is the root domain.

For example, mail.example.com and calendar.example.com are subdomains of the example.com domain, which in turn is a subdomain of the com top-level domain (TLD).

A "subdomain" expresses relative dependence, not absolute dependence: for example, wikipedia.org comprises a subdomain of the org domain, and en.wikipedia.org comprises a subdomain of the domain wikipedia.org.

1428 questions
4
votes
1 answer

Issue with DNS and subdomains

I have an Apache running on an Ubuntu Server (14.04). I've configured the DNS A records and VH in order to have one domain and two subdomains just like this: example.com subdomain1.example.com subdomain2.example.com Everything is running ok,…
NeoSennin
  • 51
  • 6
4
votes
1 answer

Does Apache look at .htaccess files above a VirtualHost's DocumentRoot?

I am trying to setup a subdomain on a server of mine, where blog.domain.com serves the content from domain.com/blog/ Perhaps this is the wrong way of doing this entirely, but I have setup a blog.domain.com VirtualHost for this, whose DocumentRoot is…
obeattie
  • 304
  • 1
  • 6
  • 13
4
votes
1 answer

Where does the "A" record go for a sub-domain?

I'd like to create a sub-domain, like sub.example.com. I have already configured example.com with NS "glue" records to point to the DNS server which will manage the sub-domain. They look like: sub IN NS other.dns.server.example.com. Where…
Christopher
  • 143
  • 1
  • 6
4
votes
0 answers

Authentication issues when clients access domain-joined server from non Samba4 subdomain DNS name

We have an issue we’ve been struggling with for quite some time since we rolled out 10 Samba4 domain controllers at our main office and all remote sites about 3 years ago. Simplified Current Configuration: 2 DCs at main site with internal DNS using…
4
votes
1 answer

Redirect all subdomains to main domain with HTTPS without a wildcard cert (nginx)

I have a domain name with a main site and a few vhosts. I want all sites (main and vhosts) to only be accessible through HTTPS (using HSTS), and I want non-existing subdomains to be redirected to the main site. To summarize what I…
4
votes
4 answers

Is a wildcard SSL required for a single subdomain?

A typical SSL cert is based on a common name for the domain (domain.com) sometimes (www.domain.com) as well. I understand what a wildcard cert is used for (*.domain.com) and it would/should validate all subdomains for that domain. If I want to…
PenguinCoder
  • 529
  • 2
  • 6
  • 17
4
votes
1 answer

Nginx/Apache subdomain problem

I'm having some trouble setting up a subdomain for clients.lipsmack.co.uk. I've set up a DNS A record to point to my IP address, and I've created proxy and vhost information for nginx and apache, but I'm getting a server not found response when I go…
Gary Chambers
  • 161
  • 1
  • 8
4
votes
3 answers

Windows DNS: Is there a way to partition a domain based on subnets

In our organization, we have two separate groups which share network address space and a domain. A couple of slices of /24 are allocated to my group, while the rest is allocated to our internal IT team. We do not wish to be able to manage DNS for…
4
votes
1 answer

Subdomain used as a param for main domain: CNAME vs A record

Let example.com be the main blog with a lot of articles about different topics. Now I want to have topic1.example.com to show only posts related to topic1. The Rails application that powers the blog is already configured to respond accordingly when…
collimarco
  • 264
  • 2
  • 3
  • 10
4
votes
1 answer

Why can the primary record for a domain not be a CNAME record?

I have read on the internet that the primary record for a domain (eg example.com) should be an A record, and that bad things happen if you use a CNAME record. I work for a web company that has several clients. Each client has their business domain…
Erin Drummond
  • 225
  • 4
  • 8
4
votes
1 answer

how to setup subdomains for AWS EC2 Ubuntu Instance?

I am trying to setup subdomains for my AWS EC2 ubuntu instance, but without enough knowledge I couldn't proceed anymore. I have a parked domain name example.com on a domain name service provider. My EC2 instance has Elastic IP associated, say…
4
votes
1 answer

Apache redirect domain and all subdomains

I have an Apache configuration setup with multiple virtual hosts as subdomains. I have just purchased a new domain name, and I want all requests to this domain name to redirect to the new one, including subdomains: old.com > new.com sub.old.com >…
Oliver Joseph Ash
  • 361
  • 3
  • 5
  • 14
4
votes
1 answer

map subdomain to another subdomain via cname

Question: I need to get DNS configured to point a subdomain from one domain (which I will generally not be controlling) to another subdomain on a different domain name. Testing this process using a simple CNAME entry keeps pointing to the primary…
Stephen
  • 891
  • 1
  • 8
  • 8
4
votes
2 answers

.htaccess - redirect non www to www and retain subdomains from redirecting

So, on my main domain 'domain.com' I created several subdomains from cPanel, like 'sub1.domain.com' and 'sub2.domain.com'. Their real location on server is in 'domain.com/sub1' and 'domain.com/sub2'. Now, I want to redirect non www to www with…
RhymeGuy
  • 201
  • 1
  • 2
  • 4
4
votes
1 answer

Setting up subdomains on localhost

I have been trying to set up a subdomain on my local development environment, dev.localhost. I'm using Ubuntu 11.10 and Apache2. So far, I've edited my host file to include the line 127.0.0.1 dev.localhost. I've created a file called axis in…
jebriggsy
  • 43
  • 1
  • 4