FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-26-2010, 03:06 AM
Kaushal Shriyan
 
Default DNS not being populated in resolv.conf

Hi

I am running OpenVPN client as daemon mode on my Laptop running Ubuntu Desktop Linux OS 10.04. *The issue which i am facing is that the DNS is not being populated to */etc/resolv.conf.*


I see push "dhcp-option DOMAIN ..." in OpenVPN Server configs., I have added the push "dhcp-option DOMAIN ..." in my client config. but no luck.
Works perfectly fine for Windows Client. Not sure why it does not work for Linux Clients.


Please suggest/guide
Thanks
Kaushal
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-26-2010, 03:12 AM
"W. Scott Lockwood III"
 
Default DNS not being populated in resolv.conf

On Fri, 2010-11-26 at 09:36 +0530, Kaushal Shriyan wrote:
> Please suggest/guide

Installed resolvconf and put known good DNS servers in the head file.

On my workstation, I finally just had it, and set it to what I wanted it
to be all the time, and did 'sudo chattr +i /etc/resolv.conf' on it.

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

W. Scott Lockwood III



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-26-2010, 04:53 AM
Kaushal Shriyan
 
Default DNS not being populated in resolv.conf

On Fri, Nov 26, 2010 at 9:42 AM, W. Scott Lockwood III <scott@guppylog.com> wrote:


On Fri, 2010-11-26 at 09:36 +0530, Kaushal Shriyan wrote:

> Please suggest/guide



Installed resolvconf and put known good DNS servers in the head file.



Hi W. Scott Lockwood III

Head file ? which file are you referring to ? I did installed resolvconf on Ubuntu 10.04 desktop

################################################## ################################



resolvconf: /etc/resolvconf/interface-order
resolvconf: /etc/dhcp3/dhclient-enter-hooks.d/resolvconf
resolvconf: /usr/share/doc/resolvconf
resolvconf, postfix, avahi-daemon: /etc/resolvconf
resolvconf: /usr/share/man/man8/resolvconf.8.gz


postfix: /etc/resolvconf/update-libc.d/postfix
resolvconf: /etc/resolvconf/resolv.conf.d/head
resolvconf: /etc/init.d/resolvconf
resolvconf: /usr/share/doc/resolvconf/changelog.gz
resolvconf: /etc/resolvconf/update.d


avahi-daemon: /etc/resolvconf/update-libc.d/avahi-daemon
resolvconf: /etc/resolvconf/resolv.conf.d
resolvconf: /sbin/resolvconf
resolvconf: /lib/resolvconf
resolvconf: /lib/resolvconf/list-records
resolvconf: /usr/share/doc/resolvconf/copyright


resolvconf: /etc/ppp/ip-down.d/000resolvconf
resolvconf: /usr/share/doc/resolvconf/README.gz
resolvconf: /etc/resolvconf/update.d/bind
resolvconf: /etc/ppp/ip-up.d/000resolvconf
resolvconf: /etc/resolvconf/update.d/dnscache


bash-completion: /etc/bash_completion.d/resolvconf
resolvconf: /etc/resolvconf/resolv.conf.d/base
resolvconf, postfix, avahi-daemon: /etc/resolvconf/update-libc.d
resolvconf: /etc/resolvconf/update.d/libc
resolvconf: /etc/network/if-down.d/resolvconf


resolvconf: /etc/network/if-up.d/000resolvconf
################################################## ################################


Please suggest further

Thanks

Kaushal

*



On my workstation, I finally just had it, and set it to what I wanted it

to be all the time, and did 'sudo chattr +i /etc/resolv.conf' on it.



--

A: Because it messes up the order in which people normally read text.

Q: Why is top-posting such a bad thing?

A: Top-posting.

Q: What is the most annoying thing in e-mail?



W. Scott Lockwood III







--

ubuntu-users mailing list

ubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-26-2010, 10:30 AM
Knight
 
Default DNS not being populated in resolv.conf

