Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Azure RTOS NetxDuo mDNS domain set issue #281

Open
faharintisar opened this issue Aug 16, 2024 · 0 comments
Open

Azure RTOS NetxDuo mDNS domain set issue #281

faharintisar opened this issue Aug 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@faharintisar
Copy link

My issue is related to:-

MCU: STM32H733

Middleware: Azure RTOS

Middleware Component: NetxDuo (6.2.0)

Addon: mDNS

I am using Azure RTOS with NetxDuo, I implemented a secure https server in my device and implemented mDNS which was working very well for me till I required to change domain. I want to add a sub-domain like (myhostname.mysubdomain.local). In documentation it is stated that by default the domain is .local but can be changed using following API

image

Now, I have implemented this API in my code like this:


status =
nx_mdns_create(&mdns_instance, &ip_instance, &netxduo_packet_pool, MDNS_PRIORITY, mdns_thread_stack,
sizeof(mdns_thread_stack), (UCHAR *)hostname, (VOID *)local_service_cache,
sizeof(local_service_cache), (VOID *)peer_service_cache, sizeof(peer_service_cache), NX_NULL);

if (status != NX_SUCCESS)
{
Error_Handler();
}

status = nx_mdns_domain_name_set(&mdns_instance, "home");

status = nx_mdns_enable(&mdns_instance, PRIMARY_INTERFACE);

It returns success and according to the document I must be able to ping hostname.home but thats not the case not matter what I done it will be always accessible through hostname.local

I checked the domain name buffer inside mdns_instance, its updated to home but even then changed domain is not accessible.

Tried on Linux (avahi resolve) and Windows,, same results
Tried clearing dns cache's, same result

Goal: To be able to add subdomain

Bigger Picture: I want to use wild card while generating certificate and keys in alt name and CN so that same certificate can be used in many devices thats why I need subdomain as it allows wild card in *.example.local not in *.local

@faharintisar faharintisar added the bug Something isn't working label Aug 16, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant