Blocking social networks and adult sites via DNS on Android

Hi,

Do you know if there’s a way to block social networks, adult sites and other distracting categories of websites via DNS on Android?

Thanks.