"The ToASCII operation is used before sending an IDN to something that expects ASCII names (such as a resolver) or writing an IDN into a place that expects ASCII names (such as a DNS master file)."
I read that so that the output of ToASCII is a domain name, to be sent to a DNS server. If the output is an IP address, that is something else.
Of course, it does not explicitely say that.