Hey.

I saw this structure among my friends:

домен 1 ---> | домен 2 ---> | домен 0 ---> сервер домен 3 ---> | ... 

Domains (1,2,3) refer to domain 0, with NS.domain0.com being registered in domains (1,2,3). Those. It comes out very conveniently, you need to add only one entry in NS.domain0.com to NS of the new domain when a new domain appears.

I can not repeat this trick. C Domain 0 - I can open the site, with Domain 1 no. In my case:

  1. Server - 185.174.173.169
  2. Domain 0 - loustfillmstv.pw
  3. Domain 1 - joyukasonos.pw

/etc/apache2/sites-enabled/000-default.conf:

 <VirtualHost loustfillmstv.pw:80> ServerName loustfillmstv.pw ServerAlias www.loustfillmstv.pw ServerAdmin webmaster@localhost DocumentRoot /var/www/html </VirtualHost> <VirtualHost joyukasonos.pw:80> ServerName joyukasonos.pw ServerAlias www.joyukasonos.pw DocumentRoot /var/www/html </VirtualHost> 

What am I doing wrong?

  • loustfillmstv.pw works fine, and for the domain name joyukasonos.pw , joyukasonos.pw are specified, whose names are resolved to the same ip address 185.174.173.169, which does not respond to dns requests. - aleksandr barakin
  • What should be done? - VINET
  • I do not know. it is quite difficult to understand what you want to achieve by sending clients to a non-working dns server. there is a hypothesis that your question is about the srv-record , but this is just a hypothesis, because you didn’t mention this in half a word. - aleksandr barakin
  • it is necessary that it works as in the scheme, i.e. on new domains, only NS domain 0 was registered, and domain 0 was sent to send ip servers. - VINET
  • one
    poorly worded question. it seems like the author understands what a dns server is and what a web server is - and it puts everything in a heap. and I don’t even know how to unravel this tangle: in a good way, you need to understand the level of the questioner, like the correct word he knows, but connecting them together results in a solid mess. I propose to close the question as "the essence of the question is incomprehensible," and I suggest that the author consider the question of forgetting that he has a Apache. Before setting up the Apache, there are still kilometers of the path: you must first deal with the inactive DNS. To draw before the enlightenment the schemes "at them" and "at me" until it becomes clear that this is not the case with the Apache. - AK

0