In this article:
    Applicable to:
    • Twingate Component: Client
    • Platform: Linux

    Overview

    Some Linux users, particularly those running Arch Linux, have reported experiencing delays in DNS requests when Twingate is active. These delays manifest as sporadic 5-second timeouts on network requests.

    Symptoms

    • Sporadic 5-second timeouts on network requests while Twingate is active.
    • Delays observed specifically in DNS resolution, leading to slower network performance.

    Troubleshooting

    The root cause of this issue lies in the parallel resolution of IPv4 and IPv6 DNS queries by glibc, the GNU C Library. The glibc implementation of libresolv sends parallel IPv4 and IPv6 requests, if the server responds to the query out of order, the resolver experiences a 5-second timeout before proceeding to retry the requests sequentially.

    Resolution

    •  Set the single-request option in the /etc/resolv.conf file. This option instructs glibc to perform IPv4 and IPv6 DNS requests sequentially, potentially mitigating the timeouts caused by parallel requests.

       

    Resources: 

    resolv.conf man page