Ubuntu :: Can't Edit Resolv.conf File Under Root?

Feb 12, 2011

I am trying to edit my /etc/resolv.conf file while under root. After saving the changes and reboot my computer, file has not changed. I read a thread on chattr and lsattr on this fourm.(see link below) I ran in terminal lsattr /etc/resolv.conf and got the following results:-----------------e- /etc/resolv.confWhat does the dashes and e mean? I thought I would get ----ia------------ /etc/resolv.conf instead, as shown in the link. What am I doing wrong?

View 4 Replies


ADVERTISEMENT

Ubuntu Servers :: Can't Edit /etc/resolv.conf File As Root

Jun 14, 2010

i can't edit /etc/resolv.conf with root account (Ubuntu Server 8.02)

root@webserver:~# sudo vim /etc/resolv.conf
"/etc/resolv.conf"
"/etc/resolv.conf" E212: Can't open file for writing
root@webserver:~# ls -l /etc/resolv.conf
-rw-r--r-- 1 root root 287 2010-06-14 15:20 /etc/resolv.conf

View 9 Replies View Related

Debian Configuration :: Networking - Netinst CD - Internet Connection Only Works After Edit The Interfaces And Resolv.conf Files Manually

Aug 3, 2010

I had some trouble with the netinst CD and I had to install lenny with the 6DVDs instead. My internet connection only works after I edit the interfaces and resolv.conf files manually. So my question is: can I do that from the netinst CD before it actually needs the connection to install everything? (otherwise I'll just need to use the DVDs.

View 4 Replies View Related

Ubuntu Servers :: Where Did My Resolv.conf File Go?

May 8, 2010

I tried to setup a dyndns, and ever since I tried to get that setup, I can't access my webmin, or access /etc/hosts/resolv.conf. But I can still access my samba shares I had created before this happened.

View 5 Replies View Related

CentOS 5 Server :: Hosts File And Resolv.conf Conflict CentOS 5.5?

Apr 11, 2011

I am running an application that requires use of my /etc/hosts file. In it, I have my machine name and its LAN ip address. The program creates a service on a specific port, then attempts to connect to it based on the host name. So my hosts file has to be correct.I added the nameservers to resolv.conf and now my application will not run. My guess is that the computer is checking the name servers first, timing out then checking the hosts file.Is there a way I can tell the system to check the hosts file first, then DNS. I thought it should behave that way by default, but it does not appear to.

View 1 Replies View Related

Ubuntu Servers :: Use Vi Editor To Edit The Smb.conf File ?

Jul 28, 2010

Trying to get this server to work and abandoned trying to do it with Xubuntu last night and installed Ubuntu server. But now I'm stuck on Samba again as I decided to use the vi editor to edit the smb.conf file and now I can't get out of it.

View 4 Replies View Related

Ubuntu Servers :: How To Edit The File Ports.conf

Jul 8, 2011

I want to edit the file ports.conf to make Apache to listen only to loopback interface as described [URL]... here ,The text extract follows

Quote:

The Listen directive specifies the port, and optionally the IP address, Apache2 should listen on. If the IP address is not specified,Apache2 will listen on all IP addresses assigned to the machine it runs on. The default value for the Listen directive is 80. Change this to 127.0.0.1:80 to cause Apache2 to listen only on your loopback interface so that it will not be available to the Internet, to (for example) 81 to change the port that it listens on, or leave it as is for normal operation. This directive can be found and changed in its own file, /etc/apache2/ports.conf

But by typing [CODE]sudo vi /etc/apache2/ports.conf [/CODE} and opening the file I am not able to edit the file After going to the Listen Directive I am not able to type 127.0..0.1, Since what I type does not appear on the screen, the Keyboard is not working. How will I be able to edit the ports.conf and other configuration files

View 3 Replies View Related

Fedora :: Edit The Daemon.conf File ?

Jan 17, 2011

My sample rates are out of whack and I need to edit the daemon.conf file.

However if I use

Code:

It will open the file but will not let me edit at all. If I just navigate to it I can edit it, but I can not save it!

I tried going in as root from the terminal and using the code above and I get a weird error.

Something like:

Then it says core dump.

Am I missing something to be able to edit the daemon.conf ?

View 2 Replies View Related

Installation :: CentOS4.5 Edit Grub.conf - Says It Is A Read Only File ?

Nov 12, 2010

I am trying to edit my grub.conf file. I am logged in as root. It says it is a read only file. I have tried to set permission with chmod 777 and also tried through GUI. Using VI it says it's a read only file. Using nano it will not write either. I have two choices on boot up. I want to automatically go to second automatically. First at the moment is CentOS-4 i386 (2.6.9-55.ELsmp) and second is CentOS-4 i386 (2.6.9-55.EL).

View 9 Replies View Related

Fedora :: Error When Try To Edit /boot/grub.conf File Or Any Other Files

Jan 31, 2011

I'm trying to set up some shares on this pc and every time I try to edit the /etc/exports file I get this error. I get the same error when I try to edit /boot/grub.conf file or any other files. Does not matter what editor I use. I'm running f14.

View 3 Replies View Related

Ubuntu Networking :: How To Keep /etc/resolv.conf Static

Apr 22, 2010

How can I keep /etc/resolv.conf static ... as in preventing it from being changed by the network manager ... without actually disabling the network manager (so wireless users can get their wireless setup that includes IP address, but leave the resolver configuration as is)?

View 1 Replies View Related

Ubuntu Networking :: Resolv.conf Keeps Getting Reset By Something

Aug 26, 2011

I need help figuring out why my resolv.conf keeps changing to this, causing me to not be able to access the outside internet and only the local network.I thought I fixed it by getting rid of the loopback interface and adding in the eth0 interface in /etc/network/interfaces URl...And then things would work temporarily, and eventually the nameserver in resolv.conf would get reverted again.

View 1 Replies View Related

Ubuntu Networking :: Resolv.conf Goes Blank On Reboot?

Jan 4, 2010

I'm having problems with my resolv.conf file. Every time I reboot my computer it goes blank and I have to re-type it before I can get on the network. How do I prevent it from being overwritten?

View 6 Replies View Related

Ubuntu Networking :: KVPNC And VPN / Errors The /etc/resolv.conf?

Feb 4, 2010

I am using KVPNC (recommended by the VPN owner) on Ubuntu 9.10 using my Universities direct Ethernet connection.

I have downloaded all the .ovpn scripts to a directory. I have downloaded KVPNC from the repository (apparently for 9.10 you do not download from the KVPNC website).

I then use sudo kvpnc and select a server (since there are many based on the .ovpn files).I click connect and the script works and tells me I have a connection. See below for an example. All appears to work.

But when I actually load any Internet program e.g. Firefox it cannot find a website.This happens for all servers which have different locations around the world.When I disconnect KVPNC I still have no access. I have to remove the Ethernet cable before it works again.

debug: Connect try requested, profile: Stockholm, type: OpenVPN
debug: openvpn: /usr/sbin/openvpn
debug: Support for TUN/TAP found (compiled into kernel or kernel module already loaded).
debug: Default interface: "eth0".
debug: IP address of default interface: "my IP address".
code....

I realise there are errors e.g. the /etc/resolv.conf must be a symlink but have tried doing this and still have exactly the same issues.

View 2 Replies View Related

Ubuntu Networking :: /etc/resolv.conf Not Updated On Startup?

Mar 9, 2010

I'm using 9.10 Ubuntu Karmic 64-bit (but same thing happens on my 32 bit VM on same PC).

My /etc/resolf/conf file is not updated with DNS information on first boot. The DNS information is in the /etc/network/interfaces file.

The trick I have to do every time I reboot the PC is:

Code:
sudo ifdown eth0 && sudo ifup eth0

First off, why? Second how can I resolve this issue?

I have three NICs eth0 and 1 are normal LANs connected to the internet, but I choose eth0 as the primary. eth2 is a local private one. the DNS information from eth0 should be in the resolv.conf file but isn't. The file is empty at bootup, except for some comments instructing me not to edit this. After running the above sudo commands the file is properly updated and internet works.

Here's my /etc/network/interfaces file's contents:

Code:
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dhcp

[Code]...

View 3 Replies View Related

Ubuntu :: Deleted Resolv.Conf Folder - How To Write New One

May 1, 2010

Unfortunately I have deleted with sudo the resolv.conf folder in /etc/. How can I write a new one? What files contains your resolv.conf folder?

View 3 Replies View Related

Ubuntu :: Network Manager Changing Resolv.conf?

May 7, 2010

The local DNS server is slow, so I added the openDNS servers to /etc/dhcp3/dhclient.conf. But Network manager keeps appending the local DNS server to resolv.conf. I need to pick up a DHCP address but how to stop it changing DNS servers?

View 2 Replies View Related

Ubuntu Networking :: Resolv.conf Doesn't Work?

Oct 12, 2010

My network works before but now it has follow issue, when I ping google.com, I got Quote:

ping: unknown host google.com but my network still works partially because I can still connect to a DNS listed in my /etc/resolv.conf to get host google.com's ip adress by Quote:

host -t a google.com ip.of.one.dns and then I ping the returned IP result 66.249.89.104, the ping works fine. the issue is that I can't connect to Internet, what I can remember is that I ever removed /etc/resolv.conf and this file was created again by network-manager, and I already verified the two dns IPs listed in the resolv.conf are both correct and works fine with command host.

View 2 Replies View Related

Debian Configuration :: Can't Get DNS Client To Use What's In Resolv.conf

Jun 18, 2010

My Debian workstation is on a predominantly Windows network. It is resolving internet addresses (i.e. www.google.com, etc) just fine. However it's not resolving any of the address of machines on the local network and the windows machines do not resolve the linux machines address either. All machines (linux and windows) can access each other just fine via direct IP reference.

My /etc/resolv.conf file has the following IP addresses listed:

127.0.0.1
10.1.1.111
10.1.3.4

10.1.1.111 is a netgear VPN/router that is the primary router for the LAN and maintains a VPN to a remote office 10.1.3.4 is the IP address of the Windows Primary Domain control on which the DNS server is running. That server is at the remote office. The system acts like it is completely ignoring anything I put in the resolv.conf file. From the linux X server I'm using "Network Setting" utility to make changes to the network configuration. This appears to work fine for things like switch between DHCP and static IP.

View 5 Replies View Related

Fedora Networking :: Resolv.conf Not Replaced

Nov 1, 2010

I use Fedora 13 (minimal installation), ISC DHCP server 4.1.1-P1. I'm running Fedora 13 too on a separate machine (minimal installation) with ISC DHCPclient 4.1.1-P1. My goal is to do some IPv6 testing. When I use the DHCP client manually (dhclient -6 -timeout 5 -d -v eth0), the client retrieves and installs a dynamically assigned IPv6 address.

Additionally, the client gets 1 DNS resolver address and 1 DNS search list. The resolver address and DNS search list always get written into /etc/resolv.conf. Perfect, exactly what I need. But when I do a "service network restart" or restart my system (which should trigger the same, as far as I understood), the DNS resolver addr and the search list get written into /etc/resolv.conf.save and the /etc/resolv.conf stays as before. How can I change this behavior? I don't need the .save file, I just want to have /etc/resolv.conf replaced by the latest DNS information.

View 2 Replies View Related

General :: Dhclient Overwriting Resolv.conf?

May 30, 2011

I'm setting up virtual dev environments and I want the hostname.domain to be something specific, eg- "barney.local". However my /etc/resolv.conf file keeps getting nuked because i'm using DHCP. I placed this into my dhclient.conf:

supersede domain-name "localhost"
supersede host-name "barney"

but it didn't help. I'm not sure where I'm going wrong. How can I still use DHCP but configure that virtual environment to see itself as barney.local?

View 2 Replies View Related

Networking :: /etc/resolv.conf Not Updated By Dhcp

Mar 4, 2010

I am using kubuntu 9.10 64-bit on AMD M500 machine i removed networkmanager (because i had frequent disconnect) and installed wicd but the /etc/resolv.conf had a comment on top which says that it is to be configured by networkmanager (still) I put the DNS in there manually and it works What to put in there so that it uses DHCP ? Maybe its set to be not written by anyone other than networkmanager ??

View 1 Replies View Related

General :: Resolv.conf Search Limited To Six?

May 11, 2009

As you may well be aware the resolv.conf search appears to be limited to 6 domains. I need 7 One thing I noticed is that if you run nslookup on a short name that is in the 7th search it does work but ssh does not. I'm guessing that nslookup is actually reading the whole file and isn't limited.

View 7 Replies View Related

Networking :: Resolv.conf Wrong Format?

Jul 1, 2010

When I boot my computer (Ubuntu 9.10) /etc/resolv.conf is written as:# Generated by Connection Managernameserver 10.33.8.11 10.33.4.136However, if I try to do anything from the command line, I get an error like:host: parse of /etc/resolv.conf failedI then need to edit /etc/resolv.conf to:

# Generated by Connection Manager
nameserver 10.33.8.11
nameserver 10.33.4.136

[code]....

View 2 Replies View Related

Server :: Use Resolv.conf To Have A Local DNS Entry?

Jan 10, 2011

I am having a situation where I do not have DNS server (the person who has that is not me) for a few websites which are running on a reverse proxy. I recently after having a long trouble shooting hours found that my proxy pass entries look as follows

Code:

ProxyPass /app1 http://192.168.1.3:8080/app1
ProxyPass / http://192.168.1.3
ProxyPassReverse /app1 http://192.168.1.3:8080/app1
ProxyPassReverse / http://192.168.1.3

If I use the entries as above then some one from internet is able to access the sites.But from within LAN people are unable to access it.

How ever if I use

Code:

ProxyPass /app1 http://site1.myserver.com:8080/app1
ProxyPass / http://site1.myserver.com
ProxyPassReverse /app1 http://site1.myserver.com:8080/app1
ProxyPassReverse / http://site1.myserver.com

then things work on LAN but from internet it is not accessible.What can be a solution in this case will putting things in resolv.conf do?

View 7 Replies View Related

Software :: Nameserver Entries In /etc/resolv.conf?

Sep 1, 2010

As I understand it, /etc/resolv.conf is rewritten at boot time by NetworkManager (a script?)I have a problem in the order the nameserver entries are written by my system (F13). This is:

Code:
nameserver 192.168.1.1
nameserver xxx.233.0.4

[code]....

View 11 Replies View Related

Ubuntu Networking :: No DNS Servers In Resolv.conf Before Login Karmic 9.10

Jan 11, 2010

I'm having an issue with resolv.conf being empty (apart from the resolvconf header) upon first login. I am assigned a DHCP lease fine, it also appears that DNS works briefly as all my NFS file shares seem to be working ok and they have name rather than an IP address in /etc/fstab. I have to manually re establish my lease by using the Network Manager panel each time I first login.

View 4 Replies View Related

Ubuntu Networking :: Stop Wvdial From Overwriting /etc/resolv.conf?

Mar 3, 2010

I use wvdial and a 3G modem to connect to the network. On the same host I also run bind9 which is authorative for my local network.The problem is that when wvdial connects, it overwrites /etc/resolv.conf, which means that DNS lookups on that host no longer get made to localhost (as specified by the original resolv.conf file) and end up at the local instance of bind which is authorative for in-house hostnames, but end up with the ISP who doesn't know my in-house host names.The local DNS forwards to the ISP, so the ISP's DNS'es are not required in resolv.conf.How can I prevent wvdial from overwriting /etc/resolv.conf?Removing write privileges from /etc/resolv.conf did not work.

View 3 Replies View Related

Ubuntu :: /etc/resolv.conf Lost Everytime Reboot Computer?

Aug 22, 2010

It appears that /etc/resolv.conf back to default everytime I reboot my computer.I've added these 2 lines to resolve some DNS issue.Quote:

nameserver 8.8.8.8
nameserver 8.8.4.4[URL]Your advise to make /etc/resolv.conf untouchable even after reboot would be highly appreciated.

View 1 Replies View Related

Ubuntu Networking :: Changing Namesevers In Resolv.conf Permanently?

Sep 22, 2010

My Internet connection runs slow and jerky, but can be fixed by using the Google public nameservers instead of the default one in this file. Problem is, the changes keep being reverted, even when I chmoded the file to have read-only permissions by everyone.

How can I change the nameserves permanently?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved