Answer the question
In order to leave comments, you need to log in
How to deny access to ns1.domain.com and ns2.domain.com?
On a dedicated server, I created my own ns servers on the domain. Now there is a problem, if you type ns1.domain.com in the browser, then we will open a site located at the ip address ns1.domain.com, although the site has a different domain altogether.
In general, how to make ns1.domain.com or ns2.domain.com unavailable when typing in a browser?
Answer the question
In order to leave comments, you need to log in
"I set everything up correctly, but in fact everything is wrong with me, and now everything works correctly, but not as it should
. In general, how to make it work incorrectly and as it should, and not correctly as it is now"
If nginx then:
server {
listen ...;
server_name ns1.domain.com ns2.domain.com;
return 404;
}
If Apache - then just create a directory, put an empty index.html in it and create a virtual host for your ns-domains.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question