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

如何添加设置自己的dnslog #2225

Open
Peanuts-s opened this issue Dec 20, 2024 · 1 comment
Open

如何添加设置自己的dnslog #2225

Peanuts-s opened this issue Dec 20, 2024 · 1 comment

Comments

@Peanuts-s
Copy link

在系统设置里设置内置dnslog,然后在dnslog界面获取不到,在yaklang中调用checkDNSlogbytoken 一直返回timeout,但是我自己的dnslog上能收到请求。所以该怎么设置使插件还有dnslog功能获取的是自己的dnslog

@WAY29
Copy link
Collaborator

WAY29 commented Dec 20, 2024

如何自定义dnslog来源参考插件: Goby DnsLog
如何使用自定义的dnslog参考以下代码:

d = dnslog.NewCustomDNSLog(dnslog.script("Goby DnsLog"))
domain, token = d.GetSubDomainAndToken()~
// println(domain, token)
// use domain and token to do something...
events = d.CheckDNSLogByToken()~
if len(events) > 0 {
    // do something...
}

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

2 participants