-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Fails to determine IP address of Interface on FreeBSD #202
Comments
Still busy or is this something you can look into? @TimothyYe |
Same problem on windows. "ip_interface": "wgpia0", time="2023-09-07T16:09:24-04:00" level=info msg="Creating DNS handler with provider: DuckDNS" |
@TimothyYe |
@diizzyy Thanks, I'll look into this issue. |
ERRO[0000] Cannot get IP:Get "": unsupported protocol scheme "" @diizzyy I've checked the code, this error means GoDNS still tries to get the IP address from the internet. I think to fix this issue, update your config as: {
"ip_type": "IPv4",
"ip_interface": "hn0",
"interval": 300,
"debug_info": true,
"run_once": true
} Just remove |
@TimothyYe
INFO[0000] GoDNS started, starting the DNS manager... Also the syntax is from the manual, |
Could you please help to run the https://github.com/TimothyYe/godns/blob/master/pkg/lib/ip_helper.go#L122 |
Ahh, you're correct! I should've checked the code more carefully but it would be nice if godns where verbose about it especially in debug mode. There seems to be a loop however somewhere in the logic to detect IP?
|
It's not a loop, it only happens when the GoDNS is launched for the first time, the Another log is produced by the inner goroutine inside the So you may see two output logs here. |
Thanks for clarifying, I guess we can close this now. |
Not sure if it's configuration issue or not (seems like a bug) but trying to use an interface makes godns fail.
Relevant configuration (json):
Using this code works however (standalone)
https://gist.github.com/schwarzeni/f25031a3123f895ff3785970921e962c
The text was updated successfully, but these errors were encountered: