Oops - this was for PPPOE - sorry, needed to have a coffee before posting !!!I am trying to configure a couple of PPTP dial on demand tunnels on my RB2011 at home.
Both tunnels come up via my mangle rule and they disconnect with my idle timeout which is nice.
My issue...how do I handle DNS resolution?
I would like to leave my DNS server set to my home 'Tik and be able to resolve "local" hosts for the VPN connected sites. I know I could change the DNS on my PC to make it work, but that defeats the PPTP client (I might as well dial the VPN connection from my laptop if I'm going to manually change DNS server IP address).
I thought I had the solution, add static NS records records for those domains pointed to the internal DNS server IP addresses, but can't add NS records.
What about scripting it? Is there a way I could script the 'Tik to change it's DNS servers (IP > DNS) when a tunnel is established and change it back when the tunnel is disconnected? I guess that might also prevent the idle timeout from taking effect.
My bad - that was for pppoe .I will give that a try when I get home, don't know how I missed that option...
I'll update the post either way. Thanks for the idea!