How to bind the second-level domains to subdomains (e.g. site2.ru to sub1.site.ru)?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
3 views
For example. Take nllm.habrahabr.ru I want to tie your domain (for example, nllm.ru) (we Assume that there is such a possibility).
To do this, I go into settings, specify a domain, the domain prescribed servers.
What next needs to happen on the side habrahabr.ru? How it to automate?

p. S. in this matter is not strong, may not accurately describe
by | 3 views

4 Answers

0 like 0 dislike
You make such entry:
site2.ru. IN CNAME sub1.site.ru.
And after that, everyone went to site2.ru will get on sub1.site.ru where already you will need to configure a web server or anything else on the reception of these clients.
by
0 like 0 dislike
In order to prescribe something in site.ru you need some authority.
In your case, hostmaster habrahabr.ru may (but need not) make a record of the form
nllm IN A 111.222.333.444
or you delegate a subdomain nllm.habrahabr.ru where you will have to steer yourself.
\r
Domain nllm.ru you have to register yourself.
And manage it accordingly.
Further, for example, in Apache you need to do is rewrite requests to nllm.habrahabr.ru to queries nllm.ru for example.
\r
In any case, the subdomains in the zone habrahabr.ru managed the hostmaster for this domain, or are delegated and arbitrariness there can not be.
\r
Somewhere so...
by
0 like 0 dislike
Or I the question is not correctly understood, or dosage of soda is broken...
A domain name domain.com.
He has a NS (Name Server) which answers all queries for domains and subdomains domain.com if sub.domain.com not installed your NS.
\r
In order to add a record to the zone domain.com you need to have administrative privileges.
\r
I do not know exactly how and what users do blogspot.com but I suspect that through some kind of interface they are given the authority to change the a record or CNAME for your user.blogspot.com.
\r
If you are owner of site.ru then the powers you have.
And you can steer the subdomains sub.site.ru in full.
\r
How to give the user the opportunity to change their (and only their) binding, you decide.
\r
But entry site2.ru. IN CNAME sub1.site.ru.
only possible in the area site2.ru,
but no it is not possible in the area site.ru.
\r
Now you understand why the question of "will Take nllm.habrahabr.ru I want to tie your domain (for example, nllm.ru)" got the answer?
by
0 like 0 dislike
Faced yesterday with the similar problem.
\r
I have 2 domain site.ru and site.com
I want to request a.site.ru opened what lies on a.site.com
site.com located on a virtual server.
\r
I prescribe a.site.ru IN CNAME a.site.com
\r
logically it should work, BUT since site.com located on virtual hosting with recognition at the name and he receives the request show "a.site.ru" — and he does not know this, then the whole scheme does not work.
\r
not enough entries for the vhost a.site.ru on my virtual hosting. that's the problem, solutions I personally do not see but to ask the provider to prescribe it, but most likely they won't bother with that.
by

Related questions

0 like 0 dislike
6 answers
0 like 0 dislike
3 answers
0 like 0 dislike
4 answers
110,608 questions
257,186 answers
0 comments
25,938 users