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

Network driver in AP mode should support DNS name resolution #1171

Open
UncleGrumpy opened this issue May 28, 2024 · 0 comments
Open

Network driver in AP mode should support DNS name resolution #1171

UncleGrumpy opened this issue May 28, 2024 · 0 comments

Comments

@UncleGrumpy
Copy link
Collaborator

UncleGrumpy commented May 28, 2024

Both the ESP32 and Pico-W network divers support dhcp name reservation for clients connected to the access point, but neither currently supports dns name resolution for hosts on the network. The IDE included libraries for both platforms support lightweight DNS name servers that should be started on the AP interface along with the DHCP servers that are currently supported in AtomVM. This will allow clients on the soft-AP to reach each other by hostname, so that the use of static IPs is not required for successful communication between hosts. AtomVM currently does not support requesting a static IP for devices in STA mode, thus making any communication on a device provided access point impossible, except between clients and the device providing the access point, since the IP of any other hosts cannot be known or discovered.

Perhaps a simpler alternative to low level device specific implementations would be to add dns server support as an Erlang module. This service should start automatically for the AP interface. It could also be useful to provide a dns server on any interface, allowing for isolation (and control) of dns records for a fleet of deployed AtomVM devices.

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

1 participant