Page 1 of 1

Googlevideo DNS to Address-list

Posted: Sat Sep 12, 2020 6:34 am
by Wangz
Any scripting expert here? I want to fetch a domain named ".googlevideo.com" from DNS to address-list. I saw some scripts here but i am having problems with the cpu running the script. It spikes to 35% and hovers 20-30%. I need it to run every 5-10 seconds.

I am using Mikrotik Hap Ac2.

The processor of this Mikrotik should be able to handle the script.....

Re: Googlevideo DNS to Address-list

Posted: Sat Sep 12, 2020 1:40 pm
by msatter
The number of IP addresses are limited but the names are "endless".

https://discourse.pi-hole.net/t/how-do- ... be/253/145

Re: Googlevideo DNS to Address-list

Posted: Sun Sep 13, 2020 2:56 am
by Wangz
The number of IP addresses are limited but the names are "endless".

https://discourse.pi-hole.net/t/how-do- ... be/253/145
Yeah currently, there are estimated there 10,000+ googlevideo domain. As of now my solution is using ip blocks where mostly my connection is made.

Re: Googlevideo DNS to Address-list

Posted: Sun Sep 13, 2020 3:43 am
by neutronlaser
What is your goal?

Re: Googlevideo DNS to Address-list

Posted: Sun Sep 13, 2020 4:40 am
by Wangz
What is your goal?
My goal is to control/limit the bandwidth of streaming youtube then prioritize the browsing.

Re: Googlevideo DNS to Address-list

Posted: Mon Sep 14, 2020 2:38 am
by shahjaufar
Firewall >Mangle>
Chain= Prerouting
>Advanced>
Content=googlevideo.com
Action> Action=Add dst to Address List
Address List=Youtube

Firewall >Mangle>
Chain= Prerouting
>Advanced>
Content=googleusercontent.com
Action> Action=Add dst to Address List
Address List=Youtube
----------------------------------------------------------------------------------------------------
Simple as above. No special symbol or character required for hostnames.
This will Add Google Playstore, GMAIL ips to the list too. Not only Youtube.

I believe you know what to do next :)
Tested & working in ROS 6.47.3
Note: you can use "nflxvideo.net" for Netflix

Re: Googlevideo DNS to Address-list

Posted: Mon Sep 14, 2020 2:29 pm
by Wangz
Firewall >Mangle>
Chain= Prerouting
>Advanced>
Content=googlevideo.com
Action> Action=Add dst to Address List
Address List=Youtube

Firewall >Mangle>
Chain= Prerouting
>Advanced>
Content=googleusercontent.com
Action> Action=Add dst to Address List
Address List=Youtube
----------------------------------------------------------------------------------------------------
Simple as above. No special symbol or character required for hostnames.
This will Add Google Playstore, GMAIL ips to the list too. Not only Youtube.

I believe you know what to do next :)
Tested & working in ROS 6.47.3
Note: you can use "nflxvideo.net" for Netflix
I have tried this, it works with the youtube app on the phone / Youtube Vanced. The problem is it does not work with Google Chrome since it uses QUIC Protocol.

Edit: and most of my users uses chrome as their default browsing.

Re: Googlevideo DNS to Address-list

Posted: Tue Sep 15, 2020 1:01 am
by shahjaufar
Mark All Packets from Source Address List
Put a simple Queue on Packets for limiting

Works for me on All Chromium Browsers & Apps

Re: Googlevideo DNS to Address-list

Posted: Tue Sep 15, 2020 1:25 pm
by WeWiNet
Any scripting expert here? I want to fetch a domain named ".googlevideo.com" from DNS to address-list. I saw some scripts here but i am having problems with the cpu running the script. It spikes to 35% and hovers 20-30%. I need it to run every 5-10 seconds.
You won't be able to run such script that often. And I also think it is not needed. Don;t know how much time out these connections have
but I run them every 6 hours only and my lists are long...
Keep in mind over time you get all IP addresses you ever find with such DNS name (you can use time out or not).
I am using Mikrotik Hap Ac2.
The processor of this Mikrotik should be able to handle the script.....
Keep in mind the DNS cache can be quit big. When I run my DNS screening scripts my CPU load also rocks up.
Same CPU as hapac2. This is why I think such script should run less frequent.

If you find a better/fast way to screen DNS cache, I am eager to learn how.

Re: Googlevideo DNS to Address-list

Posted: Sun Aug 04, 2024 1:32 pm
by easykill
Firewall >Mangle>
Chain= Prerouting
>Advanced>
Content=googlevideo.com
Action> Action=Add dst to Address List
Address List=Youtube
It's so simple and works so well. Thank you.