Score:0

how to clear dns cache on vpn connection?

cn flag

After connecting to my customer's VPN, I need to issue this command:

service nscd reload

Or wait for some time before I can access internal services.

How can I make this happen automatically?

Score:0
cn flag

Ended up creating this script: /etc/network/if-up.d/aftervpn

#!/bin/bash -e

if [[ "$IFACE" =~ ^(vpn)[0-9] ]]; then
    service nscd reload
fi
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.