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

Infrastructure: DNS on systems with systemd-resolved #175

Open
kendarorg opened this issue Mar 17, 2023 · 0 comments
Open

Infrastructure: DNS on systems with systemd-resolved #175

kendarorg opened this issue Mar 17, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@kendarorg
Copy link
Owner

kendarorg commented Mar 17, 2023

For Ubuntu

https://medium.com/@niktrix/getting-rid-of-systemd-resolved-consuming-port-53-605f0234f32f

sudo lsof -i -P -n | grep LISTEN
sudo systemctl stop systemd-resolved
vi /etc/systemd/resolved.conf

[Resolve]
DNS=8.8.8.8
DNSStubListener=no

sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

https://www.tecmint.com/set-permanent-dns-nameservers-in-ubuntu-debian/

  • apt install resolvconf
  • nano /etc/resolvconf/resolv.conf.d/head
  • nameserver 8.8.8.8
  • nameserver 8.8.4.4

https://stackoverflow.com/questions/40877643/apt-get-install-in-ubuntu-16-04-docker-image-etc-resolv-conf-device-or-reso

  • RUN apt-get update
  • RUN apt-get install -y apt-utils debconf-utils dialog
  • RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
  • RUN echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
  • RUN apt-get update
  • RUN apt-get install -y resolvconf
@kendarorg kendarorg added the enhancement New feature or request label Mar 17, 2023
@kendarorg kendarorg changed the title DNS on systems with DNS on systems with systemd-resolved Mar 17, 2023
@kendarorg kendarorg changed the title DNS on systems with systemd-resolved Infrastructure: DNS on systems with systemd-resolved Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant