If you mean you can’t set your DNS automatically that would be due to DHCP. You can setup your own DHCP server and set the DNS IP to whatever you want (8.8.8.8 etc).
PiHole should handle all this for you all while blocking ads and being a local DNS resolver.