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

拥有CNAME的域名无法被劫持 #54

Open
SIGLALALA opened this issue Mar 30, 2017 · 1 comment
Open

拥有CNAME的域名无法被劫持 #54

SIGLALALA opened this issue Mar 30, 2017 · 1 comment

Comments

@SIGLALALA
Copy link

www.baidu.com. 1216 IN CNAME www.a.shifen.com.
www.a.shifen.com. 313 IN A 119.75.218.70
www.a.shifen.com. 313 IN A 119.75.217.109
类似于这样的,我在records.z里写www.douban.com. 172800 IN 222.222.222.222然后 ./client.c "hijack"
然后dig 域名还是以上的三条。文件里的222.222.222.222不生效。请问带有CNAME的域名如何劫持?

@SIGLALALA
Copy link
Author

我试验了在records.z里这样写www.baidu.com. 172800 IN CNAME www.a.shifen.com
www.a.shifen.com 172800 IN A 222.222.222.222这样能生效。
但是我的需求是只写一条A记录。www.baidu.com 172800 IN A 222.222.222.222 这样能实现吗,或者源代码我需要修改什么地方?

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