more robust way of testing for DHCP