Having an internal DNS and an external DNS (for VPN use)
Hard to to have a succinct title for this.
I put it in the laptop and netbook as it is a problem I would see mobile users coming across more than others.
So I have an internal DNS server (a pfsense firewall) that then uses my ISP for external name resolution. This internal DNS server answers lookups for all internal machines on my home network too, responses no other DNS server could answer with.
I have a VPN account with work. Work too has their own DNS for resolving internal domains as well external lookups.
So the issue I have is when I connect to my works VPN I have to use their DNS in order to access resources on works network, but then I lose access to my DNS server which subsequently loses me domain name access to local machines.
Right now I am using my own DNS and hand looking up work machines to then access. Seems rather silly.
I have thought I could set up a BIND server on my desktop that makes the VPN connection, but feels like overkill for such a trival problem.
I know the resolver library on most Linux machines tries the first DNS in resolv.conf and if it times outs, moves onto the next. Can it not move onto the next if the first one responses but is unable to successfully look up the given domain name? It would be the most simply solution adding only a slight delay on some lookups.
Any better solution that others have would be appreciated.
Thanks.
|