DNS Issue - Nide can't resolve host #4822
Replies: 4 comments 10 replies
-
This seems like a docker networking question more than a homepage one. Have a look at https://docs.docker.com/engine/network/ and maybe ask over in a docker-specific forum, or a truenas one. If the hostname isn’t resolving then the fix will have nothing to do with homepage |
Beta Was this translation helpful? Give feedback.
-
@shamoon I don't think so. I think it's an container issue. I created a "custom app" in TrueNAS with my debug container that i'm using a lot on work if something is broken. It got the same network settings from docker like homepage. Since the homepage container does not contain, this is the only option to ensure dns is working as expected. As you can see below, the IP can resolved correctly.
|
Beta Was this translation helpful? Give feedback.
-
node:alpine
node:slim
I found this: https://bell-sw.com/blog/how-to-deal-with-alpine-dns-issues/ . Now i try to find the packages which may help alpine to work correctly with DNS (maybe gcompat) |
Beta Was this translation helpful? Give feedback.
-
Some more findings: Query with specific ip family
As you can see, the issue seems to be that the default setting in node is to use IPv6 to query dns server. Therefore I dry to dig in the a node debug container which gives me:
Doing the same on the TrueNAS which is working
I thought setup the IPv6 address as DNS in docker would resolve the issue, but it doesn't. based on the dig above he tries to resolve via |
Beta Was this translation helpful? Give feedback.
-
Description
I've running Homepage in my TrueNAS Scale. For some reasons Homepage can't resolve some hosts. I was working before, but I'm unsure if it is because i use OpenWRT for some days ore another reason. On this OpenWRT Adguard Home is the main DNS (on port 53 and others) and queries OpenWRTs dnsmasq (on port 54) to resolve the hostsnames.
Adguard shows me in the log nodejs on the TrueNAS queries the DNS
so I'm out of ideas whats wrong
homepage version
v0.10.9
Installation method
Docker
Configuration
Container Logs
dig traefik.infra.internal @10.10.10.254
; <<>> DiG 9.18.24-1-Debian <<>> traefik.infra.internal @10.10.10.254
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31322
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;traefik.infra.internal. IN A
;; ANSWER SECTION:
traefik.infra.internal. 0 IN A 10.10.10.120
;; Query time: 0 msec
;; SERVER: 10.10.10.254#53(10.10.10.254) (UDP)
;; WHEN: Sat Feb 22 17:05:53 CET 2025
;; MSG SIZE rcvd: 67
dig traefik.svc.internal @10.10.10.254
; <<>> DiG 9.18.24-1-Debian <<>> traefik.svc.internal @10.10.10.254
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45053
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;traefik.svc.internal. IN A
;; ANSWER SECTION:
traefik.svc.internal. 0 IN A 10.10.10.121
;; Query time: 4 msec
;; SERVER: 10.10.10.254#53(10.10.10.254) (UDP)
;; WHEN: Sat Feb 22 17:06:14 CET 2025
And ensure that the
resolv.conf
inside the container is correct.resolv.conf inside docker container
Than, i test lookup inside the homepage docker container calling node directly
Beta Was this translation helpful? Give feedback.
All reactions