Closed Bug 1440293 Opened 8 years ago Closed 8 years ago

Offices’ resolver caches DNS records longer than it should.

Categories

(Infrastructure & Operations :: DNS and Domain Registration, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: SimonSapin, Unassigned)

Details

Yesterday I changed the A record for a domain name that I manage to a different IP address, and left the existing 300 seconds TTL unchanged. When asking the authoritative server directly, or when resolving from some other network locations, I get the correct (new) IP address with a small TTL: % host -v poissonniere.exyr.org dns1.alwaysdata.com […] ;; ANSWER SECTION: poissonniere.exyr.org. 293 IN A 82.255.19.248 From the Paris office’s wired ethernet network, today I still get the old IP address with a TTL longer than expected: % host -v poissonniere.exyr.org […] ;; ANSWER SECTION: poissonniere.exyr.org. 11575 IN A 90.79.210.13 This is when using the resolvers provided by DHCP: % cat /etc/resolv.conf # Generated by resolvconf search par1.mozilla.com mozilla.com nameserver 10.243.75.120 nameserver 2a00:8c40:243:275::1:120 % host 10.243.75.120 120.75.243.10.in-addr.arpa domain name pointer infoblox1.private.par1.mozilla.com. It looks like this resolver is caching results longer than the upstream TTL’s allows it to. Is this intentional? Until this incorrect cache expires I can’t access this server from the office network without messing with my /etc/hosts file. (Connecting to the IP address fails because the server only has a TLS certificate for that domain.)
You've not updated the TTL for any A records in exyr.org? I don't believe the issue to be infoblox, infoblox looks this up against our internal ns. Perhaps the problem is our internal ns. ; <<>> DiG 9.11.2 <<>> poissonniere.exyr.org @10.22.75.40 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10903 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 5 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;poissonniere.exyr.org. IN A ;; ANSWER SECTION: poissonniere.exyr.org. 86393 IN A 82.255.19.248 ;; AUTHORITY SECTION: exyr.org. 24983 IN NS dns2.alwaysdata.com. exyr.org. 24983 IN NS dns1.alwaysdata.com. ;; ADDITIONAL SECTION: dns1.alwaysdata.com. 86387 IN A 178.32.28.107 dns1.alwaysdata.com. 86065 IN AAAA 2001:41d0:8:4734:5::1 dns2.alwaysdata.com. 86065 IN A 62.210.66.148 dns2.alwaysdata.com. 86065 IN AAAA 2001:bc8:c084:12:1::1 ;; Query time: 82 msec ;; SERVER: 10.22.75.40#53(10.22.75.40) ;; WHEN: Thu Feb 22 08:19:07 EST 2018 ;; MSG SIZE rcvd: 206
(In reply to Rob Tucker [:rtucker] from comment #1) > You've not updated the TTL for any A records in exyr.org? The TTL of relevant records has been set to 300 seconds for a long time. I did not change it when I changed the A record’s value. > infoblox looks this up against our internal ns I don’t know what server exactly does it, but it looks like something somewhere ignores the TTL given by the authoritative server and arbitrarily rewrites it to 24 hours.
(In reply to Simon Sapin (:SimonSapin) from comment #2) > I don’t know what server exactly does it, but it looks like something > somewhere ignores the TTL given by the authoritative server and arbitrarily > rewrites it to 24 hours. I can confirm this behavior. I'm still looking to see at what layer this is happening. I'll have an update for you shortly.
During the course of debugging this we flushed caches - and the problem isn't resurfacing. We did observe TTLs higher than 300 seconds earlier today but it's presently working as expected. Putting this on hold until it happens again and we can debug further.
Yes, it’s been more than 24 hours so I expect that all obsolete cache entries from comment 0 have expired by now, so the problem can’t be reproduced with exyr.org anymore. If you have some other domain that you control, I expect that you should be able to reproduce by having some A record with a TTL of 300 seconds (or some other relatively short TTL), resolve it from a Mozilla office network, change it upstream, wait for more than the TTL but less than 24 hours, observe the new value from a resolver in some other network, and observe the old value from the office network.
I'm unable to reproduce this with a test domain with a 300 second TTL. Both our internal forwarders, Infoblox, and public resolvers indicate the proper TTL. I checked poissonniere.exyr.org again and the TTL is reported at 300 seconds.
Please reopen if this continues to be an issue.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.