mirror of
https://github.com/fergalmoran/bitchmin.git
synced 2025-12-22 09:27:53 +00:00
14 lines
201 B
Python
14 lines
201 B
Python
import pydig
|
|
|
|
|
|
def get_dns_records(host, ip, server):
|
|
resolver = pydig.Resolver(
|
|
nameservers=[
|
|
server
|
|
]
|
|
)
|
|
result = resolver.query(host, 'A')
|
|
|
|
return result
|
|
|