dns address keeps resetting

Discussion in 'Linux, BSD and Other OS's' started by StimpE, Jul 10, 2006.

  1. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    does anyone know why or how I can stop mandriva from changing my dns address? It keeps changing it to 192.168.178.1 and its preventing me from accessing the web. it usually resets after 15 minutes or so then I have to manually go to control center > internet & network > alter miscellaneous settitngs > and then change it back to 192.168.1.1.
     
  2. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Have you configured it as a static IP?
     
  3. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    I've tried static and dhcp, does the same thing with both.
     
  4. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Try this:

    Code:
    add route gw default 192.168.1.1
     
  5. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    in the konsole?
    [root@s tech]# add route gw default 192.168.1.1
    bash: add: command not found
     
  6. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Actually its
    Code:
    route add default gw 192.168.1.1
     
  7. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    whoops! :O

    Addis has got it right
     
  8. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    Ok I tried it, I'll post in a few mins to see if it worked or not
    *crosses fingers*
     
  9. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    nope, reset again. I attached a screenie to show you what's getting reset.
     

    Attached Files:

  10. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Thats strange, as a temporary measure. Try doing
    Code:
    chmod a-r /etc/resolv.conf
    That will make the resolv.conf file read only. Hopefully it will stop it being reset. Obviously do that after you've changed the DNS entries to the right ones.
     
  11. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    Ok I've done that..lets see if it works :)
     
  12. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    Odd...
    After a few mins I lost web access so it obviously reset but when I go to the control center like in the attachement it reports that the dns hasn't changed, still saying 192.168.1.1

    P.S. how do I chmod it to the default value? I had to use another PC to type this on :p
     
  13. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    Do chmod 744 /etc/resolv.conf
     

Share This Page