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
5
votes
2 answers

Understanding the DNS domain lookup mechanism

The specific query that led me to try and unpick this process was: Will a DNS lookup for a subdomain, such as assets.example.com, be faster if the parent domain, example.com, has already been resolved? By my (naive) understanding, the basic process…
5
votes
1 answer

Proxy all requests for subdomain to an ip via htaccess/apache

Let's say I have the following subdomain with its own document root etc: monad2.mysite.com I want that all requests are proxied to an IP (for instance 193.159.3.129) but they must pass through the server at mysite.com (assuming monad2 is on this…
Christian
  • 466
  • 5
  • 23
5
votes
3 answers

Is it possible to have multiple subdomain levels with DNS and Nginx?

This seems like a simple question, but after some Google searching I can't seem to find the answer. I have a staging server where I would like to mimic the production server as much as possible. Let's say I own example.com and I decide that I want…
Stephen Watkins
  • 539
  • 2
  • 5
  • 11
5
votes
4 answers

Can I use a single (non-wildcard) SSL cert on multiple hostnames of the same domain?

If I have test.example.com and prod.example.com (two hostnames, but same domain name) can I use the same SSL cert on both machines? In the past when I tried using a prod.example.com cert on test.example.com it resulted in browser warnings for…
Caffeine Coma
  • 419
  • 1
  • 5
  • 13
5
votes
1 answer

Is this good practice for making subdomains

I'm trying to create subdomains with my web application, however, I'm not experienced in nginx that much, I've been trying to find a stable solution from SF, but unfortunately I can't find any good solution. The problem I'm trying to do is create…
Lewis
  • 51
  • 1
  • 3
5
votes
1 answer

Proxy HTTP requests to servers on different ports, using subdomain

Say I have a minimalist Python web server running with several instances, each with different ports specified as command line arguments. I'd like requests to my server to be redirected like this, using the Host header: name1.mydomain.com ->…
Luke Stanley
  • 161
  • 1
  • 8
5
votes
3 answers

nginx: redirect subfolder to subdomain

I'm trying to redirect a subfolder to a subdomain in nginx. I want http://example.com/~meow/ to be redirected to http://meow.example.com/. I tried the following: location ~ ^/\~meow/(.*)$ { rewrite ^(.*)$ http://meow.example.com$1…
mrm8
  • 65
  • 2
  • 4
5
votes
1 answer

How are subdomain resolved?

quick question for you, when I enter adress like test.mysite.net, first I connect to my ISP DNS, than if not found there to .NET DNS, than to mysite DNS, what after that? I mean, I know that test.mysite.net could be at different IP adress, but what…
user80985
  • 153
  • 1
  • 4
5
votes
4 answers

How to set up a DNS to use a catch-all address?

This is not really a programming question, it's more about settings that I can alter visually. I have bought a domain and am wondering how I can get it work in such a way that everything before the .example.com except for things I've already set…
5
votes
3 answers

BIND: how to delegate subzone to other DNS server?

I'm in the process of migrating from a workgroup served by a BIND9 DNS server, to a AD Domain based on Windows Server 2008 R2, and I'd like to keep using the BIND server until the AD infrastructure is ready. During the setup of AD, via dcpromo, I…
Martijn Heemels
  • 7,728
  • 7
  • 40
  • 64
5
votes
4 answers

Dynamic subdomain routing

I asked this question over at stackoverflow, but got very few views: https://stackoverflow.com/questions/2284917/route-web-requests-to-different-servers-based-on-subdomain Perhaps it's more applicable to this crowd. Here it is again for…
Nader
  • 151
  • 1
  • 5
5
votes
2 answers

Hosting wildcard domains such as *.mydomain.com on Windows Azure without using redirections

I have an ASP.NET MVC app which offers wildcard domains to my users to personalize their login urls. I'd like to host this on Windows Azure. But is it possible to keep the wildcard domains? I've already found a blog article showing how to do this…
Adrian Grigore
  • 1,072
  • 3
  • 21
  • 34
5
votes
1 answer

Is the subdomain _acme-challenge protected?

I was looking into the DNS-01 challenge of Let's Encrypt; and I had a question about the sub domain process [1]. Let's say, the website example.com gives away free subdomains; what stops me to request a Let's Encrypt wildcard certificate for…
5
votes
1 answer

LetsEncrypt certificate for nested wildcard subdomain

I've generated Lets Encrypt wildcard certificate for my domain *.domain.com. I thought this certificate is valid for any nested subdomain *.*.domain.com, like it.*.domain.com or fr.*.domain.com. But browsers giving me error, that wildcard…
Ilya Cherevkov
  • 153
  • 1
  • 1
  • 7
4
votes
1 answer

Let's Encrypt certificate to cover both wildcard subdomains and root-domain

I'm running a server under example.com domain and I have sub-domains like: a.example.com b.example.com I'm creating certificate from Let's Encrypt with zerossl online tools and I have an issue. When I generate the certificate using wildcards as…
STaefi
  • 143
  • 1
  • 8