linux c dns query