-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT: trying to acces host 127.0.0.11:53 #67
Comments
I will start by saying that I don't run Home Assistant so what I say next might not be applicable. I have seen the 127.0.0.11:53 address+port combination before. In theory, the whole 127/8 network (ie all hosts from 127.0.0.1 through 127.255.255.254) is reserved for loopback. Using 127.0.0.1 is just a convention. Docker (mis)uses 127.0.0.11 to mean "the DNS resolver for this container":
If you are running multiple Docker containers in non-host mode then, providing those containers are attached to the same internal bridged network, each container can reach every other container via
In the third-to-last line, you can see the 127.0.0.11 as the address of the name server that's responding to the query. The answer it's providing is that the Mosquitto container is associated with the IP address 172.30.0.5.
In my case, that Mosquitto container is also reachable using a fully-qualified domain name:
The answer is still coming from 127.0.0.11 but the query is actually being relayed through the host's (Raspberry Pi's) resolver:
The host where Node-RED and Mosquitto are running is .60 while .55 and .57 are running redundant copies of BIND. So, inside the Node-RED container, the DNS query is being directed to 127.0.0.11 (the container's resolver), which relays it to the resolver of the Pi on which the container is running (.60) which, in turn, relays it to one of the DNS servers running on .55 and .57.
To try to draw all of that together with what I'm seeing in your output, something (and I don't know what that something is) is asking 127.0.0.11 to provide an IP address for the host named "mqtt2". Not having any idea of your actual environment (and, in particular, whether Docker is involved or not), it looks to me like this is a Docker container and there is:
It is not that the HA-Addon is trying to use the MQTT-broker with the address 127.0.0.11:53. It is that the HA-Addon is asking the DNS resolver at 127.0.0.11:53 to answer the question, "what is the IP address for Does that help? |
Hello Paraphraser, thank you a lot for your (very) detalled explanation. I have not enough skills in docker configuration, however I roughly can follow your explanation. It guides me to a direction which I already suspected. Many thanks!! |
Maybe there is a special character in the mqtt-password. See open issue #85 |
I had a similar error
I resolved it by installing the Mosquitto broker addon via the addon store in Home Assistant The value of "core-mosquitto" can be changed via the config section of the gosungrow addon and is the value of the mqtt_host setting |
I had the HA Sungrow-Addon already running some weeks ago, however I could not see any entity related to it.
So I suspected that my MQTT environment with a second MQTT-broker was making issues and I reconfigered my network so that all MQTT clients now are using the MQTT-broker provided by HA. However now the HA-Addon cannot be started correctly anymore. The protocol says at the end:
FYI:
Can anybody tell me why the HA-Addon tries to use the MQTT-broker with address 127.0.0.11:53 and what I can do to make the Addon start correctly?
Thanks for any help!
Best Regards
Hans
The text was updated successfully, but these errors were encountered: