← index #6618Issue #9166
Duplicate · high · value 1.831
QUERY · ISSUE

ESP32: dhcp_hostname is read-only on non-WLAN interfaces

openby scyopened 2020-11-13updated 2025-11-25
docs

Hi there!

On a network.WLAN interface, I can set .config(dhcp_hostname='galactica'). However, on a LAN interface, I cannot:

>>> import network
>>> l = network.LAN()
>>> l.config('dhcp_hostname')
'espressif'
>>> l.config(dhcp_hostname='galactica')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: unknown config param

I was trying to do this on an Olimex ESP32-POE board, i.e. phy_type=network.PHY_LAN8720, but as far as I understand, the exact interface doesn’t matter since this config option will simply be passed to the ESP32’s DHCP client.

Would be cool if I could set a hostname also for a wired board! Thanks in advance for looking into this.

CANDIDATE · ISSUE

ESP32 mDNS support on Ethernet (class LAN)

openby mohnazemiopened 2022-08-31updated 2026-03-19
enhancementport-esp32

Hi guys,

I wanted to know if there is a specific reason why the mDNS is supported on the WLAN interface (via hostname config parameter) for ESP32 but it is not supported on the LAN/Ethernet interface. There seems to be no limitation in IDF's TCP/IP Adapter library for this, but the ESP32 port does not expose a config parameter to set this.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied