This is fine for client based blocking, but it not possible for network level blocking, such as using a pi-hole instance as your main local resolver.