Company DNS priority and VPN
I'm connecting to my home Wifi network with KWifimanager and with /etc/init.d/openvpn script to connect my company VPN.
Using resolvconf it's generates such /etc/resolv.conf Code:
root@novopad:~# cat /etc/resolv.conf If I change cat /etc/resolvconf/interface-order the file looks like Code:
root@novopad:~# cat /etc/resolv.conf EDIT: I know that I can do something with local BIND, but it's not so lightweight and needs configuring every new network what I don't like. |
If you only need a few DNS names in company.vpn domain, you could manually add them into /etc/hosts.config. Then use the dns1.myisp.com nameservers for everything else.
|
You can also setup a local caching nameserver that has global forwarding to your ISP's nameservers, but specific forwarding for your company's domain that sends those requests to your company's DNS server. You would then point your /etc/resolv.conf to your own local nameserver.
|
All times are GMT -5. The time now is 06:39 PM. |