-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
PROBLEM DESCRIPTION
When wireguard is started (manually or automatically at startup) a dns-request is sent if the endpoint address requires it. If this dns-request fails or times out wireguard stays in a failed state until it is manually restarted with backlog wgstop;wgconnect
Other Services like NTP or MQTT retry after failed DNS Requests.
It would be great to add dns retries to wireguard as it would make it more resilient.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
- Read the Contributing Guide and Policy and the Code of Conduct
- Searched the problem in issues
- Searched the problem in discussions
- Searched the problem in the docs
- Searched the problem in the chat
- Problem is not scripter related, in this case open a discussion and tag gemu2015
- Device used (e.g., Sonoff Basic): ZB-GW03-V1.2
- Tasmota binary firmware version number used: 15.0.1.3
- Pre-compiled
- Self-compiled
- Flashing tools used: OTA Update
- Provide the output of command:
Backlog Template; Module; GPIO 255:
Configuration output here:
- If using rules, provide the output of this command:
Backlog Rule1; Rule2; Rule3:
Rules output here:
- Provide the output of this command:
Status 0:
STATUS 0 output here:
- Set
weblogto 4 and then, when you experience your issue, provide the output of the Console log:
00:00:02.284 ETH: IPv4 10.xx.xx.156, mask 255.255.255.0, gateway 10.xx.xx.1
00:00:02.507 WIF: Checking connection...
00:00:02.507 WIF: Attempting connection...
00:00:03.141 WIF: Connecting to AP1 XXXxxx Channel 6 BSSId xx:xx:xx:xx:xx:xx in mode HT40 as tasmota-zbtest...
00:00:04.002 ETH: IPv6 Local fe80::xxxx
00:00:04.004 NTP: Sync time...
00:00:04.005 DNS: dns_gethostbyname_addrtype errg=-6 counter=1
00:00:04.005 WIF: DNS failed for 2.pool.ntp.org after 0 ms
00:00:04.015 mDN: Initialized 'tasmota-zbtest.local'
00:00:04.024 HTP: Web server active on tasmota-zbtest-eth.local with IP address 10.xx.xx.156
00:00:04.031 WG : Found available network interface: en1
00:00:04.083 DNS: dns_gethostbyname_addrtype errg=-6 counter=2
00:00:04.084 WG : hostByName failed 'redacted.com'
00:00:04.084 WG : wireguard_peer_lookup_by_peer_index: peer not found
00:00:04.084 WG : Failed to add allowed_ips, no space left
00:00:04.087 NTP: Sync time...The DNS log was manually compiled and is not a standard feature.
TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
Wireguard should automatically wait for a certain amount of time (e.g. 30s) restart after a failed DNS request.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)