<br><br><div class="gmail_quote">On Sun, Nov 28, 2010 at 4:55 PM, Tom H <span dir="ltr"><<a href="mailto:tomh0665@gmail.com">tomh0665@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

On Sun, Nov 28, 2010 at 1:34 AM, Kaushal Shriyan<br>
<div><div></div><div class="h5"><<a href="mailto:kaushalshriyan@gmail.com">kaushalshriyan@gmail.com</a>> wrote:<br>
> On Sat, Nov 27, 2010 at 1:21 PM, Tom H <<a href="mailto:tomh0665@gmail.com">tomh0665@gmail.com</a>> wrote:<br>
>> On Fri, Nov 26, 2010 at 9:08 PM, Kaushal Shriyan<br>
>> <<a href="mailto:kaushalshriyan@gmail.com">kaushalshriyan@gmail.com</a>> wrote:<br>
>> ><br>
>> > I have three Internet Service Provider to connect to internet from my<br>
>> > laptop<br>
>> > running Ubuntu Desktop Linux OS 10.04<br>
>> > For example ISP A, ISP B ISP C<br>
>> > ISP A  --> is the Office Network (when i am in office )<br>
>> > ISP B -->  is the Mobile Broadband Network (when i am moving )<br>
>> > ISP C --> is the Home Network (when i am at home)<br>
>> > Also in addition to the above details :-<br>
>> > I have local DNS Server at office, DNS server of Data Center 1 and DNS<br>
>> > Server of Data Center 2. so whenever i am in office, by default i need<br>
>> > to<br>
>> > connect to these<br>
>> > three DNS Servers in order to access the servers.<br>
>> > The steps i have followed after using resolvconf<br>
>> > sudo apt-get install resolvconf<br>
>> > sudo rm /etc/resolv.conf<br>
>> > sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf<br>
>> > sudo vim /etc/openvpn/update-resolv-conf<br>
>> ><br>
>> > Add the following lines in the beginning.<br>
>> ><br>
>> > foreign_option_1='dhcp-option DOMAIN <a href="http://off.example.com" target="_blank">off.example.com</a> <a href="http://dc1.example.com" target="_blank">dc1.example.com</a><br>
>> > <a href="http://dc2.example.com" target="_blank">dc2.example.com</a>'<br>
>> > foreign_option_2='dhcp-option DNS 172.26.0.1'<br>
>> > foreign_option_3='dhcp-option DNS 10.20.0.1'<br>
>> > foreign_option_4='dhcp-option DNS 10.20.0.2'<br>
>> > foreign_option_5='dhcp-option DNS 10.30.0.1'<br>
>> > save and exit<br>
>> > Add the below two lines at the bottom of the file openvpn client<br>
>> > DC1.conf<br>
>> ><br>
>> > up /etc/openvpn/update-resolv-conf<br>
>> > down /etc/openvpn/update-resolv-conf<br>
>> > The issue which i am facing is that I am unable to resolve the local DNS<br>
>> > Servers at office. I need the local DNS Server in order to access<br>
>> > Network<br>
>> > printers<br>
>> > and other devices.<br>
>> > Office DNS Server is <a href="http://off.example.com" target="_blank">off.example.com</a> and DNS Server IP is 172.26.0.1<br>
>><br>
</div></div><div class="im">>> Are all five options above for your office network?<br>
><br>
> Not sure i understand that ?<br>
>><br>
>> Please post "cat /etc/resolv.conf" after you connect to your office<br>
>> network.<br>
><br>
> cat /etc/resolv.conf in my Ubuntu Laptop Desktop PC running 10.04<br>
> search <a href="http://off.example.com" target="_blank">off.example.com</a>  ### office<br>
> search <a href="http://dc1.example.com" target="_blank">dc1.example.com</a> ### DataCenter No.1<br>
> search <a href="http://dc2.example.com" target="_blank">dc2.example.com</a>' ### DataCenter No. 2<br>
> DNS 172.26.0.1<br>
> DNS 10.20.0.1<br>
> DNS 10.20.0.2<br>
> DNS 10.30.0.1<br>
<br>
</div>This "resolv.conf" is incorrect.<br>
<br>
The "DNS" lines don't mean anything. It shouldn't be "DNS" but "nameserver".<br>
<br></blockquote><div><br></div><div>Hi Tom, </div><div><br></div><div>sorry there was a typo, it is actually nameserver  </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


The "search" lines don't make sense (although I could be wrong). I<br>
don't use "search" but I'd expect your "resolv.conf" to have one<br>
search line "search <a href="http://example.com" target="_blank">example.com</a>" with your domain and not three with<br>
boxes.<br>
<br></blockquote><div><br></div><div><div>search <a href="http://off.example.com">off.example.com</a>  ### office</div><div>search <a href="http://dc1.example.com">dc1.example.com</a> ### DataCenter No.1</div><div>search <a href="http://dc2.example.com">dc2.example.com</a>' ### DataCenter No. 2</div>

<div>nameserver 172.26.0.1</div><div>nameserver 10.20.0.1</div><div>nameserver 10.20.0.2</div><div>nameserver 10.30.0.1</div></div><div><br></div><div>Are you saying it should be as below  :-</div><div><br></div><div><div>

foreign_option_1='dhcp-option DOMAIN <a href="http://off.example.com">off.example.com</a>' ### office</div><div>foreign_option_2='dhcp-option DOMAIN <a href="http://dc1.example.com">dc1.example.com</a>' ### DataCenter No.1</div>

<div>foreign_option_3='dhcp-option DOMAIN <a href="http://dc2.example.com">dc2.example.com</a>' ### DataCenter No.2</div><div>foreign_option_4='dhcp-option DNS 172.26.0.1' ### office</div><div>foreign_option_5='dhcp-option DNS 10.20.0.1'  ### DataCenter No.1</div>

<div>foreign_option_6='dhcp-option DNS 10.20.0.2'  ### DataCenter No.1</div><div>foreign_option_7='dhcp-option DNS 10.30.0.1'  ### DataCenter No.2</div><div> </div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


(I'd asked whether the five "foreign_option_X" were for your three<br>
locations or just for your office.)</blockquote><div><br></div><div>foreign_option_X was for the three locations viz office,data center 1 and data center 2</div><div><br></div><div>Please suggest/guide further</div><div>

<br></div><div>Thanks</div><div><br></div><div>Kaushal</div><div><br></div><div><br></div></div>