Disable recursive queries bind in CentOS

Hello,

 

So, you have a lot of people using your server for name name server queries ? That uses your bandwidth ? Not a problem here is the step to overcome that.

 

Open the file /etc/named.conf

 vi /etc/named.conf

 

and add below lines by replacing the old allow-recursion and allow-transfer lines

allow-transfer {“none”;};
allow-recursion {“none”;};
recursion no;

restart the named service using the below command and you are done.

 

 /etc/init.d/named restart

 

You test the same using dig command, you should find the following output.

 
[root@ns399932 ~]# dig @127.0.0.1 google.com A

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.1 <<>> @127.0.0.1 google.com A
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<

 

Thank you for watching

11 comments

  1. ?????????? says:

    ?????????????????????????
    ????????????????
    ???????????????.???????????????????????????????
    ?????????????????????????
    ???????????????????????
    ??????????????????????????
    ?????????????????? C.Dior(?????)
    ???? ??? Coach(???) ???????.
    ???????????????.??? .?? .?????. ??.?????.
    ??????????????????????????
    ?????????(?)?????????????????????.???????

  2. ???? ??????? ?? ??? says:

    ???? ??? ?? ??? ???
    ?????20????????????????.??????????????????
    ????????????.???????????????5????????????????????
    ????????????.??????????????ROLEX??????????????????
    ????????????????CHOLE????PRADA????MIUMIU????BALENCIAGA????
    DIOR????LOEWE????BOTTEGA VENETA?????
    ??????????.???????????????
    ????????????????????????????????????????.???????????????????????
    ???????????????????????????????
    ???????????????
    ??????????????????????????????????????????

  3. ?????? says:

    ?????????
    ?????????????????????????????????
    ???????????,??????,?????????,??????????????????
    ?????????? ?????
    ???????????????????????????????????????????? ?
    ??????????,IWC?????????
    ???????(????)!
    ??????????????
    ??????????????? ??????????????? ?
    ?????????????????????? ?
    ?????????????????????????
    ?????????????????????????
    ?????? ??? ?????2019?????????
    ???????????????????????????????
    ????????????????????????????
    ???????????????????????????????????????????????????.
    ????????????????
    ??????????.
    ????????,???????? ???,?????????????,???????

  4. Hairstyles Vip says:

    I have been exploring for a little for any high-quality articles or blog posts on this sort of area . Exploring in Yahoo I at last stumbled upon this site. Reading this info So i? happy to convey that I have a very good uncanny feeling I discovered exactly what I needed. I most certainly will make certain to don? forget this site and give it a look on a constant basis.

Leave a Reply

Protected by WP Anti Spam