Installing resolvconf on top of isc-dhcp-client (default debian dhcp client iirc) will handle both static and dhcp NIC config without extra configuration (appart from dns-{nameservers,search} in interfaces config files).
This might need some more testing though (so far tested on Debian8/9 only).
Installing resolvconf on top of isc-dhcp-client (default debian dhcp client iirc) will handle both static and dhcp NIC config without extra configuration (appart from dns-{nameservers,search} in interfaces config files).
This might need some more testing though (so far tested on Debian8/9 only).