Cannot rebuild app due to nameserver DNS issues "could not resolve host github.com"

It’s not a Discourse problem, so this isn’t the best place to look for a solution.

If you’re going to use the Google name servers then you should remove the other one. Also, in many configurations, Linux will overwrite resolve.conf, so if changing name servers fixes the problem you’ll still need to do a bit more to see that it’s actually resolved.