How to hide your name server version in your dedicated or virtual server

How to Hide your name server version

With dedicated and VPS servers it’s important that you try and keep the server as secure as possible, you should always deploy a firewall at the bare minimum. As well as a firewall like CSF we also advise to change the ssh port from #22 and to hide your name server version. If your using Bind then we have provided an easy way to hide your name server version. This will help by not allowing people to know what version you’re using and in turn, they won’t be able to exploit any known issues which have not been patched. You need to root access to perform this so, users of a VPS or dedicated server from First2Host can complete this if you wish.

Log in as root to your server, first we’re going to make a copy of the /etc/named.conf file in case anything goes wrong. If you make a mistake you can simply move this file to the required location to overwrite the work you have done. Copy the line below to deploy nano if required, copy the file to /root then open the named.conf file to start editing. 

yum install nano -y ; cp /etc/named.conf /root ; nano /etc/named.conf 

Cheap Dedicated Server Hosting

sshbindYou should now be presented with the configuration file you need to edit to hide your name server version. Be careful in this file and make sure you place the code required in the correct place exactly how this post says. If you make a mistake here all sites on your server will loose connectivity and you will need to use the backup file located in the /root folder to replace the damaged file. If you have made a mistake and you need to restore the file just issue the below command

cp /root/named.conf /etc/

Now lets find the correct section, In the console press the “page down” key on your keyboard to go down a page and look for a line that says “allow-transfer {“none”;};” underneath this line place the following code

version none;

verThe file should now look like this with version none; at the bottom. Make sure you include the ;

Now you need to restart named. Do this by issuing the below command

service named restart

Now named has restarted you can proceed to use dnsstuff  to produce a DNS report on a domain name that’s located on your VPS server or dedicated server and the report should say your name server version is hidden. 

pass

How was this article?

How to hide your name server version in your dedicated or virtual server
How was this post?

Dedicated Servers Security Advisories VPS Servers

Select Language
SSD Reseller Web Hosting ★ Host 50 Domains ★ 50 Free SSL Certificates ★ Weekly Backups ★ Free Migrations In14 Day Free Trial
+