kendarorg / HttpAnsweringMachine

Mixing trafficparrot, mitm proxy and pact.io, without using all of them. Real mocks, Recording, Inspections, PACT and NULL infrastructure at once
MIT License
32 stars 3 forks source link

Infrastructure: DNS on systems with systemd-resolved #175

Open kendarorg opened 1 year ago

kendarorg commented 1 year ago

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/

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