mirror of
				https://github.com/tailscale/tailscale.git
				synced 2025-10-31 13:05:22 +00:00 
			
		
		
		
	wgengine/router: flushdns in windows when router config changes
Fixes: https://github.com/tailscale/tailscale/issues/1430 Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com>
This commit is contained in:
		| @@ -111,6 +111,14 @@ func (r *winRouter) Set(cfg *Config) error { | ||||
| 		return fmt.Errorf("dns set: %w", err) | ||||
| 	} | ||||
|  | ||||
| 	// Flush DNS on router config change to clear cached DNS entries (solves #1430) | ||||
| 	out, err := exec.Command("ipconfig", "/flushdns").CombinedOutput() | ||||
| 	if err != nil { | ||||
| 		r.logf("flushdns error: %v; output: %s", err, out) | ||||
| 	} else { | ||||
| 		r.logf("flushdns successful") | ||||
| 	} | ||||
|  | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aleksandar Pesic
					Aleksandar Pesic