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


  Search this Thread
Old 01-18-2013, 09:34 AM   #1
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 557

Rep: Reputation: 96
nameserver setting in network/interfaces ignored

I'm configuring an ubuntu server with static ip and manually entered nameserver. Everthing I've read says to put nameserver setting in /etc/network/interfaces, and when you do, /etc/resolv.conf is automatically generated with these settings. Yet when I do this, resolv.conf is not changed, and does not get automatically generated. I might add that resolvconf is not installed on this box.

Is it the Ubuntu way to manually edit resolv.conf? Or am I missing something? I can put nameserver settings in resolv.conf, and it works, but everything I read says this is not the correct way to do it.
Old 01-18-2013, 10:14 AM   #2
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 98

There is nothing wrong with editing the resolv.conf file; however, if you are running the NetworkManager package, it will overwrite the resolv.conf file. FRom a terminal, type
and it will start the graphical NetworkManager package. If this package is not installed or not running, you can edit the resolv.conf file without fear.
1 members found this post helpful.
Old 01-18-2013, 03:35 PM   #3
LQ 5k Club
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: High Sierra
Posts: 8,809
Blog Entries: 23

Rep: Reputation: Disabled
have to restart networking after the edit?


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
Setting up a DHCP server with multiple network interfaces - Debian Srz0rz Linux - Networking 6 11-19-2016 02:28 PM
[SOLVED] /etc/network/interfaces configuration for virtual interfaces nonshatter Linux - Networking 4 10-25-2010 06:22 AM
Installation hangs at 'Setting up network interfaces.... teacher999 Linux - Newbie 4 08-04-2008 02:29 AM
suse 9.1 pro stuck at setting up network interfaces sichen Linux - Networking 2 08-09-2004 12:49 PM
SuSE freezes on setting up network interfaces PlatinumRik Linux - Networking 0 02-10-2004 09:13 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:43 PM.

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