]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Work around clients that say they'll update their own A record when they
authorTed Lemon <source@isc.org>
Fri, 19 Jan 2001 10:59:10 +0000 (10:59 +0000)
committerTed Lemon <source@isc.org>
Fri, 19 Jan 2001 10:59:10 +0000 (10:59 +0000)
  don't actually have an FQDN with which to do the update.

server/ddns.c

index f0c7c958baba80d69b70e9059169552acee2d5c3..31fb16d65d40e67fc02445c1df61afd0cdfb2109 100644 (file)
@@ -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,