[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dhclient: Bogus server name
I have a problem with my DHCP server. For some reason, it appends a space
to the end of the server name field (sname) in the DHCP packet. Also, for
some reason, dhclient checks for a valid name in this field and displays
"Bogus server name %s" and drops the DHCP packet if the name is not valid.
OK, so that's the history. I have two proposed solutions (two and a half,
1) Trim off any trailing spaces from the end of the 'sname' field before
checking to see if the hostname is valid.
2) Add an option to dhclient.conf or, more likely, the command line, to
ignore bogus server names.
2.5) Double check the current sources (in the CVS tree) to see if this has
already been changed. (Actually, I should have done that before I wrote
this email, but I'm not online right now).
Does anybody know why dhclient checks for a valid host name? Is it a
"security" issue -- i.e. discard packets from bogus hosts? Does anybody
have an opinion on which solution is to be preferred? (I have implemented
the first one -- the second will take some effort).