mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 22:35:25 +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:
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -667,6 +667,11 @@ int ddns_updates (struct packet *packet,
|
|||||||
state -> options,
|
state -> options,
|
||||||
&lease -> scope, oc, MDL))
|
&lease -> scope, oc, MDL))
|
||||||
goto noclient;
|
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,
|
if (!(oc = lookup_option (&fqdn_universe, packet -> options,
|
||||||
FQDN_FQDN)) ||
|
FQDN_FQDN)) ||
|
||||||
!evaluate_option_cache (&ddns_fwd_name, packet, lease,
|
!evaluate_option_cache (&ddns_fwd_name, packet, lease,
|
||||||
|
Reference in New Issue
Block a user