Yup. Pi-hole does DNS-level blocking which would only work if YouTube put their ads on some separate (sub)domain.
I actually experimented the other day by turning off ublock origin and letting Pi-hole try to do the work, but I saw ads.
Theoretically, YouTube could set up their infrastructure in such a way as to put the ads in the video stream you receive, but that is complex and has other risks and trade offs.
Yup. Pi-hole does DNS-level blocking which would only work if YouTube put their ads on some separate (sub)domain.
I actually experimented the other day by turning off ublock origin and letting Pi-hole try to do the work, but I saw ads.
Theoretically, YouTube could set up their infrastructure in such a way as to put the ads in the video stream you receive, but that is complex and has other risks and trade offs.