Add record in the DNS for 'ketogenicforums.com'


(Justin Traer) #1

Hi there,

I’d like to point out that it seems like the DNS records are missing a record for ‘ketogenicforums.com’ which in my opinion should be a redirect to the ‘www.’ record.

By not doing this, if some one tries to load the site without the ‘www.’, it looks like the site is down.

It took me a few minutes to figure out what was up and I work in IT. :grinning:


#2

yep:




(G. Andrew Duthie) #3

@carl or @richard, can you help?


(carl) #4

We tried. It’s actually a problem with how Discourse is set up. Nothing we can do.


(G. Andrew Duthie) #5

Wow. That’s surprising, given how smart the Discourse software is in many other ways.


(Justin Traer) #6

If you think it’s worth your time to correct this, I’d suggest looking into NGINX. There is a few ways to go about it that depends on the environment this running on…

Basically, if you can install NGINX on to something, you’d point the DNS record for ketogenicforums.com to that IP. Next, NGINX is configured to 301 redirect all ‘http://ketogenicforums.com’ to ‘https://www.ketogenicforums.com’.

If you had to put NGINX & Discourse on the same IP & server, it should be possible to have NGINX to proxy all traffic to Discourse (which could be setup on a firewalled, non standard port).

Since you are using https, you might need a wildcard cert rather then just a single sub domain cert if you want to redirect https://ketogenicforums.com to the full URL with out causing any warnings in the web browsers.


(carl) #7

Hey @sam can you explain to us again why we can’t route “ketogenicforums.com” with DNS?


#8

When doing a DNS lookup, it looks like dnssimple.com is hosting the Internet DNS.

C:>nslookup -type=ns ketogenicforums.com
1.0.168.192.in-addr.arpa
primary name server = localhost
responsible mail addr = nobody.invalid
serial = 1
refresh = 600 (10 mins)
retry = 1200 (20 mins)
expire = 604800 (7 days)
default TTL = 10800 (3 hours)
Server: UnKnown
Address: 192.168.0.1

Non-authoritative answer:
ketogenicforums.com nameserver = ns1.dnsimple.com
ketogenicforums.com nameserver = ns2.dnsimple.com
ketogenicforums.com nameserver = ns3.dnsimple.com
ketogenicforums.com nameserver = ns4.dnsimple.com

There’s a DNS A record for www.ketogenicforums,com, which is redirected to Discourse,

C:>nslookup -type=a www.ketogenicforums.com
1.0.168.192.in-addr.arpa
primary name server = localhost
responsible mail addr = nobody.invalid
serial = 1
refresh = 600 (10 mins)
retry = 1200 (20 mins)
expire = 604800 (7 days)
default TTL = 10800 (3 hours)
Server: UnKnown
Address: 192.168.0.1

Non-authoritative answer:
Name: ketogenicforums.hosted-by-discourse.com
Address: 64.71.168.213
Aliases: www.ketogenicforums.com

There’s no DNS A/CNAME record for ketogenicforums.com, so nothing to redirect it,

C:>nslookup -type=a ketogenicforums.com
1.0.168.192.in-addr.arpa
primary name server = localhost
responsible mail addr = nobody.invalid
serial = 1
refresh = 600 (10 mins)
retry = 1200 (20 mins)
expire = 604800 (7 days)
default TTL = 10800 (3 hours)
Server: UnKnown
Address: 192.168.0.1

Name: ketogenicforums.com


(carl) #9

We were told we couldn’t do that. I manage our DNS at DNSimple.


(Sam Saffron) #10

Have you tried this “redirector” thing they offer?

https://support.dnsimple.com/articles/redirect/


(VLC.MD) #11

so weird. something simple is being overlooked.


(Damon Chance) #12

Typically you can set a * record so that anything not specifically called out as another type of record (CNAME or A record usually) gets redirected to whatever you want. Any of the sites I’ve set up i would just CNAME * to the www. In your case your www is already a CNAME so you would just create *'s CNAME to point to discourse just like www.