# Redirection issue after changing the nameserver

**URL:** https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089
**Category:** Support
**Created:** [11월 1, 2018, 8:14오후 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089 "2018-11-01T20:14:41Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![JKBaseer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jkbaseer/32/80471_2.png) [@JKBaseer](https://meta.discourse.org/u/JKBaseer)
#### Post date: [11월 1, 2018, 8:14오후 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089/1 "2018-11-01T20:14:41Z")

</div>

Hello Guys!  
I am starting this thread with a bit doubtful mind whether this is supposed to be asked here or not. I would immediately close if this is totally not related here. or  
[Please close this topic if this is not relevant to Discourse]

I have been trying to forward users whoever visit [example.com](http://example.com) to [forum.example.com](http://forum.example.com). I have done this successfully via [(Superseded) Redirect additional domain(s) to your Discourse instance](https://meta.discourse.org/t/redirect-single-multiple-domain-s-to-your-discourse-instance/18492) (first message) no problem at all by adding in the app.yml . It worked for few days. Recently we changed the nameserver from namecheap to godaddy and also update the Digitalocean nameserver in godaddy already. It’s been almost 10days but still the main domain redirection is not working. However, the subdomain is working without any hassle.

With a guess based approach, I did check the app.yml in var and it’s the same. And made a launcher rebuild app in case if that could have helped.

Not working. As there is nothing much changes i did on DO and also the nameserver in godaddy has been already amended. What could have been the issue?

---

<div class="post-metadata">

### Author: ![JKBaseer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jkbaseer/32/80471_2.png) [@JKBaseer](https://meta.discourse.org/u/JKBaseer)
#### Post date: [11월 5, 2018, 6:04오후 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089/2 "2018-11-05T18:04:01Z")

</div>

Hello Anybody, Just double checking if this is not something to do with discourse ?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [11월 5, 2018, 6:30오후 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089/3 "2018-11-05T18:30:20Z")

</div>

The reason you’ve not received a response is because it’s almost certainly down to the DNS configuration at your new host. Your @ record (for the root) is likely missing or incorrect.

As you’ve not specified your domain we can’t look at this for you, but either way it’s something you’ll very likely be fixing by correcting your DNS entries.

---

<div class="post-metadata">

### Author: ![JKBaseer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jkbaseer/32/80471_2.png) [@JKBaseer](https://meta.discourse.org/u/JKBaseer)
#### Post date: [11월 7, 2018, 3:40오후 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089/4 "2018-11-07T15:40:33Z")

</div>

> [@JKBaseer](#):
>
> Redirect single/multiple domain(s) to your Discourse instance

Thanks Stephen. The reason why i want to share it might not be to do with DNS is because [(Superseded) Redirect additional domain(s) to your Discourse instance](https://meta.discourse.org/t/redirect-single-multiple-domain-s-to-your-discourse-instance/18492) according to this link, the redirection setup was done on discourse app.yml and not the DNS setup.

To be exact am sharing here the code in app.yml for the redirection

```
 - file:
        path: /etc/nginx/conf.d/discourse_redirect_1.conf
        contents: |
          server {
            listen 80;
            server_name example.org;
            return 301 $scheme://forum.example.org$request_uri;
          }

```

In this case, is it still nothing to do with app.yml?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [11월 7, 2018, 3:47오후 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089/5 "2018-11-07T15:47:05Z")

</div>

> [@JKBaseer](#):
>
> Recently we changed the nameserver from namecheap to godaddy and also update the Digitalocean nameserver in godaddy already.

If it worked, then stopped working and all you’ve changed in the interim is DNS, then it’s a DNS issue.

> [@JKBaseer](#):
>
> server\_name [example.org](http://example.org);

You said _to be exact_, but are you? Did you specify [example.org](http://example.org) in your real app.yml? If so this would have never worked.

---

<div class="post-metadata">

### Author: ![JKBaseer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jkbaseer/32/80471_2.png) [@JKBaseer](https://meta.discourse.org/u/JKBaseer)
#### Post date: [11월 7, 2018, 4:25오후 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089/6 "2018-11-07T16:25:53Z")

</div>

could it be something like cache clearance in discourse? Just asking.

Ah the [example.org](http://example.org) i changed it in this thread from the real name for making it easier to understand. There is no change done in the app.yml.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [11월 7, 2018, 4:26오후 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089/7 "2018-11-07T16:26:54Z")

</div>

Caching of what? You probably need to elaborate on what you think discourse is caching.

---

<div class="post-metadata">

### Author: ![JKBaseer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jkbaseer/32/80471_2.png) [@JKBaseer](https://meta.discourse.org/u/JKBaseer)
#### Post date: [11월 8, 2018, 5:52오전 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089/8 "2018-11-08T05:52:31Z")

</div>

> Sure. Caching of the App.yml settings when the app is running every time.  
> For example: When the user loads website repeatedly, the web contents are sometimes cached. Similarly can the DNS settings could be cached in discourse

I kept this message in draft. But apologize there isn’t any such things 😃

The mistake I done is.  
The A record setup was \*.example.org. However it should be @.example.org.

Thank you for taking time to double confirm!

---

<div class="post-metadata">

### Author: ![vegasloki](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vegasloki](https://meta.discourse.org/u/vegasloki)
#### Post date: [11월 8, 2018, 9:01오전 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089/9 "2018-11-08T09:01:03Z")

</div>

DNS is used by others to find your site. As you’ve found Discourse wouldn’t be caching it. DNS is like mail, routing or firewall config where many devs and/or admins aren’t fully aware of how exactly it works. They can be as complex as developing an app but in different ways.

The primer from Dyn is a good place to start.  
[https://dyn.com/blog/how-does-dns-work/](https://dyn.com/blog/how-does-dns-work/)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [12월 8, 2018, 9:01오전 UTC](https://meta.discourse.org/t/redirection-issue-after-changing-the-nameserver/101089/10 "2018-12-08T09:01:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
