Results 1 to 7 of 7

Thread: Custom DNS in Mobile BroadBand (ppp)

  1. #1
    Join Date
    Aug 2011
    Location
    Kerala, India
    Beans
    28
    Distro
    Ubuntu 12.04 Precise Pangolin

    Custom DNS in Mobile BroadBand (ppp)

    Hi all..
    I want to configure openDNS in my network connection - Mobile BroadBand (ppp).

    I added OpenDNS nameservers in Network Connections.
    But it didn't works.

    If i manually edit "/etc/resolv.conf" and add OpenDNS nameservers, it works !!

    But this file automatically set back to default DNS provided by my ISP.
    How to make OpenDNS configuration persistent ?

    I tried
    Code:
    chattr +i /etc/resolv.conf
    But it says:
    Code:
    chattr: Operation not supported while reading flags on /etc/resolv.conf

  2. #2
    Join Date
    Apr 2012
    Beans
    106

    Re: Custom DNS in Mobile BroadBand (ppp)

    try again as root:

    Code:
    sudo chattr +i /etc/resolv.conf

  3. #3
    Join Date
    Aug 2011
    Location
    Kerala, India
    Beans
    28
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Custom DNS in Mobile BroadBand (ppp)

    Quote Originally Posted by cmont899 View Post
    try again as root:

    Code:
    sudo chattr +i /etc/resolv.conf
    Didn't worked.
    Same as before.
    Code:
    dixon@dixon-vaio:~$ sudo chattr +i /etc/resolv.conf
    [sudo] password for dixon: 
    chattr: Operation not supported while reading flags on /etc/resolv.conf

  4. #4
    Join Date
    Apr 2012
    Beans
    106

    Re: Custom DNS in Mobile BroadBand (ppp)

    Looks like resolv.conf is a symlink now:
    Code:
    $ ls -lah /etc/resolv.conf
    lrwxrwxrwx 1 root root 29 Mar 20 09:54 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
    try hitting the source file directly:
    Code:
    sudo chattr +i /run/resolvconf/resolv.conf

  5. #5
    Join Date
    Aug 2011
    Location
    Kerala, India
    Beans
    28
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Custom DNS in Mobile BroadBand (ppp)

    Quote Originally Posted by cmont899 View Post
    Looks like resolv.conf is a symlink now:
    Code:
    $ ls -lah /etc/resolv.conf
    lrwxrwxrwx 1 root root 29 Mar 20 09:54 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
    try hitting the source file directly:
    Code:
    sudo chattr +i /run/resolvconf/resolv.conf
    Still didn't worked
    Code:
    dixon@dixon-vaio:~$ sudo chattr +i /run/resolvconf/resolv.conf 
    [sudo] password for dixon: 
    chattr: Inappropriate ioctl for device while reading flags on /run/resolvconf/resolv.conf
    Is there any other way other than locking resolv.conf ?

    Why NetworkManager can't enable custom DNS ?
    Is it a bug ?

  6. #6
    Join Date
    Aug 2011
    Location
    Kerala, India
    Beans
    28
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Custom DNS in Mobile BroadBand (ppp)


  7. #7
    Join Date
    Aug 2011
    Location
    Kerala, India
    Beans
    28
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Custom DNS in Mobile BroadBand (ppp)

    As per the response from Thomas Hood (jdthood), bug report: https://bugs.launchpad.net/ubuntu/+s...er/+bug/998642

    I checked my resolv.conf:
    Code:
    dixon@dixon-vaio:~$ ls -l /etc/resolv.conf
    lrwxrwxrwx 1 root root 29 May  9 06:59 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
    To remove permissions, i deleted the file:
    Code:
    dixon@dixon-vaio:~$ sudo rm /etc/resolv.conf
    And then restored from previous backup:
    Code:
    dixon@dixon-vaio:~$ sudo cp /etc/resolv.conf.bak /etc/resolv.conf
    Now:
    Code:
    dixon@dixon-vaio:~$ ls -l /etc/resolv.conf
    -rw-r--r-- 1 root root 172 May 25 02:17 /etc/resolv.conf
    Here the symbolic link to "../run/resolvconf/resolv.conf" is missing.

    Contents of resolv.conf:
    Code:
    dixon@dixon-vaio:~$ cat /etc/resolv.conf
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 127.0.0.1
    Anyway, now it seems the problem solved !!
    http://www.opendns.com/welcome/
    Shows am using opendns now !!

    Also http://myresolver.info/
    Gives an opendns ip !!

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
  •