I believe it will be very similar to socks5, when we send protocolHost (idk if we should use DNS names here at all) as 6 bytes header IPv4 (or whatever this length would be), on the server side we parse protocolHost, fetch IP/DNS Name and port, resolve, connect and start sending data back to the client.