Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 10:34 AM   #1
Registered: Apr 2004
Location: Hell, Arizona
Distribution: Slackware 14.1
Posts: 549

Rep: Reputation: 93
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, 11: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, 04:35 PM   #3
LQ 5k Club
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: High Sierra
Posts: 8,667
Blog Entries: 17

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 03:28 PM
[SOLVED] /etc/network/interfaces configuration for virtual interfaces nonshatter Linux - Networking 4 10-25-2010 07:22 AM
Installation hangs at 'Setting up network interfaces.... teacher999 Linux - Newbie 4 08-04-2008 03:29 AM
suse 9.1 pro stuck at setting up network interfaces sichen Linux - Networking 2 08-09-2004 01:49 PM
SuSE freezes on setting up network interfaces PlatinumRik Linux - Networking 0 02-10-2004 10:13 AM > Forums > Linux Forums > Linux - Networking

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