]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/dnsmasq/014-Bump_auth_zone_serial_when_reloading_etc_hosts_and_friends.patch
BUG11177: pppoe password not required anymore
[ipfire-2.x.git] / src / patches / dnsmasq / 014-Bump_auth_zone_serial_when_reloading_etc_hosts_and_friends.patch
1 From c8328ecde896575b3cb81cf537747df531f90771 Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Fri, 5 Aug 2016 16:54:58 +0100
4 Subject: [PATCH] Bump auth zone serial when reloading /etc/hosts and friends.
5
6 ---
7 CHANGELOG | 4 ++++
8 src/dnsmasq.c | 2 ++
9 2 files changed, 6 insertions(+)
10
11 diff --git a/CHANGELOG b/CHANGELOG
12 index 9f1e404..4f89799 100644
13 --- a/CHANGELOG
14 +++ b/CHANGELOG
15 @@ -20,6 +20,10 @@ version 2.77
16 Fix problem with --dnssec-timestamp whereby receipt
17 of SIGHUP would erroneously engage timestamp checking.
18 Thanks to Kevin Darbyshire-Bryant for this work.
19 +
20 + Bump zone serial on reloading /etc/hosts and friends
21 + when providing authoritative DNS. Thanks to Harrald
22 + Dunkel for spotting this.
23
24
25 version 2.76
26 diff --git a/src/dnsmasq.c b/src/dnsmasq.c
27 index a47273f..3580bea 100644
28 --- a/src/dnsmasq.c
29 +++ b/src/dnsmasq.c
30 @@ -1226,6 +1226,8 @@ static void async_event(int pipe, time_t now)
31 switch (ev.event)
32 {
33 case EVENT_RELOAD:
34 + daemon->soa_sn++; /* Bump zone serial, as it may have changed. */
35 +
36 #ifdef HAVE_DNSSEC
37 if (daemon->dnssec_no_time_check && option_bool(OPT_DNSSEC_VALID) && option_bool(OPT_DNSSEC_TIME))
38 {
39 --
40 1.7.10.4
41