fix: use freifunk DNS resolver
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			Closes coop-cloud/organising#180.
This commit is contained in:
		@ -35,6 +35,9 @@ later for more advanced use cases.
 | 
			
		||||
			return err
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// https://www.privacy-handbuch.de/handbuch_93d.htm
 | 
			
		||||
		freifunkDNS := "5.1.66.255:53"
 | 
			
		||||
 | 
			
		||||
		resolver := &net.Resolver{
 | 
			
		||||
			PreferGo: false,
 | 
			
		||||
			Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
 | 
			
		||||
@ -42,10 +45,10 @@ later for more advanced use cases.
 | 
			
		||||
					Timeout: time.Millisecond * time.Duration(10000),
 | 
			
		||||
				}
 | 
			
		||||
				// comrade librehosters DNS resolver https://snopyta.org/service/dns/
 | 
			
		||||
				return d.DialContext(ctx, "udp", "95.216.24.230:53")
 | 
			
		||||
				return d.DialContext(ctx, "udp", freifunkDNS)
 | 
			
		||||
			},
 | 
			
		||||
		}
 | 
			
		||||
		logrus.Debugf("created DNS resolver via 95.216.24.230")
 | 
			
		||||
		logrus.Debugf("created DNS resolver via '%s'", freifunkDNS)
 | 
			
		||||
 | 
			
		||||
		ctx := context.Background()
 | 
			
		||||
		ips, err := resolver.LookupIPAddr(ctx, domainName)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user