Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3 cname获取错误 #59

Open
notwhy opened this issue Mar 10, 2021 · 0 comments
Open

python3 cname获取错误 #59

notwhy opened this issue Mar 10, 2021 · 0 comments

Comments

@notwhy
Copy link

notwhy commented Mar 10, 2021

获取cname时候发现的
python运行的时候scanner_py3获取cname
answers = await self.resolvers[j].query(cur_domain, 'CNAME')
cname = answers[0].target.to_unicode().rstrip('.')
会报错
TypeError: 'ares_query_cname_result' object is not subscriptable
测试用这个可以解决
cname = answers.cname.rstrip('.')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant