*sock*, a ``socket.socket``, or ``None``, the socket to use for the
query. If ``None``, the default, a socket is created. Note that
if a socket is provided, it must be a nonblocking connected stream
- socket, and *where*, *source* and *source_port* are ignored.
+ socket, and *where*, *port*, *source* and *source_port* are ignored.
Returns a ``dns.message.Message``.
"""
*ignore_trailing*, a ``bool``. If ``True``, ignore trailing
junk at end of the received message.
- *sock*, an ``ssl.SSLSocket``, or ``None``, the socket to use for the
- query. If ``None``, the default, a socket is created. Note that
- if a socket is provided, it must be a nonblocking connected SSL stream
- socket, and *where*, *source*, *source_port*, and *ssl_context* are ignored.
+ *sock*, an ``ssl.SSLSocket``, or ``None``, the socket to use for
+ the query. If ``None``, the default, a socket is created. Note
+ that if a socket is provided, it must be a nonblocking connected
+ SSL stream socket, and *where*, *port*, *source*, *source_port*,
+ and *ssl_context* are ignored.
*ssl_context*, an ``ssl.SSLContext``, the context to use when establishing
a TLS connection. If ``None``, the default, creates one with the default
SSL context is created, hostname checking will be disabled.
Returns a ``dns.message.Message``.
+
"""
if sock: