Why dns entrypoint is erroring that it doesnt exists?

I have written this traefik.yml static config:

global:
  # Send anonymous usage data
  sendAnonymousUsage: true

metrics:
  prometheus:
    addServicesLabels: true
    addRoutersLabels: true
    buckets:
      - 0.1
      - 0.3
      - 1.2
      - 5.0

accessLog:
  filePath: "/var/log/access.log"
  format: json
  bufferingSize: 100
  filters:
    statusCodes:
      - "200"
      - "300-302"
    retryAttempts: true
    minDuration: "10ms"

log:
  filePath: "/var/log/traefik.log"
  format: json
  level: DEBUG

entryPoints:
  traefik:
    address: ":8081"
  web:
    address: ":80"
  dns:
    address: ":53"
  https:
    address: ":443"
    http:
      tls: default
    forwardedHeaders:
         insecure: true
         trustedIPs:
           - "127.0.0.1/32"
           - "192.168.1.1/32"

api:
  insecure: true
  dashboard: true

serversTransport:
  insecureSkipVerify: true

providers:
  file:
    directory: "/config/"
    watch: true
  docker:
    endpoint: "unix:///var/run/docker.sock"
    watch: true
    swarmMode: false
    exposedByDefault: false

and this is my dns.yaml dynamic config for load balancing 2 dns servers on 2 different nodes.

# As YAML Configuration File
udp:
  routers:
    router-dns:
      entryPoints:
        - dns
      service: dns-service

  services:
    dns-service:
      loadBalancer:
        servers:
          - address: "192.168.1.11:5353"
          - address: "192.168.1.10:53"

the node ending with ip 11 have port 5353 of exposed from container as being the same node on which traefik container is running has udp port exposed 53.

but the dns.yml is erroring:

I am not getting any clue why the error says no valid entrypoing dns when it is clearly visible above that dns at port 53 is the entrypoint.

I am using traefik version 2.8.3 on ubuntu 22.04 LTS platform x86.

Hello,

you have to add the suffix /udp inside the address.

  dns:
   address: ":53/udp"

yes, I just realized I need to tell its a udp entrypoint. Thanks (y)

1 Like

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