DNS not being populated in resolv.conf

Tom H tomh0665 at gmail.com
Sat Nov 27 07:51:03 UTC 2010

On Fri, Nov 26, 2010 at 9:08 PM, Kaushal Shriyan
<kaushalshriyan at gmail.com> wrote:
> I have three Internet Service Provider to connect to internet from my laptop
> running Ubuntu Desktop Linux OS 10.04
> For example ISP A, ISP B ISP C
> ISP A  --> is the Office Network (when i am in office )
> ISP B -->  is the Mobile Broadband Network (when i am moving )
> ISP C --> is the Home Network (when i am at home)
> Also in addition to the above details :-
> I have local DNS Server at office, DNS server of Data Center 1 and DNS
> Server of Data Center 2. so whenever i am in office, by default i need to
> connect to these
> three DNS Servers in order to access the servers.
> The steps i have followed after using resolvconf
> sudo apt-get install resolvconf
> sudo rm /etc/resolv.conf
> sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf
> sudo vim /etc/openvpn/update-resolv-conf
> Add the following lines in the beginning.
> foreign_option_1='dhcp-option DOMAIN off.example.com dc1.example.com
> dc2.example.com'
> foreign_option_2='dhcp-option DNS'
> foreign_option_3='dhcp-option DNS'
> foreign_option_4='dhcp-option DNS'
> foreign_option_5='dhcp-option DNS'
> save and exit
> Add the below two lines at the bottom of the file openvpn client DC1.conf
> up /etc/openvpn/update-resolv-conf
> down /etc/openvpn/update-resolv-conf
> The issue which i am facing is that I am unable to resolve the local DNS
> Servers at office. I need the local DNS Server in order to access Network
> printers
> and other devices.
> Office DNS Server is off.example.com and DNS Server IP is

Are all five options above for your office network?

Please post "cat /etc/resolv.conf" after you connect to your office network.

More information about the ubuntu-users mailing list