I don’t know a way to do it for a given system, at home you could plug a small computer to your router, like a raspberry or equivalent, set that as a dns, and run filtering on it.
I don’t know a way to do it for a given system, at home you could plug a small computer to your router, like a raspberry or equivalent, set that as a dns, and run filtering on it.