Results 1 to 7 of 7

Thread: edited /etc/resolv.conf will not stick

  1. #1
    Junior Member
    Join Date
    Jul 2003
    Location
    Richmond, VA
    Posts
    4

    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 ?

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    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.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    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.

  4. #4
    Junior Member
    Join Date
    Jul 2003
    Location
    Richmond, VA
    Posts
    4
    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.

  5. #5
    Junior Member
    Join Date
    Jul 2003
    Location
    Richmond, VA
    Posts
    4
    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

  6. #6
    Senior Member registered user
    Join Date
    Apr 2003
    Location
    Iowa U.S.A.
    Posts
    226
    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

  7. #7
    Junior Member
    Join Date
    Jul 2003
    Location
    Richmond, VA
    Posts
    4
    paradocs:

    Thank you for the tip. I will try it this afternoon when I finish work. Hope it works.

    cliff

Similar Threads

  1. /etc/resolv.conf is good but DNS is not working
    By darthspacey in forum Networking
    Replies: 3
    Last Post: 02-09-2005, 02:51 AM
  2. editing smb.conf
    By Legithrandil in forum Networking
    Replies: 3
    Last Post: 03-31-2004, 04:44 PM
  3. lilo.conf
    By A. Jorge Garcia in forum Hdd Install / Debian / Apt
    Replies: 11
    Last Post: 12-05-2003, 05:03 PM
  4. sym link to /etc/dhcpc/resolv.conf & hd install
    By Joseph Schiller in forum Networking
    Replies: 1
    Last Post: 06-12-2003, 06:30 PM
  5. modules.conf, what it is for ?
    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
  •  


HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5

HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD

$74.99



Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5

Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive

$157.99



WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN picture

WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN

$174.99



WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN picture

WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN

$49.99



HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5

HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601

$89.99



Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5

Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive

$29.99



2 PACK  Seagate ST1000LM035 Mobile HDD 1TB 2.5

2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive

$27.49



TOSHIBA MD04ABA400V 4TB 128MB Cache SATA 6. 0Gb/s 3. 5

TOSHIBA MD04ABA400V 4TB 128MB Cache SATA 6. 0Gb/s 3. 5"

$18.00



Seagate Barracuda ST3000DM001 3TB 7200 RPM 64MB 6.0Gbs SATA 3.5

Seagate Barracuda ST3000DM001 3TB 7200 RPM 64MB 6.0Gbs SATA 3.5" Internal HDD

$25.89



WD 4TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0040BBK-WESN picture

WD 4TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0040BBK-WESN

$69.99