Commit c8328ecd authored by Simon Kelley's avatar Simon Kelley

Bump auth zone serial when reloading /etc/hosts and friends.

parent 094bfaeb
...@@ -21,6 +21,10 @@ version 2.77 ...@@ -21,6 +21,10 @@ version 2.77
of SIGHUP would erroneously engage timestamp checking. of SIGHUP would erroneously engage timestamp checking.
Thanks to Kevin Darbyshire-Bryant for this work. Thanks to Kevin Darbyshire-Bryant for this work.
Bump zone serial on reloading /etc/hosts and friends
when providing authoritative DNS. Thanks to Harrald
Dunkel for spotting this.
version 2.76 version 2.76
Include 0.0.0.0/8 in DNS rebind checks. This range Include 0.0.0.0/8 in DNS rebind checks. This range
......
...@@ -1226,6 +1226,8 @@ static void async_event(int pipe, time_t now) ...@@ -1226,6 +1226,8 @@ static void async_event(int pipe, time_t now)
switch (ev.event) switch (ev.event)
{ {
case EVENT_RELOAD: case EVENT_RELOAD:
daemon->soa_sn++; /* Bump zone serial, as it may have changed. */
#ifdef HAVE_DNSSEC #ifdef HAVE_DNSSEC
if (daemon->dnssec_no_time_check && option_bool(OPT_DNSSEC_VALID) && option_bool(OPT_DNSSEC_TIME)) if (daemon->dnssec_no_time_check && option_bool(OPT_DNSSEC_VALID) && option_bool(OPT_DNSSEC_TIME))
{ {
......
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