Only google andriod apps wont connect to internet on my school network
Try Using Google DNS

DNS 1: 8.8.8.8
DNS 2: 8.8.4.4

you can add it to the WIFI AP/Router Config so its used by the DHCP

or you can manually Add it to the device wifi config:

Settings > Wifi > Long Press on Wifi Connection Name > Modify Network/Edit > IP Settings > Note the IP Address> Select Static > Type in the IP and Gateway then enter google dns and save

the setup on device route should be used to test if its the DNS if working setting it up on the Router is the better Soulution.