DNS servers show requests from 169.254.1.2 (also for domains that shouldn't be requested by any running container) #27057
Replies: 3 comments 9 replies
-
169.254.1.2 is the address we use inside the container namespace for dns which should make pasta map that to the real host nameserver address from the host.
It would help if you provide the versions you are using and on which versions it used to work. |
Beta Was this translation helpful? Give feedback.
-
Right. This is expected behaviour with pasta as configured by podman. Requests coming from the container's host will appear to come from 169.254.1.2. It can't show the host's regular IP address, because that IP is shared by the container itself. While this is counter-intuitive for this specific case, sharing the IP that way makes things simpler and more obvious for communication with any other peer. Note that pasta can be configured with any address you like, not just 169.254.1.2. The choice of 169.254.1.2 comes from podman. Using one of the link-local addresses seemed like the safest option - anything else would mean you're shadowing some other host on your local net or the internet. |
Beta Was this translation helpful? Give feedback.
-
Alright, I spent some time investigating the situation and this is outcome at the moment: Here a simple output from a test done with a container called
I do see the internal IP being
And here the DNS logs:
I do not understand this at all. After the initial replies from @Luap99, @sbrivio-rh and now @dgibson, I thought that was normal to see the source IP as Regarding queries done from my laptop and showing up with the server IP is because (I think) a VPN container I'm running called Tailscale. If I enable the Tailscale VPN tunnel on my laptop, queries are showing as I'm attaching the output of From the host:
From
Thank you in advance for your time. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I run my own DNS servers (primary and secondary), both based on Technitium containers running via Podman on separate hosts.
While reviewing queries on the primary server, I noticed a large number of requests originating from the IP address 169.254.1.2. Upon inspection, these requests appear to match traffic from containers I’m running.
From what I understand, 169.254.1.2 belongs to the link-local address range, typically used when a device cannot obtain an IP address from a DHCP server. Could this behavior be related to a recent Podman or Pasta update?
Previously, I would see queries coming from my server’s actual IP address, not from 169.254.1.2.
Additionally, I see requests to domains such as
conncheck.opensuse.org
, which is just a health-check endpoint. However, these should originate from my server’s IP address, not 169.254.1.2. I also notice queries toapple.com
,microsoft.com
, and similar domains, which I don’t believe any of my containers are directly requesting.Can someone explain what’s going on here? Do I have something misconfigured?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions