Skip to content
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

change .local to .com #2

Open
smarta1980 opened this issue Dec 18, 2022 · 4 comments
Open

change .local to .com #2

smarta1980 opened this issue Dec 18, 2022 · 4 comments

Comments

@smarta1980
Copy link

is there a way to change .local to .com?

@LaborEtArs
Copy link
Owner

Well; mDNS is made for the local network. The spec explicitly states, that network packages might only travel in the local network. So, of course the string '.local' can be changed to '.com', but mDNS would work as expected then...

@smarta1980
Copy link
Author

smarta1980 commented Dec 18, 2022

how to change .local to .com or .org because javascript websocket not working with .local can you tell me steps how to change it?

I am using #include <ESP8266mDNS.h> with esp8266

@smarta1980
Copy link
Author

is there any solution it is appreciated?

@LaborEtArs
Copy link
Owner

Maybe I do not understand the problem correctly, but...
From Wikipedia: In computer networking [...], the multicast DNS (mDNS) protocol resolves hostnames [...] to IP addresses within small networks that do not include a local name server[...].
From RFC 6762 (Multicast DNS): Multicast DNS (mDNS) provides the ability to perform DNS-like operations on the local link in the absence of any conventional Unicast DNS server.

So, all in all, mDNS is supposed to work only locally, network packages from or to a 'non-local' link are prohibited for mDNS server. In the local link hostnames have to have the '.local' extension.

Are you maybe looking for a 'DNS server' (without the 'm')?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants