dnspython  1.16.0
About: dnspython is a DNS toolkit (for Python 2.x) that supports almost all record types.
  Fossies Dox: dnspython-1.16.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

dns.ipv4 Namespace Reference

Functions

def inet_ntoa (address)
 
def inet_aton (text)
 

Function Documentation

◆ inet_aton()

def dns.ipv4.inet_aton (   text)
Convert an IPv4 address in text form to binary form.

*text*, a ``text``, the IPv4 address in textual form.

Returns a ``binary``.

Definition at line 40 of file ipv4.py.

Referenced by dns.rdtypes.IN.A.A.__init__(), dns.resolver._getaddrinfo(), dns.inet.af_for_address(), dns.reversename.from_address(), dns.ipv6.inet_aton(), dns.inet.inet_pton(), dns.inet.is_multicast(), dns.reversename.to_address(), dns.rdtypes.IN.A.A.to_wire(), and dns.rdtypes.IN.WKS.WKS.to_wire().

◆ inet_ntoa()

def dns.ipv4.inet_ntoa (   address)
Convert an IPv4 address in binary form to text form.

*address*, a ``binary``, the IPv4 address in binary form.

Returns a ``text``.

Definition at line 25 of file ipv4.py.

Referenced by dns.rdtypes.IN.A.A.from_wire(), dns.rdtypes.IN.WKS.WKS.from_wire(), dns.ipv6.inet_ntoa(), dns.inet.inet_ntop(), and dns.reversename.to_address().