Skip to content

Remote Server Solver Cache Consistency Guarantee #455

@mageddo

Description

@mageddo

What is Happening

Consider the following scenario (#440 )

I specified two addresses as DNS - 10.0.0.10 and 8.8.8.8. The 10.0.0.10 DNS is only accessible via VPN.

I connected to the VPN and used the dig command to query an address that has an IP within the 10.0.0.10 range. The command was: dig @172.17.0.1 (this is the IP of the Docker where the DNS is listening). There were no issues, and the response was the address 10.0.0.169.

Next, I disconnected from the VPN and tried the dig command again multiple times. I still received the internal IP 10.0.0.169, even though the site has an external IP address on 8.8.8.8. I waited 10 minutes to check the cache, but I still received the internal address.

I suppose this scenario it's related to the response entries cache. Once query has a successful response then DPS will cache it for the time the remote server specifies, 10.0.0.10 in that case.

What is expected

The thing is, once the VPN is disconnected and 10.0.0.10 DNS server is now unavailable, 10.0.0.169 reponse is obsolete, inconsistent, it looks like clear the remote cache when one of the remotes goes down or up, is the expected behavior.

Changes (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureDefinition of a feature to be implemented

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions