(self, query, txt_record)
| 294 | |
| 295 | class MX(DNSResponse): |
| 296 | def __init__(self, query, txt_record): |
| 297 | super(MX, self).__init__(query) |
| 298 | self.type = b"\x00\x0f" |
| 299 | self.data = b"\x00\x01" + self.get_domain(txt_record) + b"\x00" |
| 300 | self.length = chr(len(txt_record) + 4) |
| 301 | if self.length < '\xff': |
| 302 | self.length = "\x00" + self.length |
| 303 | |
| 304 | @staticmethod |
| 305 | def get_domain(dns_record): |
nothing calls this directly
no test coverage detected