Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subdomains with multiple dots best practices

Tags:

subdomain

dns

Anyone know of the pros and cons of having multiple dots in a subdomain in relation to web application development?

I was wondering which one of the naming schema would work best:

qa.myproject.example.com (this one has one extra dot)

or

qa-myproject.example.com

like image 570
Arcadian Avatar asked Dec 17 '13 18:12

Arcadian


People also ask

How many dots can a subdomain have?

There are no direct limits on how many levels i.e. dots you can have in a hostname. However, a RFC1034 compliant hostname can only be 255 bytes long, leaving 253 bytes for a fully qualified domain name FQDN in DNS.

Can you have a dot in a subdomain?

Using the same example Blow.com, could I make a subdomain Bl.ow.com? I'm trying to get to Blow2.0.com and didn't know if I registered Blow20.com if it would work. Hi @Dot-Com. No, you cannot break up a domain name by adding a dot in it, you can only add characters in front of the domain name you own.

Can a subdomain have a period in it?

However, periods are included in websites that utilize subdomains, which is why some webpages have the following URL structure: 'subdomain.domainname.com'. Subdomains are used to contain content that is separate from the main website but is still under the main website's hosting.

Can there be multiple subdomains?

You create subdomains to help organize and navigate to different sections of your main website. Within your main domain, you can have as many subdomains as necessary to get to all of the different pages of your website.


1 Answers

i guess there is no harm. provided your domain registrar is flexible for multi-level domain. a.example.com and a.b.example.com is just a record under example.com. you can also switch to DNS provider of you own choice by updating nameservers in you domain register portal.

i found quite useful info here - https://webmasters.stackexchange.com/questions/56984/subdomain-with-dot/56985#56985

like image 196
Sandeep kumar singh Avatar answered Dec 30 '22 08:12

Sandeep kumar singh