Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will systemd-resolve get in the way? #304

Closed
thedarb opened this issue May 8, 2022 · 3 comments
Closed

Will systemd-resolve get in the way? #304

thedarb opened this issue May 8, 2022 · 3 comments

Comments

@thedarb
Copy link

thedarb commented May 8, 2022

My standard Ubuntu systems (20.04 - 22.04) all came configured with systemd-resolve parked on the DNS port (53):

$ sudo netstat -lpn | grep ":53 "
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      710/systemd-resolve 
udp        0      0 127.0.0.53:53           0.0.0.0:*                           710/systemd-resolve 

I'm thinking if I want to run this as a Docker container, I might need to set it up with it's own IP on my lan for this. I suppose I could disable systemd-resolv, but I don't yet know the implications of trying that. Thoughts?

@thedarb thedarb closed this as completed May 9, 2022
@thedarb
Copy link
Author

thedarb commented May 9, 2022

Nevermind. :)

@Ajedi32
Copy link
Contributor

Ajedi32 commented May 9, 2022

In the interest of avoiding "nevermind, I fixed it" syndrome here:

Yes, it does interfere, and the solution is either to update the listen option in config.cfg to bind to a specific IP address (such as 127.0.0.1, or the public IP of your box), or set DNSStubListener=no in /etc/systemd/resolved.conf to stop systemd from listening on that port. (And manually update the resolv.conf symlink if you're running systemd <v246.)

@thedarb
Copy link
Author

thedarb commented May 10, 2022

Yep, binding it to 127.0.0.1 did it for me. Ubuntu 22.04. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants