Results 1 to 3 of 3

Thread: resolv.conf gets wrong ip address

  1. #1
    Join Date
    Jul 2006
    Beans
    Hidden!

    resolv.conf gets wrong ip address

    Whenever my 10.04 laptop wakes up and establishes a network connection, at the top of /etc/resolv.conf it puts the local IP address of my wireless router at home, 192.168.2.1. This makes DNS lookups very slow if I'm not on my home network. I can fix it each time by removing the inaccurate "nameserver 192.168.2.1" line, but that's becoming a bore. Where should I look for the misconfiguration which is causing this?
    Last edited by fivebells; September 17th, 2010 at 11:22 PM.

  2. #2
    Join Date
    Jul 2006
    Beans
    Hidden!

    Re: resolv.conf gets wrong ip address

    Just thought to search for the IP address under /etc. Here are the results:
    Code:
    met% sudo fgrep -r '192.168.2.1' /etc/
    /etc/resolv.conf~:nameserver 192.168.2.1
    /etc/resolvconf/run/resolv.conf:nameserver 192.168.2.1
    /etc/resolvconf/run/resolv.conf~:nameserver 192.168.2.1
    /etc/resolvconf/run/interface/eth0:nameserver 192.168.2.1
    /etc/resolvconf/resolv.conf.d/original:nameserver 192.168.2.1
    /etc/resolv.conf:nameserver 192.168.2.1
    Could resolvconf be the culprit?
    Last edited by fivebells; September 17th, 2010 at 11:38 PM.

  3. #3
    Join Date
    Jul 2006
    Beans
    Hidden!

    Re: resolv.conf gets wrong ip address

    Never mind... It appears that all I needed was an apt-get upgrade...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •