1
내 네트워크에서 DNS 쿼리를 제공하기 위해 twisted.names 가져 오기 DNS에서 사용합니다. 그리고 내 도메인의 IP 주소 목록으로 회신하고 싶습니다 ('mydomain22.com'쿼리 예).이 샘플을 사용하여 쿼리를 처리합니다. https://gist.github.com/johnboxall/1147973
꼬임. DNS 응답에서 1 개 이상의 IP 주소
for answer in ans:
if answer.type != dns.A:
continue
if domain['name'] not in answer.name.name:
continue
answer.payload.address = socket.inet_aton(list_of_ip) # here
answer.payload.ttl = TTL
고마워요!