# How to configure ipv4 / ipv6 settings

**URL:** https://meta.discourse.org/t/how-to-configure-ipv4-ipv6-settings/29263
**Category:** Self-hosting
**Tags:** hosting
**Created:** [26.Май.2015 12:16:12 UTC](https://meta.discourse.org/t/how-to-configure-ipv4-ipv6-settings/29263 "2015-05-26T12:16:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![fredrik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fredrik/32/116163_2.png) [@fredrik](https://meta.discourse.org/u/fredrik)
#### Post date: [26.Май.2015 12:16:13 UTC](https://meta.discourse.org/t/how-to-configure-ipv4-ipv6-settings/29263/1 "2015-05-26T12:16:13Z")

</div>

Hi!  
My site suddenly “disappeared” after my web host updated and restarted my server.  
After some poking around, I did a ‘netstat’ and only ‘tcp6’ entries were listed for the ports that discourse were supposed to serve (and probably is serving).  
This is a problem for a few reasons.

1. I can’t display ipv6 sites at home
2. My DNS records didn’t list my domain with an AAAA record.

I can solve 2) easilly, but 1) will have to be solved some time later, when my ISP blesses me with a proper connection.

How do I set up Discourse to host on either both ipv4 and ipv6, or ipv4 only?

---

<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: [27.Май.2015 02:11:27 UTC](https://meta.discourse.org/t/how-to-configure-ipv4-ipv6-settings/29263/2 "2015-05-27T02:11:27Z")

</div>

Try a rebuild `./launcher rebuild app` and see if it works again?

---

<div class="post-metadata">

### Author: ![fredrik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fredrik/32/116163_2.png) [@fredrik](https://meta.discourse.org/u/fredrik)
#### Post date: [27.Май.2015 06:42:50 UTC](https://meta.discourse.org/t/how-to-configure-ipv4-ipv6-settings/29263/3 "2015-05-27T06:42:50Z")

</div>

Hmm..

```
root@host:/var/discourse# ./launcher rebuild app
Ensuring discourse docker is up to date
Fetching origin
Discourse Docker is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
fatal: unable to access 'https://github.com/SamSaffron/pups.git/': Could not resolve host: github.com
0d20b665c7a9ed2b3df8c3f62138577659792168e07e95e4b5cb7a33d453ff84
FAILED TO BOOTSTRAP

```

This is weird… because I tried this three times, and it failed like this every time… however, if I just try to clone that given repo… it doesn’t have problems with that. It’ doesn’t help me though.

---

<div class="post-metadata">

### Author: ![fredrik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fredrik/32/116163_2.png) [@fredrik](https://meta.discourse.org/u/fredrik)
#### Post date: [28.Май.2015 07:46:42 UTC](https://meta.discourse.org/t/how-to-configure-ipv4-ipv6-settings/29263/4 "2015-05-28T07:46:42Z")

</div>

I don’t know how the launcher application works, so how do I debug this issue?  
It’s obvious that [github.com](http://github.com) is actually resolvable from my machine, and that was my only lead.

---

<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: [28.Май.2015 08:31:33 UTC](https://meta.discourse.org/t/how-to-configure-ipv4-ipv6-settings/29263/5 "2015-05-28T08:31:33Z")

</div>

The launcher application is starting a Docker container and then running the commands in the templates from inside. Do you have some special DNS setup on your VPS that isn’t getting auto-configured?

---

<div class="post-metadata">

### Author: ![fredrik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fredrik/32/116163_2.png) [@fredrik](https://meta.discourse.org/u/fredrik)
#### Post date: [28.Май.2015 20:07:12 UTC](https://meta.discourse.org/t/how-to-configure-ipv4-ipv6-settings/29263/6 "2015-05-28T20:07:12Z")

</div>

I found a solution in this thread [here](https://meta.discourse.org/t/afatal-unable-to-access-https-github-com-samsaffron-pups-git-could-not-resolve-host-github-com/18611/5).

I looked up my DNS servers in resolv.conf, and put that in the configuration file for docker.  
I don’t know why docker doesn’t use the same dns as the rest of the system by default?  
What am I not understanding here?

---

<div class="post-metadata">

### Author: ![fredrik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fredrik/32/116163_2.png) [@fredrik](https://meta.discourse.org/u/fredrik)
#### Post date: [28.Май.2015 20:23:55 UTC](https://meta.discourse.org/t/how-to-configure-ipv4-ipv6-settings/29263/7 "2015-05-28T20:23:55Z")

</div>

Hmm… the rebuild worked, and the site went back up.  
I don’t know why netstat only displays ‘tcp6’ ports… because I don’t think that’s what I’m browsing right now. I’m confused.
