Answer the question
In order to leave comments, you need to log in
Explain about nameservers, a entry, etc.?
There is a vps (WHM/cPanel is installed) from a hoster (leaseweb.nl)
I want to create end user cPanel accounts there and direct certain domains to them.
I also want to use nameservers from the host.
hostname - kanga.leaseweb.nl
/etc/hosts -
127.0.0.1 localhost.localdomain
localhost
SERVER_IP
kanga.leaseweb.nl
kanga
some_end_user_domain.ru
/etc/resolv.conf 78.199
The last three are IP nameservers from leaseweb
> ns1.leaseweb.nl 62.212.64.121
> ns5.leaseweb.nl 83.149.64.123
> ns4.leaseweb.net 62.212.78.199
The domain registrar at the some_end_user_domain.ru domain has the same nameservers
In /usr/local/apache/conf/httpd.conf there are the following virtual hosts
<VirtualHost SERVER_IP:80>
ServerName kanga.leaseweb.nl
DocumentRoot /usr/local/apache/htdocs
< VirtualHost *>
ServerName kanga.leaseweb.nl
DocumentRoot /usr/local/apache/htdocs
<VirtualHost SERVER_IP:80>
ServerName some_end_user_domain.ru
ServerAlias www.some_end_user_domain.ru
DocumentRoot /home/some_end_user_domain/public_html
Is this a sufficient condition for everything to work? Or is something missing?
WHM swears as follows (it's also called /scripts/ipcheck )
The hostname (kanga.leaseweb.nl) resolves to 85.17.96.111. It
should resolve to SERVER_IP. Please be sure that the contents
of /etc/hosts are configured correctly, and also that there is a
correct 'A' entry for the domain in the zone file.
Some or all of these problems can be caused by /etc/resolv.conf
being setup incorrectly. Please check that file if you believe
everything else is correct.
You may be able to automatically correct this problem by using the
'Add an A entry for your hostname' option under 'Dns Functions' in
your Web Host Manager.
Add an A entry is set to IP - SERVER_IP
And if you do ping kanga.leaseweb.nl on the server itself - then it will resolve to SERVER_IP
If you do dig some_end_user_domain.ru then ANSWER SECTION and so on are missing.
In which direction to look, what can I miss or what do I not understand?
Answer the question
In order to leave comments, you need to log in
Something is not clear what you are trying to do ...
where is "Add an A entry set to IP - SERVER_IP" is set?
Where is the zone itself located and how do you edit it? on these NSs? or did you just assign these NSs to the domain because you had them in resolv.conf? if so, then you are very mistaken. Domain NSs should point to a DNS server with your domain's zone, which you can edit.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question