This video will describe how you can fix your DNS issues on any Linux that uses Systemd as an Initiator. All you have to do is run a few commands as displayed in the video and that will stop and nameserver issues when you’re unable to ping the Domain Servers but you can ping the IP addresses on linux.
These are the commands that are mentioned in the video.
#add nameserver x.x.x.x e.g nameserver 126.96.36.199. Add a 2nd if you like.
chattr +i /etc/resolv.con