resolv - working version with code at wrong places
resolv - read and write commands merged
resolv - get_resource_id refactored