LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-25-2003, 09:52 AM   #1
Flatredline
LQ Newbie
 
Registered: Aug 2003
Distribution: Slackware 9.1, Debian Sarge
Posts: 20

Rep: Reputation: 0
How do I assign an additional nameserver while using dhcp?


This one is a bit sticky...I want to specify an additional nameserver (my isp's nameservers sometimes take as much as 20 seconds to find a site), but I need to use dhcp. The problem is that when I add a nameserver to /etc/resolv.conf it disappears when networking is restarted because the dhcp-defined values override my manually inputted settings. Does anyone know of a workaround for this or am I just stuck editing resolv.conf every time I boot my machine?

Not that it makes much of a difference (because as far as I know, all linux boxes do this), but I am running Debian on the machine in question.
 
Old 11-25-2003, 10:17 AM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Try making a script in your rcscripts. It would just echo the new DNS server to the file, after networking has been started.
 
Old 11-25-2003, 12:07 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
eeeeeeeeeasy.

in your network configuration... (no idea what debian uses) you should have an option to speficy dhcpcd options (or whatever other client you are using), add a "-R" to this field, or however debian has it, this -R value will stop DHCP updating your /etc/resolv.conf file at all.

/etc/network ?
/etc/netenv/dhcp ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Manually configuring DHCP for static IP -- cannot assign IP tristanlee85 Linux - Networking 3 10-16-2005 02:34 AM
DHCP can't dynamically assign IP adress xuyxs Linux - Networking 3 12-22-2004 04:00 AM
dhcp does not assign IP to nic WurM Linux - Networking 5 02-25-2004 02:36 PM
Can't seem to dynamically assign my ethernet card using DHCP client daemon tre Linux - Networking 1 01-03-2004 11:21 AM
How can I assign an IP instead of DHCP? pilot1 Linux - Networking 2 12-06-2002 04:37 PM


All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration