# Blocking the use of other DNS Servers than the one in RB

**URL:** <https://forum.mikrotik.com/t/blocking-the-use-of-other-dns-servers-than-the-one-in-rb/41390>\
**Category:** Beginner Basics\
**Created:** [October 9, 2010, 1:49pm UTC](https://forum.mikrotik.com/t/blocking-the-use-of-other-dns-servers-than-the-one-in-rb/41390 "2010-10-09T13:49:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Centauri](https://forum.mikrotik.com/letter_avatar/centauri/32/6_449c533f586939b6e5f246632a46421f.png) [@Centauri](https://forum.mikrotik.com/u/Centauri)\
**Post date:** [October 9, 2010, 1:49pm UTC](https://forum.mikrotik.com/t/blocking-the-use-of-other-dns-servers-than-the-one-in-rb/41390/1 "2010-10-09T13:49:21Z")

</div>

Hi

I have found a config to block the access for specific websites which work well.

```plaintext
ip firewall layer7-protocol add comment="" name=p2p_www regexp="^.*(get|GET).+\
(torrent|thepiratebay|isohunt|entertane|demonoid|btjunkie|mininova|flixflux|vertor|h33t|\
zoozle|bitnova|bitsoup|meganova|fulldls|btbot|fenopy|gpirate|commonbits).*\$"

ip firewall layer7-protocol add comment="" name=p2p_dns regexp="^.+\
(torrent|thepiratebay|isohunt|entertane|demonoid|btjunkie|mininova|flixflux|vertor|h33t|\
zoozle|bitnova|bitsoup|meganova|fulldls|btbot|fenopy|gpirate|commonbits).*\$"

ip firewall filter add action=drop chain=forward comment="block p2p_www" disabled=no \
layer7-protocol=p2p_www

ip firewall filter add action=drop chain=forward comment="block p2p_dns" disabled=no \
dst-port=53 layer7-protocol=p2p_dns protocol=udp

```

The RB in my setup acts as DHCP server and uses the RB as DHCP server local IP : 192.168.1.1

But since this DNS blockings done in the RB’s DNS this user still have the possibility to manual add a different DNS server e.g. a Open DNS server to the Computer and in that way work around the blocking.

So I was thinking if it would be possible somehow to block the local users from using other DNS servers than the RB itself.

And so that it is only the DB that has access to ask the 2 external DNS servers 89.184.128.250 and 89.184.128.193.

So that no local users can ask other DNS server that the one in the RB itself.

---

_[View the full topic](https://forum.mikrotik.com/t/blocking-the-use-of-other-dns-servers-than-the-one-in-rb/41390)._
