def __init__(self, address='0.0.0.0', protocol=0, map=b'', ttl=None):
        """
        @type address: L{bytes} or L{unicode}
        @param address: The IPv4 address associated with this record, in
            quad-dotted notation.
        """
        if _PY3 and isinstance(address, bytes):
            address = address.decode('idna')

        self.address = socket.inet_aton(address)
        self.protocol, self.map = protocol, map
        self.ttl = str2time(ttl)

        @type address: L{bytes} or L{unicode}
        @param address: The IPv4 address associated with this record, in
            quad-dotted notation.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/dns.py