On Fri, 2010-11-26 at 11:23 +0530, Kaushal Shriyan wrote:
>
>
> On Fri, Nov 26, 2010 at 9:42 AM, W. Scott Lockwood III
> <scott@guppylog.com> wrote:
> On Fri, 2010-11-26 at 09:36 +0530, Kaushal Shriyan wrote:
> > Please suggest/guide
>
> Installed resolvconf and put known good DNS servers in the
> head file.

> Please suggest further
>
> Thanks
>
> Kaushal


Maybe this will help:
http://www.smop.co.uk/mediawiki/index.php/OpenVPN


--
Knight Of The Post


Linux Pro or Pro Linux?!
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-26-2010, 11:15 AM
"W. Scott Lockwood III"
 
Default DNS not being populated in resolv.conf

/etc/resolvconf/resolv.conf.d/head

You really should 'man resolvconf' before asking such basic questions.

On Fri, 2010-11-26 at 11:23 +0530, Kaushal Shriyan wrote:



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-27-2010, 01:08 AM
Kaushal Shriyan
 
Default DNS not being populated in resolv.conf

On Fri, Nov 26, 2010 at 5:45 PM, W. Scott Lockwood III <scott@guppylog.com> wrote:


/etc/resolvconf/resolv.conf.d/head



You really should 'man resolvconf' before asking such basic questions.



On Fri, 2010-11-26 at 11:23 +0530, Kaushal Shriyan wrote:






Hi Again
Let me explain in details the issue as i am facing now
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 resolvconfsudo rm /etc/resolv.conf

sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.confsudo 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 172.26.0.1'foreign_option_3='dhcp-option DNS 10.20.0.1'foreign_option_4='dhcp-option DNS 10.20.0.2'foreign_option_5='dhcp-option DNS 10.30.0.1'


save and exit
Add the below two lines at the bottom of the file openvpn client DC1.conf*up /etc/openvpn/update-resolv-confdown /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*172.26.0.1
How do i go about in fixing this issue.
Please suggest/guide


Thanks and Regards
Kaushal



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-27-2010, 06:51 AM
Tom H
 
Default DNS not being populated in resolv.conf

On Fri, Nov 26, 2010 at 9:08 PM, Kaushal Shriyan
<kaushalshriyan@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 172.26.0.1'
> foreign_option_3='dhcp-option DNS 10.20.0.1'
> foreign_option_4='dhcp-option DNS 10.20.0.2'
> foreign_option_5='dhcp-option DNS 10.30.0.1'
> 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*172.26.0.1

Are all five options above for your office network?

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

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-28-2010, 05:34 AM
Kaushal Shriyan
 
Default DNS not being populated in resolv.conf

On Sat, Nov 27, 2010 at 1:21 PM, Tom H <tomh0665@gmail.com> wrote:


On Fri, Nov 26, 2010 at 9:08 PM, Kaushal Shriyan

<kaushalshriyan@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 172.26.0.1'

> foreign_option_3='dhcp-option DNS 10.20.0.1'

> foreign_option_4='dhcp-option DNS 10.20.0.2'

> foreign_option_5='dhcp-option DNS 10.30.0.1'

> 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*172.26.0.1



Hi Tom,*
Are all five options above for your office network?



Not sure i understand that ?**
Please post "cat /etc/resolv.conf" after you connect to your office network.



cat /etc/resolv.conf in my Ubuntu Laptop Desktop PC running 10.04
search**off.example.com**### office

search*dc1.example.com*### DataCenter No.1*search*dc2.example.com' ### DataCenter No. 2
DNS 172.26.0.1


DNS 10.20.0.1
DNS 10.20.0.2
DNS 10.30.0.1
Please suggest further
Thanks
Kaushal
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-28-2010, 10:25 AM
Tom H
 
Default DNS not being populated in resolv.conf

