Kids try to change the dns of the computer

Hello do have a solution?
Because i have the similar problem, i have a pihole server and i want to that all the dns traffic should go through pihole.
Thats because some kids try to change the dns of the computer or smarphone so they can access not allowed websites.


Hello @alblinux - Welcome to the IPFire Community!

this should help point the kids in the right direction:



i have tried this before the post, but with this solution i cant use the pihole dns service.
It just use the dns from ipfire.

I try to explain:
Ipfire is
pihole (debian 11) is

When i activate the firewall rule it accept just as dns server all others are blocked.

Maybe i misunderstand something.

Sorry for my bad english :slight_smile:

Did you find this post?

Keeping in mind pihole is not recommended, you may want to try this:

-and this-

Does this help?

1 Like

No. it doesnt

How about a firewall rule.
allow service group DNS
drop green service group DNS

Your next problem is blocking DoH.
That may be possible by using Proxy. or Ip Block list.
would try block list first

1 Like

Will try this soon.

With this i success but will try

iptables -I CUSTOMPREROUTING -t nat -p udp --dport 53 -m iprange --src-range -j DNAT --to-destination

If they are using DoH
You will need something else for that.

If they are changing their DNS configuration I guess they are not babies anymore. From my experience, it’s hopeless to try fixing a social problem with a technological solution. The kids will win this race. They will find ways to avoid whatever obstacle you install. They will simply hack their way around it.

Talking to the kids, explaining them why you filter some traffic, establish trust between you and the kids so if they want to visit parts of the internet that you block they will talk to you and you can have a very fruitful discussion which will build up trust even more. Visit those bad corners of the web together, discuss what you see and why that can be dangerous. You will become their hero! That was how I “fixed the problem” and I’m very proud to see how my kid learned to handle the internet and keep away from the dark side.