[Dnsmasq-discuss] SSHFP caching
renmingshuai
renmingshuai at huawei.com
Thu Mar 24 09:00:41 UTC 2022
Hi,
Dnsmasq may not store SSHFP record in the cache. You can read the source code to know which types of records will be stored in the cache. As I know, only A, AAAA, and CNAME will be stored.
where possible relevant code is located:
#0 cache_insert (name=name at entry=0xaaaaaab82ce0 "baidu.com", addr=0xffffffffee38, addr at entry=0xaaaaaab8b3f0, class=class at entry=1, now=1648110309,
now at entry=187649985395072, ttl=ttl at entry=517, flags=136, flags at entry=2864050188) at cache.c:476
#1 0x0000aaaaaaac425c in extract_addresses (header=header at entry=0xaaaaaab84f40, qlen=qlen at entry=324, name=0xaaaaaab82ce0 "baidu.com", now=187649985395072,
now at entry=187649985212416, ipsets=0x144, ipsets at entry=0x623c2ae5, is_sign=0, check_rebind=0, check_rebind at entry=-1430843392, no_cache_dnssec=-1430761664,
no_cache_dnssec at entry=0, secure=<optimized out>, secure at entry=-1430779472, doctored=0xffffffffef24, doctored at entry=0xffffffffefd4) at rfc1035.c:835
#2 0x0000aaaaaaadd038 in process_reply (header=header at entry=0xaaaaaab84f40, now=187649985212416, now at entry=1648110309,
server=0xaaaaaab71ca0 <__gcov0.check_dns_listeners>, n=n at entry=324, check_rebind=-1430843392, check_rebind at entry=0, no_cache=0, cache_secure=-1430779472,
bogusanswer=bogusanswer at entry=43690, ad_reqd=32, do_bit=0, added_pheader=<optimized out>, check_subnet=<optimized out>,
query_source=query_source at entry=0xaaaaaab8b980) at forward.c:737
#3 0x0000aaaaaaae33e8 in reply_query (fd=<optimized out>, now=1648110309) at forward.c:1213
#4 0x0000aaaaaaaea7f8 in check_dns_listeners (now=1648110309) at dnsmasq.c:1758
#5 0x0000aaaaaaab945c in main (argc=<optimized out>, argv=<optimized out>) at dnsmasq.c:1206
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20220324/b01116de/attachment.htm>
More information about the Dnsmasq-discuss
mailing list