Spaces in hostnames?
dhcp1 at thehobsons.co.uk
Tue Aug 8 22:14:31 UTC 2006
sf techguy wrote:
>I'm running an older build of dhcpd (2.0p15), embedded in our
>If a dhcp client computer has a space in their computer hostname, then
>the hostname in dhcpd comes up blank. There are so many eople coming
>and going, there's no way for me to maunually enforce a 'no spaces in
>your computer name' policy.
Yep, it's a known problem.
>Is there a way to force this using the server? I.E., tell the server
>'if the computer hostname contains a space, replace it with a `_` character?'
>or if there's a space in the hostname, don't assign an ip address?
None at all, certainly in version 2 which is rather old. IIRC in
version 3 you end up with hostnames something like "jims%20pc" in DNS
- but it's a long time since I've had to bother about it.
You might be able to do some expression that searches for a space and
acts upon it in version 3, you'd have to read the man pages ("man
dhcp-eval" in particular).
More information about the dhcp-users