[dhcp] Add generic facility for using cached network settings