F
F
fredis692014-09-07 09:25:51
Domain Name System
fredis69, 2014-09-07 09:25:51

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

2 answer(s)
C
Cool Admin, 2014-09-07
@ifaustrue

"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"

Your question is slightly unclear.

V
Vlad Zhivotnev, 2014-09-10
@inkvizitor68sl

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 question

Ask a Question

731 491 924 answers to any question