/etc/dhcpcd.conf
...
interface eth0
static_ip=192.168.2.3/24
...
/etc/network/interfaces
dns-nameservers 8.8.8.8 208.67.222.22
/etc/dhcpcd.conf
...
interface eth0
static_ip=192.168.2.3/24
...
/etc/network/interfaces
dns-nameservers 8.8.8.8 208.67.222.22