It's also possible to add the desired action(s) in a separate file, for example: /etc/network/if-pre-up.d/dns
#! /bin/sh
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
It's also possible to add the desired action(s) in a separate file, for example: /etc/network/if-pre-up.d/dns
#! /bin/sh
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf