pfSense Gold Subscription

Author Topic: Use remote DNS servers when connected via OpenVPN  (Read 2145 times)

0 Members and 1 Guest are viewing this topic.

Offline Xefan

  • Jr. Member
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Use remote DNS servers when connected via OpenVPN
« on: September 08, 2009, 12:56:51 pm »
I have succesfully set up OpenVPN and now when I connect to a remote network (which has DNS servers with a namespace) I cant't resolve any names in this network. When I am connected to the Internet, my ISP gives me it's DNS via DHCP, but how do a access DNS namespace when I'm connected to this remote network?

Offline Briantist

  • Full Member
  • ***
  • Posts: 222
  • Karma: +0/-0
  • p-p-p-purple!
    • LinkedIn
    • View Profile
    • briantist.com
Re: Use remote DNS servers when connected via OpenVPN
« Reply #1 on: September 08, 2009, 02:01:22 pm »
You set the relevant DHCP option in the OpenVPN server config (DHCP-Opt.: DNS-Server).

If this is a site-to-site, I've been able to do it by using DNS Forwarder on my LAN, and overriding domain.local so that it uses the remote DNS server for that domain, but it doesn't sound like this is what you want. If you are using site-to-site let me know and I'll try to be more detailed.

Offline Xefan

  • Jr. Member
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Use remote DNS servers when connected via OpenVPN
« Reply #2 on: September 12, 2009, 12:32:59 pm »
No, this is a regular client to server VPN. I've set up DNS server manually and all worked. Now I wonder how do I set up a default gateway for VPN connection...