I had to update coredns helm repo and version but the rest is similar.
I want to do that at the end from my computer (which is not a node in the cluster)
curl http://nginx.test.org
but it won't work like that because my computers are not looking for the DNS installed in my cluster.
root@test-pcl4014:/tmp/external-dns-demo/flux/resources/demo# kubectl -n external-dns get svc coredns-coredns
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
coredns-coredns NodePort 10.111.237.33 <none> 53:30669/UDP,53:30669/TCP 6m3s
root@test-pcl4014:/tmp/external-dns-demo/flux/resources/demo# kubectl get nodes
root@test-pcl4014:/tmp/external-dns-demo/flux/resources/demo# dig -p 30669 nginx.test.org
; <<>> DiG 9.16.1-Ubuntu <<>> -p 30669 nginx.test.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13436
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 944305e8746f8e6e (echoed)
;; QUESTION SECTION:
;nginx.test.org. IN A
;; ANSWER SECTION:
nginx.test.org. 30 IN A 10.1.34.55
;; Query time: 3 msec
;; SERVER: 127.0.0.53#30669(127.0.0.53)
;; WHEN: Wed Jun 23 10:50:18 EDT 2021
;; MSG SIZE rcvd: 85
root@test-pcl4014:/tmp/external-dns-demo/flux/resources/demo# curl http://nginx.test.org
curl: (6) Could not resolve host: nginx.test.org
there is a way to add this DNS entry into my computers (windows and linux). and instead of using a nodePort (30669) in my case.. could we use a LoadBalancer IP returned my metallb ? Like that I think we could have a fixed IP for the DNS