Bug 82 - --dns X --dns-forward Y not using X as dns server target
Summary: --dns X --dns-forward Y not using X as dns server target
Status: RESOLVED FIXED
Alias: None
Product: passt
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All Linux
: High quite bad
Assignee: Stefano Brivio
URL:
Depends on:
Blocks:
 
Reported: 2024-03-08 14:08 UTC by Paul Holzinger
Modified: 2024-04-26 11:01 UTC (History)
1 user (show)

See Also:


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.