Use MCStringConvertToCString() here (PACdnsResolve is called by the JS interpreter which works on C-strings, so this is the 'correct' way to convert a MCStringRef to a c-string).