mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 05:47:45 +00:00
- Work around clients that say they'll update their own A record when they
don't actually have an FQDN with which to do the update.
This commit is contained in:
parent
b1c45d8a31
commit
e9d45f83a4
@ -43,7 +43,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: ddns.c,v 1.10 2001/01/16 23:48:30 mellon Exp $ Copyright (c) 2000-2001 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: ddns.c,v 1.11 2001/01/19 10:59:10 mellon Exp $ Copyright (c) 2000-2001 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "dhcpd.h"
|
||||
@ -667,6 +667,11 @@ int ddns_updates (struct packet *packet,
|
||||
state -> options,
|
||||
&lease -> scope, oc, MDL))
|
||||
goto noclient;
|
||||
/* Win98 and Win2k will happily claim to be willing to
|
||||
update an unqualified domain name. */
|
||||
if (!(oc = lookup_option (&fqdn_universe, packet -> options,
|
||||
FQDN_DOMAINNAME)))
|
||||
goto noclient;
|
||||
if (!(oc = lookup_option (&fqdn_universe, packet -> options,
|
||||
FQDN_FQDN)) ||
|
||||
!evaluate_option_cache (&ddns_fwd_name, packet, lease,
|
||||
|
Loading…
x
Reference in New Issue
Block a user