Bug 82

Summary: --dns X --dns-forward Y not using X as dns server target
Product: passt Reporter: Paul Holzinger <pholzing>
Component: generalAssignee: Stefano Brivio <sbrivio>
Status: RESOLVED FIXED    
Severity: quite bad CC: sbrivio
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   

Description Paul Holzinger 2024-03-08 14:08:56 UTC
When running something like 
pasta --config-net --dns 1.1.1.1 --dns-forward 192.168.0.1 nslookup google.com 192.168.0.1

pasta uses 0.0.0.0 on the host as dns server target ip (which gets translated to 127.0.0.1 by the kernel) instead of the given --dns ip (1.1.1.1).
Comment 1 Stefano Brivio 2024-04-26 11:01:11 UTC
Fixed in commit d989eae308c2 ("udp: Translate source address of resolver only for DNS remapped queries"), released in 2024_03_18.615d370.