Commit dd48f282 authored by Ted Lemon's avatar Ted Lemon
Browse files

Keep dns update records around if deletes fail.

parent 13b0934e
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#ifndef lint #ifndef lint
static char ocopyright[] = static char ocopyright[] =
"$Id: dhcpd.c,v 1.87 2000/03/18 03:34:10 mellon Exp $ Copyright 1995-2000 The Internet Software Consortium."; "$Id: dhcpd.c,v 1.88 2000/04/14 16:28:07 mellon Exp $ Copyright 1995-2000 The Internet Software Consortium.";
#endif #endif
static char copyright[] = static char copyright[] =
...@@ -97,7 +97,7 @@ on commit { \n\ ...@@ -97,7 +97,7 @@ on commit { \n\
reverse (1, \n\ reverse (1, \n\
leased-address)), \".\", \n\ leased-address)), \".\", \n\
pick (config-option server.ddns-rev-domainname, \n\ pick (config-option server.ddns-rev-domainname, \n\
\n\".in-addr.arpa.\")); \n\ \"in-addr.arpa.\")); \n\
switch (ns-update (delete (IN, PTR, ddns-rev-name, null), \n\ switch (ns-update (delete (IN, PTR, ddns-rev-name, null), \n\
add (IN, PTR, ddns-rev-name, ddns-fwd-name, \n\ add (IN, PTR, ddns-rev-name, ddns-fwd-name, \n\
lease-time / 2))) \n\ lease-time / 2))) \n\
...@@ -105,18 +105,29 @@ on commit { \n\ ...@@ -105,18 +105,29 @@ on commit { \n\
default: \n\ default: \n\
unset ddns-rev-name; \n\ unset ddns-rev-name; \n\
on release or expiry { \n\ on release or expiry { \n\
eval ns-update (delete (IN, A, ddns-fwd-name, leased-address)); \n\ switch (ns-update (delete (IN, A, ddns-fwd-name, \n\
unset ddns-fwd-name; \n\ leased-address))) { \n\
case NOERROR: \n\
unset ddns-fwd-name; \n\
break; \n\
} \n\
on release or expiry; \n\ on release or expiry; \n\
} \n\ } \n\
break; \n\ break; \n\
\n\ \n\
case NOERROR: \n\ case NOERROR: \n\
on release or expiry { \n\ on release or expiry { \n\
eval ns-update (delete (IN, A, ddns-fwd-name, leased-address)); \n\ switch (ns-update (delete (IN, PTR, ddns-rev-name, null))) { \n\
eval ns-update (delete (IN, PTR, ddns-rev-name, null)); \n\ case NOERROR: \n\
unset ddns-rev-name; \n\ unset ddns-rev-name; \n\
unset ddns-fwd-name; \n\ break; \n\
} \n\
switch (ns-update (delete (IN, A, ddns-fwd-name, \n\
leased-address))) { \n\
case NOERROR: \n\
unset ddns-fwd-name; \n\
break; \n\
} \n\
on release or expiry; \n\ on release or expiry; \n\
} \n\ } \n\
} \n\ } \n\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment