fix logic for matching search/domain keywords in resolv.conf