Git Product home page Git Product logo

Comments (5)

Luap99 avatar Luap99 commented on August 27, 2024

We just use the servers from /run/systemd/resolve/resolv.conf when systemd resolved is used.
The 10.0.2.3 address is the slirp4netns forward address. How does you /erc/resolv.conf sysmlink look like? If it is outside of /etc or /run it may not work correctly with slirp4netns

from buildah.

sudoforge avatar sudoforge commented on August 27, 2024
➜ stat --format '%N' /etc/resolv.conf
'/etc/resolv.conf' -> '/run/systemd/resolve/stub-resolv.conf'

The container is successfully reading the stub file, which contains:

➜ rg --no-line-number -v '^#|^$' /etc/resolv.conf 
nameserver 127.0.0.53
options edns0 trust-ad
search lan

127.0.0.53:53 is...

➜ sudo ss -tulpn | awk '/127.0.0.53%lo:53/ {print substr($7, 10, 15)}'
systemd-resolve

and my systemd-resolved configuration contains:

➜ rg --no-line-number -v '^#|^$' /etc/systemd/resolved.conf.d/*.conf | head -n 3
[Resolve]
DNS=9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
FallbackDNS=1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com

We just use the servers from /run/systemd/resolve/resolv.conf when systemd resolved is used

This would appear to be an incorrect statement. As my original comment shows, buildah appears to be parsing my upstream resolvers (instead of just reading /run/systemd/resolve/resolv.conf), as well as the dns server dynamically fetched for my currently active non-loopback network interface (10.100.0.1).

from buildah.

Luap99 avatar Luap99 commented on August 27, 2024

As said we only read /run/systemd/resolve/resolv.conf which always contains the upstream resolvers once we detect systemd-resolved is in use. It is completely impossible to use 127.0.0.53 as server in the container as this is a loopback address and nothing will be listening there in the container.

Did you verify which of these servers even work from the container?

from buildah.

github-actions avatar github-actions commented on August 27, 2024

A friendly reminder that this issue had no activity for 30 days.

from buildah.

rhatdan avatar rhatdan commented on August 27, 2024

Since we never heard back, closing.

from buildah.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.