mDNS multiple hostnames (alias)?
Posted: Tue Nov 13, 2018 9:54 pm
I have either one or multiple devices on the network which share the same services.
For WiFi AP, I set the SSID uniquely as "base-xxxx" where xxxx is unique and derived from the MAC address.
But for STA and ETH, they are just anonymous devices on the network with dhcp given IP. (at least I can set the dhcp-client hostname uniquely -see https://esp32.com/viewtopic.php?t=1406 )
If there is just one device on the network (or I don't care which device responds), I would like to be able to access it using mDNS at http://base.local
In the case of multiple devices present, I would also like to be able to access as http://base-xxxx.local (same unique name as SSID).
That way I know for sure which device I'm talking to.
But the mDNS implementation only seems to support one hostname, and no concept of an alias. How can I get both http://base.local and http://base-xxxx.local working?
Interestingly, it seems that there is some conflict resolution going on in the mDNS. I'm seeing some devices coming up with base-2.local and base-3.local, etc...
But that doesn't help me know which device I'm talking to.
Thoughts?
For WiFi AP, I set the SSID uniquely as "base-xxxx" where xxxx is unique and derived from the MAC address.
But for STA and ETH, they are just anonymous devices on the network with dhcp given IP. (at least I can set the dhcp-client hostname uniquely -see https://esp32.com/viewtopic.php?t=1406 )
If there is just one device on the network (or I don't care which device responds), I would like to be able to access it using mDNS at http://base.local
In the case of multiple devices present, I would also like to be able to access as http://base-xxxx.local (same unique name as SSID).
That way I know for sure which device I'm talking to.
But the mDNS implementation only seems to support one hostname, and no concept of an alias. How can I get both http://base.local and http://base-xxxx.local working?
Interestingly, it seems that there is some conflict resolution going on in the mDNS. I'm seeing some devices coming up with base-2.local and base-3.local, etc...
But that doesn't help me know which device I'm talking to.
Thoughts?