Select the network in wlan settings, under IP setting select Static, then change the DNS. This however only changes the selected network (he can use a public to show the XXX).
Personally I would use Adguard dns since it also blocks e.g trackers & ads.