Bug #12734
open
Long hostname breaks DHCP leases layout
Added by Juri Oo almost 3 years ago.
Updated almost 3 years ago.
Description
It appears, that long hostnames will kind of break the dhcp leases status page.
With Nmap package and MAC vendors, the right part is cut off almost completely and horizontal scrollbar is added at the bottom.
Is this normal? I can see long MAC vendors are being cut to 3 rows. Shouldn't the hostname line also be cut at some point (in such rare cases)?
Tested with 2.5.2-RELEASE (amd64). Hostname is 40 characters long.
Files
- Status changed from New to Incomplete
- Target version deleted (
2.6.0)
You have blanked out so much of the text on those images it's impossible to tell what the problem might be.
It's not uncommon for misbehaving clients to submit out of spec hostnames, and ISC DHCPD takes what they give. The best workaround there is to configure a static mapping for that device with its MAC address and a custom hostname. You can leave the IP address blank and it will still obtain that automatically.
Jim Pingle wrote in #note-1:
You have blanked out so much of the text on those images it's impossible to tell what the problem might be.
It's not uncommon for misbehaving clients to submit out of spec hostnames, and ISC DHCPD takes what they give. The best workaround there is to configure a static mapping for that device with its MAC address and a custom hostname. You can leave the IP address blank and it will still obtain that automatically.
I tried to make a better screenshot, but it seems the layout has almost fixed itself in the meantime (even with this long hostname still there). Horizontal scrollbar is still present, but WOL and static mapping buttons are now visible without scrolling.
I agree, that static mapping is the right fix for this, but I also wish we had more control over the page width in such cases (like the 3 row dashboard).
I added better screenshot with disappeared buttons and scrollbar at the bottom (host with a long hostname is not shown).
In fact - the solution to configure static mapping, using only the hostname and blank IP address does not seem to work - it needs the IP address for the hostname change in dhcp status page!
Also available in: Atom
PDF