/etc/resolv.conf is automatically generated upon reboot by
resolvconf if its a symbolic link to
/run/resolvconf/resolv.conf (the file
resolvconf writes to), you don't need to create it or edit it. You can put your name servers in
/etc/network/interfaces using the following syntax so that they get added to
dns-nameservers <IP_address> <IP_address> <IP_address>
dns-nameservers 184.108.40.206 220.127.116.11
you should add this line at the end of your static IP configuration block.
If you have removed the symlink
sudo dpkg-reconfigure resolvconf and you will come up with a set of questions to set it right again. Now do a
reboot or run the following:
sudo ifdown eth0 && sudo ifup eth0 ##Change interface name accordingly
Everything should be fine.