On Sun, Nov 28, 2010 at 1:34 AM, Kaushal Shriyan
<kaushalshriyan@gmail.com> wrote:
> On Sat, Nov 27, 2010 at 1:21 PM, Tom H <tomh0665@gmail.com> wrote:
>> On Fri, Nov 26, 2010 at 9:08 PM, Kaushal Shriyan
>> <kaushalshriyan@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 172.26.0.1'
>> > foreign_option_3='dhcp-option DNS 10.20.0.1'
>> > foreign_option_4='dhcp-option DNS 10.20.0.2'
>> > foreign_option_5='dhcp-option DNS 10.30.0.1'
>> > 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*172.26.0.1
>>
>> Are all five options above for your office network?
>
> Not sure i understand that ?
>>
>> Please post "cat /etc/resolv.conf" after you connect to your office
>> network.
>
> cat /etc/resolv.conf in my Ubuntu Laptop Desktop PC running 10.04
> search*off.example.com**### office
> search*dc1.example.com*### DataCenter No.1
> search*dc2.example.com' ### DataCenter No. 2
> DNS 172.26.0.1
> DNS 10.20.0.1
> DNS 10.20.0.2
> DNS 10.30.0.1

This "resolv.conf" is incorrect.

The "DNS" lines don't mean anything. It shouldn't be "DNS" but "nameserver".

The "search" lines don't make sense (although I could be wrong). I
don't use "search" but I'd expect your "resolv.conf" to have one
search line "search example.com" with your domain and not three with
boxes.

(I'd asked whether the five "foreign_option_X" were for your three
locations or just for your office.)

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 11-28-2010, 11:15 AM
Kaushal Shriyan
 
Default DNS not being populated in resolv.conf

On Sun, Nov 28, 2010 at 4:55 PM, Tom H <tomh0665@gmail.com> wrote:


On Sun, Nov 28, 2010 at 1:34 AM, Kaushal Shriyan

<kaushalshriyan@gmail.com> wrote:

> On Sat, Nov 27, 2010 at 1:21 PM, Tom H <tomh0665@gmail.com> wrote:

>> On Fri, Nov 26, 2010 at 9:08 PM, Kaushal Shriyan

>> <kaushalshriyan@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 172.26.0.1'

>> > foreign_option_3='dhcp-option DNS 10.20.0.1'

>> > foreign_option_4='dhcp-option DNS 10.20.0.2'

>> > foreign_option_5='dhcp-option DNS 10.30.0.1'

>> > 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*172.26.0.1

>>

>> Are all five options above for your office network?

>

> Not sure i understand that ?

>>

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

>> network.

>

> cat /etc/resolv.conf in my Ubuntu Laptop Desktop PC running 10.04

> search*off.example.com**### office

> search*dc1.example.com*### DataCenter No.1

> search*dc2.example.com' ### DataCenter No. 2

> DNS 172.26.0.1

> DNS 10.20.0.1

> DNS 10.20.0.2

> DNS 10.30.0.1



This "resolv.conf" is incorrect.



The "DNS" lines don't mean anything. It shouldn't be "DNS" but "nameserver".



Hi Tom,*
sorry there was a typo, it is actually nameserver *




The "search" lines don't make sense (although I could be wrong). I

don't use "search" but I'd expect your "resolv.conf" to have one

search line "search example.com" with your domain and not three with

boxes.



search off.example.com *### officesearch dc1.example.com ### DataCenter No.1search dc2.example.com' ### DataCenter No. 2

nameserver 172.26.0.1nameserver 10.20.0.1nameserver 10.20.0.2nameserver 10.30.0.1
Are you saying it should be as below *:-


foreign_option_1='dhcp-option DOMAIN off.example.com' ### officeforeign_option_2='dhcp-option DOMAIN dc1.example.com' ### DataCenter No.1

foreign_option_3='dhcp-option DOMAIN dc2.example.com' ### DataCenter No.2foreign_option_4='dhcp-option DNS 172.26.0.1' ### officeforeign_option_5='dhcp-option DNS 10.20.0.1' *### DataCenter No.1

foreign_option_6='dhcp-option DNS 10.20.0.2' *### DataCenter No.1foreign_option_7='dhcp-option DNS 10.30.0.1' *### DataCenter No.2*


(I'd asked whether the five "foreign_option_X" were for your three

locations or just for your office.)
foreign_option_X was for the three locations viz office,data center 1 and data center 2
Please suggest/guide further


Thanks
Kaushal


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 12:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org