I have installed FF on a raspberry pi through docker.
I don't have a local DNS server set up, so I am using /etc/hosts to manage pointing at the right IP addresses.
I can access the admin system, but when I try to "open editor" on an instance I get
Error: getaddrinfo ENOTFOUND forge.example.com
I have set up so the Raspberry pi can resove this IP address (using /etc/hosts) and if I ping that address from the pi, I can see it.
Is this because I haven't set up a DNS server? I'm really trying to avoid it as I know nothing about DNS, and it's a really steep learning curve
Update: I have now set up pihole and am using that as a dns server. The pi (running flowfuse) is routed through it plus the mac I'm using. I'm still getting the error.
You can not use /etc/hosts
because the Node-RED instances in the container all need to be able to resolve the hostname of the FlowFuse application to it's external IP address and they can not read the host machines /etc/hosts
file
DNS is required for FlowFuse on Docker and Kubernetes, there is no way to avoid it.
You will need to add some more details about how you have configured the PiHole for us to be able to help.
Assuming you are still using example.com
as the domain, you need to ensure that ANY hostname in that domain resolves to the IP address of the Raspberry Pi. e.g assuming the Pi has IP address 192.168.1.1 then all of the following need to resolve to that address:
There is doc to for Pi hole here: DNS Setup • FlowFuse Docs Just remember to change 192.168.0.22 to the IP address of the Pi with Docker
1 Like
Thank you @hardillb - super helpful
I have persisted. FF is running on a rasbperry pi. I have set the DNS of the pi to point at pihole (on the same machine) as its dns. When I run "dig anything.example.com" I get the same IP address (which is the server ff is running on), so it's all working.
However I'm still getting the same error. Any other ideas on anything I could try?
Use the docker exec -it [id-of-nr-container] /bin/bash
to get a shell in the Node-RED container and then run the following please
The Node-RED container will be the one with the uuid for a name
nslookup forge.example.com
And post the output please.
Also have you restarted the pi since installing pi hole?