LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 08: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, 09: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, 11:07 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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 01:34 AM
DHCP can't dynamically assign IP adress xuyxs Linux - Networking 3 12-22-2004 03:00 AM
dhcp does not assign IP to nic WurM Linux - Networking 5 02-25-2004 01:36 PM
Can't seem to dynamically assign my ethernet card using DHCP client daemon tre Linux - Networking 1 01-03-2004 10:21 AM
How can I assign an IP instead of DHCP? pilot1 Linux - Networking 2 12-06-2002 03:37 PM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
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