Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old December 23rd, 2006   #1
Bel-O-Kan
First Cup of Ubuntu
 
Join Date: Dec 2006
Location: France
Beans: 5
Ubuntu 6.10 Edgy
Question Multiple persistent DNS search domains as DHCP client ?

Hello,

I'd like to be able to set several DNS search domains on my Ubuntu 6.06/6.10 clients.
As a DHCP client, I receive the default DNS search domain but I need 3 more domains in order to be able to "know" all needed hosts.

If I add them using the netadmin GUI, I works and all hosts are reachable. /etc/resolv.conf is updated (search entries) but as soon as the lease expires or the client reboots all extra search domains are no more set and I have to set them once again.

How could I set extra persistent DNS domains as a DHCP client ?

Thanks a lot in advance, merry Xmas !
Bel-O-Kan is offline   Reply With Quote
Old December 23rd, 2006   #2
tweedledee
Quad Shot of Ubuntu
 
Join Date: Dec 2006
Beans: 449
Re: Multiple persistent DNS search domains as DHCP client ?

Quote:
Originally Posted by Bel-O-Kan View Post
How could I set extra persistent DNS domains as a DHCP client ?
Code:
sudo apt-get install resolvconf
sudo gedit /etc/resolvconf/resolv.conf.d/head
Add your domains to the end of that file, and they'll automatically be added to resolv.conf each time the file is rewritten.
tweedledee is offline   Reply With Quote
Old December 24th, 2006   #3
Bel-O-Kan
First Cup of Ubuntu
 
Join Date: Dec 2006
Location: France
Beans: 5
Ubuntu 6.10 Edgy
Re: Multiple persistent DNS search domains as DHCP client ?

Thanks a lot tweedledee, you're a star
Bel-O-Kan is offline   Reply With Quote
Old March 6th, 2007   #4
goobsoft
First Cup of Ubuntu
 
Join Date: Mar 2007
Beans: 9
Re: Multiple persistent DNS search domains as DHCP client ?

This solution is probably better.

Code:
aptitude install resolvconf
vi /etc/network/interfaces
Code:
iface eth0 inet dhcp
    dns-search domain.com
goobsoft is offline   Reply With Quote
Old May 9th, 2007   #5
ericdegen
Just Give Me the Beans!
 
Join Date: May 2007
Location: Arlington, TX
Beans: 58
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to ericdegen Send a message via Skype™ to ericdegen
Re: Multiple persistent DNS search domains as DHCP client ?

Thanks a bunch goobsoft! this was bothering me on Feisty the last few days.
__________________
- Eric Degen
- Email: ericdegen@yahoo.com
- Web: http://www.degen.net
- Twitter: http://twitter.com/ericdegen
ericdegen is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:18 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry