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

**URL:** <https://meta.discourse.org/t/cannot-rebuild-app-due-to-nameserver-dns-issues-could-not-resolve-host-github-com/192272>\
**Category:** Product Support\
**Created:** [June 1, 2021, 11:44am UTC](https://meta.discourse.org/t/cannot-rebuild-app-due-to-nameserver-dns-issues-could-not-resolve-host-github-com/192272 "2021-06-01T11:44:27Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Lecter](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@Lecter](https://meta.discourse.org/u/Lecter)\
**Post date:** [June 1, 2021, 9:27pm UTC](https://meta.discourse.org/t/cannot-rebuild-app-due-to-nameserver-dns-issues-could-not-resolve-host-github-com/192272/13 "2021-06-01T21:27:25Z")

</div>

I had a similar issue recently, try running the following command, then attempt to rebuild.

`sudo apt-get update && sudo apt-get upgrade -y`

Another option, if the rebuild fails, would be `./discourse-doctor`

---

_[View the full topic](https://meta.discourse.org/t/cannot-rebuild-app-due-to-nameserver-dns-issues-could-not-resolve-host-github-com/192272)._
