Create sub sub domains, URL with two subdomains - url

If i have a site with url www.example.com, is possible to have another subdomain with the subdomain www? for example www.extra.example.com. I don't sure about this.
I tried to find some information, but i don't have enough experience in that area

qux.bar.foo.example.com
com is the top-level domain,
example is the second-level domain,
foo is the third-level domain,
bar is the fourth-level domain,
qux is the fifth-level domain.
And yes, you can have more levels (DNS calls them "labels").
Many people mean only the third-level domain when they say "subdomain" (or fourth-level domain in case of an effective top-level domain like co.uk), probably because most domains don’t have more levels, however:
foo is the subdomain of example.com,
bar is the subdomain of foo.example.com,
qux is the subdomain of bar.foo.example.com.
By the way, www is no special label, just a convention.

Yes it is. In your example, the two sub-domains "www" and "www.extra" are different.

Related

Google Domains : create a custom domain based on a url path

I have a laravel projct deployed on a virtual machine on GCP and I need to create a subdomain for it based on its url , the url looks like this : 34.90.86.243/questions_bank/public/
but when I wanted to add the url to the data field on google domains I got confused on what type I should use to make this up to work.
see this image
so which type should I choose ? and if there is an other way to do it please tel me
You cannot create subdomains based upon URL paths (/questions_bank/public/).
DNS servers manage subdomain resource records based upon IP addresses (A and AAAA) and CNAMES (which resolve to A and AAAA resource records.
If your goal is to create a subdomain questionsbank as in questionsbank.example.com from the IP address 34.90.86.243, create an A with the Host name questionsbank, Type A, TTL 86400, Value 34.90.86.243.
In your webserver (Apache, Nginx, etc.) you can use URL Rewrite to map subdomains to URL paths.

How to name a "domain name" without TLD?

Is there a specific name for this kind of "domain name" : https://www.website ?
It's neither a domain name, a hostname, or an URL (because there's no TLD), neither a Second-level domain (because there's https://www.)
There is no specific name because there is nothing specific in your case.
https://www.website is an URL like any other ones, for hostname www.website which is on the TLD website, which is a gTLD, see https://www.iana.org/domains/root/db/website.html
There is nothing special here. You are probably not aware that website is a new TLD.

Domain name web alias does not take into the count urn part

I have a small problem with domain names and dns configs.
There are two domains: application12345.com domain and example.com.
I want to show my application on domain example.com.
I try to create an alias
example.com TO application12345.com.
I made
www.example.com 'CNAME' application12345.com
example.com 'Web alias' application12345.com
So example.com gets application12345.com index page.
If I click the link than content changes, but URN part is always the same.
Could you help me please? What should I do to show urn changes on example.com domain ?
P.S. Finally you can test it here:
http://cryptoflick.fr/
http://prod-env.uy7cvnaywj.eu-west-2.elasticbeanstalk.com/
My final solution which works
cryptoflick.fr web forward http://cryptoflick.fr
www.cryptoflick.com CNAME prod-env.uy7cvnaywj.eu-west-2.elasticbeanstalk.com
*.cryptoflick.com CNAME prod-env.uy7cvnaywj.eu-west-2.elasticbeanstalk.com

Use of dot ( . ) after www. in the URL

I often visit a link!
But i have no idea what dot (.) represents in the URL.
What is use of dot (.) in the URL?
The dot (.) is the character that was defined to be the delimiter in domain names (see DNS).
It delimits the labels in a domain name.
The domain name www.google.com consists of three labels:
com (aka. the top-level domain)
google (aka. the second-level domain)
www (aka. the third-level domain, or subdomain)
The '.' is like a character which differentiates from the domains. like www.todaysfuture.in the '.' after www means the first domain is done. then it checks the next domain.
The best example is like your email ID
first is the email-ID
then is the '#' that means the account name is done
then comes gmail/yahoo/wtvr
then a '.' to finish the account type
then '.' com or in depending on the account
Web addresses, or Uniform Resource Locators, go backwards with more specific terms coming first (like real addresses).
So for www.google.com
com is the top level domain - it might be a global domain like .com or a country code like .uk, and some top level domains have sub divisions like .gov.uk and .co.uk.
google is the domain - this is the name you actually buy and route to your servers/services
www subdomain - these are optional, and can be used to distinguish different services running on the same server, so www.google.com would serve web pages while ftp.google.com might be an FTP service.
Note that the subdomain is often optional - google.com and most other servers will assume www as the default service or infer it from the protocol (the http:// bit).

Do web page URLs always have a subdomain

I'm writing a url parser. Do url's I'd type into an internet browser always have a subDomain?
I mean, will there always be something where www is in this example, and is there always a '.' between the sub-domain and the domain?
http://www.domain.com/path/page.htm
Thanks.
No they don't.
If you go to http://example.com, you will see it doesn't redirect to a www subdomain.
And yes, there will always be a . between the parts of the hierarchy.
There is tons of various possibilities, you can find :
http://www.example.com/path/paeg.html?query=string
http://example.com/path/paeg.html?query=string
http://sub.www.example.com/path/paeg.html?query=string
http://user:password#www.example.com/path/paeg.html?query=string
http://user#www.example.com/path/paeg.html?query=string
http://www.example.com:4040/path/paeg.html?query=string
http://user#www.example.com:4040/path/paeg.html?query=string
etc ...
So NO, there is not necessary a subdomain in the url.
And there isn't a '.' between the sub-domain and the domain, when the sub-domain is empty.
If you are using PHP, you need to know that it already exists similar parser, like parse_url : http://fr.php.net/parse_url
And I'm sure there is also a parser in every (major) languages

Resources