How to properly supply swag docker-compose file with subdomains of subdomains?

Hi, I’m using namecheap as my dns and i have my a record pointing correctly to my IP and my cname pointing correctly to my domain, and then two more cnames pointing to that subdomain: domain.tld, subdomain.domain.tld, sub1.subdomain.domain.tld and sub2.subdomain.domain.tld.

I’m using http validation as dns validation looked a bit more confusing with namecheap.

How do I enter those last two sub-subdomains in to SUBDOMAINS part of swags compose file?

Would ‘SUBDOMAINS=www,domain,subdomain,sub1.subdomain,sub2.subdomain,’ be correct? Or does it work differently?

URL=domain.tld
SUBDOMAINS=subdomain
EXTRA_DOMAINS=sub1.subdomain.domain.tld,sub2.subdomain.domain.tld
1 Like

Thank so much for the quick reply! : D

Sorry actually now I’m havering a certification problem -

Detail: DNS problem: NXDOMAIN looking up A for sub1.subdomain.domain.tld - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for sub1.subdomain.domain.tld - check that a DNS record exists for this domainDetail: DNS problem: NXDOMAIN looking up A for sub2.subdomain.domain.tld - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for sub2.subdomain.domain.tld - check that a DNS record exists for this domain

i have two cnames pointing to subdomain.domain.tld, then a cname for that subdomain pointing to my domain.tld, which is an A record pointing to my IP, I think that’s correct but I could be wrong?

this is outside of our support scope but; if you use http validation, port 80 needs to work and your dns records need to be valid. Generally, you have a single A record which point to your WAN IP. then you have X number of CNAME records for your subdomains which point to that A record.

you can use mxtoolbox to check the dns resolution of all your records but if you get an NXDOMAIN, it’s not going to work and you need to fix it.

If you need further help with this, you’re welcome to join our discord in #other-support.