# Configuring domain name and DNS

**URL:** <https://meta.discourse.org/t/configuring-domain-name-and-dns/21289>\
**Category:** Self-hosting\
**Created:** [Octobre 19, 2014, 4:19 UTC](https://meta.discourse.org/t/configuring-domain-name-and-dns/21289 "2014-10-19T04:19:31Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [Octobre 19, 2014, 8:26 UTC](https://meta.discourse.org/t/configuring-domain-name-and-dns/21289/20 "2014-10-19T20:26:21Z")

</div>

For future reference, you should have edited that file with `sudoedit`. sudoedit will save a backup copy, and only overwrite the file if the editor exits normally (I think).

```
# sudoedit /etc/hostname
("Please pick an editor")

```

---

_[View the full topic](https://meta.discourse.org/t/configuring-domain-name-and-dns/21289)._
