-
edited /etc/resolv.conf will not stick
I have edited my DNS settings in vi and saved this, but when I change user or reboot, the old values come back.
My problem is I cannot resolve web addresses. Modem works, can connect to ISP, but cannot get to websites.
What do I do after I edit /etc/resolv.conf ?
-
Senior Member
registered user
Under the assumption that you are booting from hard drive, you need to edit the file as root.
su
<password>
vi /etc/resolv.conf
If not, perhaps someone who regularly boots the cd could further explain how to save your settings to a persistent home directory.
-
Senior Member
registered user
Look what I just stumbled across on the mailing list:
> I am not allowed to edit /etc/resolv. Although I can edit its
content
> while "save and exit" it changes back to its original
content.
Known problem as its a symlink ...
As root do:
rm /etc/resolv.conf
ln -s /etc/ppp/resolv.conf /etc/resolv.conf
chmod 644 /etc/resolv.conf
cu
Fabian
Hope that gets you fixed up.
-
Thanks for the reply.
I did edit the file as root, and I do have a HDD install. I saved it (I use vi all the time in other work).
However, the problem continues. I did this bit a few more times. The DNS setting sticks if I just change user, but returns to the original value if I reboot.
Strange.
-
rickenbacherus:
Belated thanks. My above post was done before I saw your second post.
However .... I tried what you suggested. Still no working DNS with the values that showed up after the suggested procedure. Later, still no working DNS with newly edited values.
But I am rebooting now. Do the new values stick?
.... No. They reverted back to the original values that were in place before I did any editing or did the suggested procedure.
So - tomorrow I'll try some more.
Again, thanks.
Cliff
-
Senior Member
registered user
Hi All
I am no expert on hard disk install since I operate
with no hard drive. I am sure there is a better
solution but you may find my method useful.
I use the fact that upon boot up KDE runs a startup
folder. Just put a script in here to fixes whatever
ails you. I my case I read the files from a second
cd rom but you have a hard drive so use a folder
-- not /mnt/cdrom1
Click Home --> View --> Show Hidden Files -->.kde
Autostart --> (make you own) MyFixIt.sh
Code:
#!/bin/sh
sudo ifconfig eth0 ###.###.###.### netmask 255.255.254.0
sudo route add default gw ###.###.###.###
sudo cp -fp /mnt/cdrom1/resolv.conf /ect/resolv.conf
contents of resolv.conf
Code:
nameserver ###.###.###.###
Best Wishes
paradocs
-
paradocs:
Thank you for the tip. I will try it this afternoon when I finish work. Hope it works.
cliff
Similar Threads
-
By darthspacey in forum Networking
Replies: 3
Last Post: 02-09-2005, 02:51 AM
-
By Legithrandil in forum Networking
Replies: 3
Last Post: 03-31-2004, 04:44 PM
-
By A. Jorge Garcia in forum Hdd Install / Debian / Apt
Replies: 11
Last Post: 12-05-2003, 05:03 PM
-
By Joseph Schiller in forum Networking
Replies: 1
Last Post: 06-12-2003, 06:30 PM
-
By garyng in forum General Support
Replies: 0
Last Post: 05-19-2003, 11:05 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID
$58.99
M.2 NVME SATA SSD Enclosure USB 3.2 Gen 2 10Gbps for M-Key or M+B Key SSD to 8TB
$40.86
N85XX DELL 3.84TB SAS 12GB/S ENTERPRISE SOLID STATE DRIVE (W/ 14TH GEN CADDY)
$389.95
WD 500GB My Passport SSD, Portable External Solid State Drive WDBAGF5000ARD-WESN
$59.99
Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot
$14.99
Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot
$13.99
Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot
$13.99
SSD 2TB high speed 870 SATAIII 2.5 inch Internal Solid State 4 PC (Unbrand)
$59.99
Fanxiang SSD 512GB 1TB 2TB 4TB 2.5''SATA III Internal Solid State Hard Drive LOT
$188.99
SAMSUNG SSD 870 EVO 2.5" SATA III Solid State Drive 2TB 1TB 250GB 500GB LOT
$172.15