resolvconf not modifying resolv.conf

In some Linux distributions, and other Unix-like operating systems, the resolvconf program maintains the system information about the currently available name servers and manages the contents of the configuration file resolv.conf, which determines Domain Name System (DNS) resolver parameters.

When computer connects to the internet, the domain name must be convert to corresponding IP address. The Domain Name Server is responsible for this conversion by maintaining a list of domain names and corresponding IP address. The information about the servers is kept in the configuration file resolv.conf.

The resolv.conf file exist at location /etc/resolv.conf which is a symbolic link to /run/resolvconf/resolv.conf. When computer connects to internet, resolvconf gets the name-servers from DHCP and list in resolv.conf file. But sometimes this fails to happen.

One of the reason may be that you deliberately change /etc/resolv.conf file to fill name-servers manually. Now /etc/resolv.conf file is no more a symbolic link and resolvconf doesn’t update /etc/resolv.conf file. Now you find yourself in all problems related to resolv.conf.

The solution is to configure resolvconf again. Make a backup copy of resolv.conf and use the following command

sudo dpkg-reconfigure resolvconf

Answer Yes to all queries which follow.

Configuring Proxy Authentication Settings in Linux

Configuring the proxy settings in a system is fairly simple task and easy interface is provided in every Operating system to do so. However, few linux distros are devoid of proxy authentication settings which should be there in every proxy settings interface. The browsers and other applications which require internet access provide their own configuration box to get the  settings from the user. But the frustration occurs when system ends up showing something like ‘Proxy Authentication error’, while using apt-get or installing application from software manager or doing some other task where system require net access..

Here are the steps to set proxy authentication in debian based distros:

  1. Edit /etc/apt/apt.conf file using superuser permissions. If not there, create new.

    sudo gedit /etc/apt/apt.conf

  2. Add or edit the content to be in following format

    Acquire::http::proxy "http://username:password@proxy_server:proxy_port/”;
    Acquire::https::proxy "https://username:password@proxy_server:proxy_port/”;
    Acquire::ftp::proxy "ftp://username:password@proxy_server:proxy_port/";
    Acquire::socks::proxy "socks://username:password@proxy_server:proxy_port/";