mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
eb1fe15ca80b6bc43cd6bfdf309ec6c590aff811
When inserting new cache records, we first delete existing records of the same name/type, to maintain consistency. This has the side effect of deleting any CNAMES which have the records as target. So cname1.example CNAME record.example cname2.example CNAME record.example looking up cname2.example will push it into the cache, and also push record.example. Doing that deletes any cache of cname1.example. This changeset avoids that problem by making sure that when deleting record.example, and re-insterting it (with the same name -important), it uses the same struct crec, with the same uid. This preserves the existing cnames.
Description
No description provided
Languages
C
94.2%
Perl
2.3%
HTML
1.2%
Shell
1.1%
Makefile
0.6%
Other
0.6%