LinuxQuestions.org
Visit the LQ Articles and Editorials 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 01-18-2013, 11:41 AM   #1
\/4A
Member
 
Registered: Aug 2012
Posts: 114

Rep: Reputation: Disabled
/etc/network/interfaces - dhcp with specific DNS servers


Hi,

I'm trying to modify the /etc/network/interfaces in Ubuntu Server 12.04 minimal using command line interface.

The current settings are
Code:
# The primary network interface
auto eth0
iface eth0 inet dhcp
However, I want to maintain DHCP while setting specific values for DNS servers.

How would I go about with this?
 
Old 01-18-2013, 12:11 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,973

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Hi,

I guess this is what you want

Cheers
 
1 members found this post helpful.
Old 01-18-2013, 01:00 PM   #3
\/4A
Member
 
Registered: Aug 2012
Posts: 114

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Hi,

I guess this is what you want

Cheers
Thanks.
Exactly what I needed.
 
  


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
DNS and DHCP Servers on Slackware 13.37 nestlyp Slackware 1 06-07-2012 04:30 AM
/etc/network/interfaces for a Linux router - have question-Also DHCP & DNS questions cilbuper Linux - Networking 2 04-11-2012 05:58 AM
Need help replacing two servers (DHCP/DNS) DragRacerX Suse/Novell 1 03-03-2008 05:57 PM
Manually specify network interfaces for DHCP NetAX Linux - Networking 1 04-22-2004 05:03 AM
Virtual network interfaces that use dhcp titakker Linux - Networking 1 09-23-2003 01:10 AM


All times are GMT -5. The time now is 03:36 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