NXDOMAIN on subdomains

Hi everyone,
I have recently migrated my Traefik instance from my raspberry pi to another computer with Proxmox, and Traefik is running in a Debian LXC container.
On the RPI, everything worked fine and subdomains worked correctly.
Now i get an UNKNOWN_HOST on Firefox and NXDOMAIN with DiG on subdomains.

My compose file for Traefik:

services:
  traefik:
    container_name: traefik
    image: "traefik:latest"  # Automatically pulls the latest stable version
    command:

      - "--api.dashboard=true"
      - "--entrypoints.web.address=:80"
      - "--entrypoints.websecure.address=:443"
      - "--certificatesresolvers.ionos.acme.dnschallenge.provider=ionos"
      - "--certificatesresolvers.ionos.acme.email=<email>"
      - "--certificatesresolvers.ionos.acme.storage=/letsencrypt/acme.json"
      - "--certificatesresolvers.ionos.acme.domains=*.muplex.org,muplex.org"  # Specify wildcard and root domain
    environment:
      - IONOS_API_KEY=<key>  # Replace with your actual API key in the correct format
    ports:
      - "80:80"
      - "443:443"
      - "1010:1010" #Dashboard
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.dashboard.rule=Host(`tfk.muplex.org`)"  # Dashboard on subdomain
      - "traefik.http.routers.dashboard.entrypoints=websecure"
      - "traefik.http.routers.dashboard.service=api@internal"
      - "traefik.http.routers.dashboard.tls.certresolver=ionos"  # Enable TLS
      - "traefik.http.routers.dashboard.middlewares=auth"  # Attach middleware
      - "traefik.http.middlewares.auth.basicauth.users=user:hash"
    volumes:
      - "/app/traefik/log/traefik:/var/log/traefik"
      - "/app/traefik/letsencrypt:/letsencrypt"      # Persistent storage for certs
      - "/app/traefik/config/:/etc/traefik/"
      - "/etc/localtime:/etc/localtime:ro"
      - "/var/run/docker.sock:/var/run/docker.sock"  # Required if Traefik is managing Docker services
    restart: unless-stopped
    networks:
    - traefik-proxy
    
networks:
  traefik-proxy:
    external: true

Unknown host or NXDOMAIN indicates you have no DNS entry for the domain you call, so the client can not resolve domain to IP.

I do, however, have a root record pointing to the private ip of my LXC container running Traefik.
I also have a wildcard CNAME.

I'm not sure what i did or how, but somehow everything works now!
I'm guessing that the DNS changes just had to propagate.

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