blake / external-mdns

A service to advertise records for Kubernetes resources on a LAN over multicast DNS.
Apache License 2.0
71 stars 9 forks source link

Can't register Ingress #5

Closed diogodias24 closed 2 years ago

diogodias24 commented 2 years ago

Hi,

I have metalb configured and NGINX Ingress Controller. Already installed avahi in my cluster and nodes. I'm using your repo, and I'm getting this on my side this:

Could not read from &{{0xc000406800}}: dns: empty NSEC block

Here's the ingress I'm using:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-plex
  annotations: {}
spec:
  ingressClassName: nginx
  rules:
  - host: local.media
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: "plex"
            port:
              number: 32400

Am I doing something wrong?

diogodias24 commented 2 years ago

Answearing myself:

I found on your examples that you are using media.local instead of local.media. After this change everything started working. I suppose that is the right way and there's no possible change on your side for the other way of DNS (local.mydns), right?

Thanks and nice job with this :)

blake commented 2 years ago

Hi @diogodias24, this program is specifically designed to make hostnames available as under the .local subdomain used in multicast DNS (RFC 6762). It is not designed as a general purpose DNS server, and therefore its not currently possible to use a different top-level domain (TLD) for advertising records.

Let me know if you have any other questions.

diogodias24 commented 2 years ago

Thanks for answearing back. Closing 👍