]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't do the DNS update for static hosts.
authorTed Lemon <source@isc.org>
Tue, 5 Dec 2000 07:30:37 +0000 (07:30 +0000)
committerTed Lemon <source@isc.org>
Tue, 5 Dec 2000 07:30:37 +0000 (07:30 +0000)
server/dhcpd.c

index 604cce61786e9e2132e619088dc7903470685260..2a5eb9909acbab2cb60712393d3c3d3ccd93868a 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char ocopyright[] =
-"$Id: dhcpd.c,v 1.103 2000/11/29 05:35:02 mellon Exp $ Copyright 1995-2000 Internet Software Consortium.";
+"$Id: dhcpd.c,v 1.104 2000/12/05 07:30:37 mellon Exp $ Copyright 1995-2000 Internet Software Consortium.";
 #endif
 
   static char copyright[] =
@@ -70,7 +70,8 @@ int server_identifier_matched;
 #if defined (NSUPDATE)
 char std_nsupdate [] = "                                                   \n\
 on commit {                                                                \n\
-  if (((config-option server.ddns-updates = null) or                       \n\
+  if (not static and                                                       \n\
+      ((config-option server.ddns-updates = null) or                       \n\
        (config-option server.ddns-updates != 0))) {                        \n\
     set new-ddns-fwd-name =                                                \n\
       concat (pick (config-option server.ddns-hostname,                            \n\