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
DNS SRV record retrieval without explicit host #366
Labels
Comments
ralight
added
Type: Enhancement
A new feature for a minor or major release.
Component: libmosquitto
labels
Feb 1, 2017
You'll need to look at two places: client/client_shared.c
And this then goes on to influence lib/srv_mosq.c:
I'm sure you can see the problem! |
Yes I can indeed... so maybe writing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I'm starting experiments with the very useful DNS SRV record for broker address discovery/retrieval. My setup is (now) a local dnsmasq server serving SRV records with (partial config):
so sort of a strange test setup only, but should work: my "local" network is composed of hosts named like "anyhost.bwlocal.it" and the DNS should direct MQTT related traffic to some externally hosted broker.
This works as expected with commands like:
but always fails with:
and dnsmasq logs reveal that the DNS query is something like:
so it seems to me that Mosquitto is trying to guess the domain for building the query and the resulting fqdn is "localhost.bwlocal.it" instead of "bwlocal.it", of course some misconfiguration of our linux hosts can also be a cause but I'm really not finding any possible reason. Hints on where to start searching inside Mosquitto code base?
The text was updated successfully, but these errors were encountered: