benyezza
By:
benyezza

disable http access on DNS server

February 18, 2015 785 views

My DNS and HTTP servers are same machine and I have ns1, ns2 A records in DNS configuration file. How I can disable following http access?:

  1. http://ns1.mydomain.com
  2. http://ns2.mydomain.com

Am on WHM/Cpanel (Centos) with Apache

Can I use any option on WHM to do it ?

I am a beginner, thanks

2 comments
  • You would create a virtual host for these two addresses and make it return a 404 or something similar, just like how you would create any other site.

  • Thank you for you answer, how to do it ?

    Am on WHM/Cpanel (Centos) with Apache

Be the first one to answer this question.