Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ubuntu 12.04 uses a nice little automagic dnsmasq configuration for handling name resolution across DNS connections so that name resolution happens properly.

When I connect to my OpenVPN server at work (for which I am the administrator) the client recognizes the reverse lookup networks properly and puts lines for those into the dnsmasq config, but not the forward networks:


The contents should be:


What do I need to change on my OpenVPN server (pfsense) to push one or more search domains to the VPN client?

share|improve this question
up vote 1 down vote accepted

Hmm, my client doesn't recognize the domains correctly and just uses the one DNS server my VPN server pushses rather than only using my VPN DNS for VPN domains. To answer your question though, look into using push "dhcp-option DOMAIN"

share|improve this answer
This solves the immediate problem, though I'm still left with the question of how to add more than one domain. – MikeyB May 28 '12 at 14:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.