Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cannot reach SWAG subdomains on new domain name with dns cert

Featured Replies

  • Community Expert

So to get right to the issue I am not able to reach any of my CNAME subdomains going through SWAG but I can reach the "Welcome to SWAG Instance" going to my domains A record.

To give a the full picture I'll detail everything about my situation. About a month ago my ISPs public IP changed. I didn't think anything of it, updated my domain records to match and everything continued to work. This past weekend I noticed I suddenly could not reach any of my services doing through the swag but I hadn't changed anything. I took a look at the logs of SWAG to see that I was unable to renew my http cert so chances are this issue was probably happening since the IP change but I did not notice since the cert had not expired yet.

The issue I was getting with the swag certbot was stating something like "likely firewall problem" even though nothing had changed on my router. I tested ports to my public using 443 which was successful but 80 was not which lead me to believe that my ISP is now blocking port 80 since the IP change that happened a month ago but everything was working since the cert had not expired yet (I don't know if this is 100% correct so please let me know if that suspicion is wrong). Going off of that I researched and found that instead of using http cert in SWAG I had to use dns. My host service at the time was hover which I learned does not have support/api to use as a dns cert in SWAG so I looked into different hosts. I settled on porkbun as the pricing was good and it supported SWAG as well as my pfsense router for DDNS. Since I have to wait a week for the transfer of my old domain I bought a cheap new one in the meantime and copied all my records over to match.

I updated the docker settings in SWAG to be dns cert with the new domain and changed the subdomains to wildcard and the new cert looks to be created and working. My issue now is that like I mentioned earlier I still cant get to any of my services at "cname.domain.new" but I can get to the A record public ip domain "arecord.domain.new". Specifically I can get to https://arecord.domain.new but I am not able to get to http:// of anything. I am not sure if that is the expected outcome now using the dns cert or not but just trying to provide any useful information.

Since the domain is new I also tested the DNS propagation as well to just see if I was being impatient and all the records look to be pointing where they are supposed to as in "arecord.domain.new" points to my public ip and "cname.domain.new" points to "arecord" so I dont think it is a propagation problem.

If anyone has any kind of insight to what I am missing it would be GREATLY appreciated. I've been banging my head against a wall trying to figure this out for like the last 18 hours straight.

Solved by Hotsammysliz

  • Author
  • Community Expert
  • Solution

So I spoke with some friends about this for help and there were two things happening at once here.

first thing was that my dns records were having an issue. On my old domain host of Hover the dns records were setup as such and were working:

TYPE

HOST

VALUE

A

arecord.domain.old

PUBLIC.IP.IS.HERE

CNAME

cname.domain.old

arecord

So with that I set them up the same on my new domain host over at porkbun but like stated in my original post arecord.domain.new worked but cname.domain.new did not work. I learned that Hover was basically using shorthand in the DNS records CNAME value so although I entered 'arecord' and that worked what it was actually doing was using 'arecord.domain.old' as the value. After learning this I updated my DNS records on Porkbun accordingly and everything began working again. Just for more detail this is what they look like on Porkbun

TYPE

HOST

VALUE

A

arecord.domain.new

PUBLIC.IP.IS.HERE

CNAME

cname.domain.new

arecord.domain.new

As for the issue with port 80 I did indeed confirm with my ISP that port 80 is now blocked which explained why I could no longer use http validation and had to switch to dns.

It was essentially a very simple fix but I hope this can help someone who may end up in a similar situation as mine!

Edited by Hotsammysliz

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.