People like to do RFC violating things with the domain-name option and
include a space seperated list of domains instead of the domain of the host. This is supported on too many platforms to break for now so, remove validation of this option for the moment. The correct solution longer term is to implement RFC 3397 support and then treat domain-name options containing space seperated lists of domains as domain-search options for backwards compatability. Approved by: re (dhclient blanket)
This commit is contained in:
parent
8ea01c0922
commit
b862e39773
@ -2234,7 +2234,6 @@ check_option(struct client_lease *l, int option)
|
||||
}
|
||||
return (1) ;
|
||||
case DHO_HOST_NAME:
|
||||
case DHO_DOMAIN_NAME:
|
||||
case DHO_NIS_DOMAIN:
|
||||
if (!res_hnok(sbuf)) {
|
||||
warning("Bogus Host Name option %d: %s (%s)", option,
|
||||
@ -2242,6 +2241,7 @@ check_option(struct client_lease *l, int option)
|
||||
return (0);
|
||||
}
|
||||
return (1);
|
||||
case DHO_DOMAIN_NAME:
|
||||
case DHO_PAD:
|
||||
case DHO_TIME_OFFSET:
|
||||
case DHO_BOOT_SIZE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user