Compare commits

...

2 Commits

  1. 2
      README.md
  2. 4
      pkg/types/fixes/assets/k3d-entrypoint-dns.sh

@ -183,5 +183,5 @@ This project follows the [all-contributors](https://github.com/all-contributors/
Thanks to all our amazing sponsors! ๐Ÿ™
<ul>
<!-- sponsors --><li><a href="https://github.com/dwightgunning">[<strong>dwightgunning</strong>]</a> Dwight Gunning</li><!-- sponsors -->
<!-- sponsors --><li><a href="https://github.com/dwightgunning">[<strong>dwightgunning</strong>]</a> Dwight Gunning</li><li><a href="https://github.com/mbrettsc">[<strong>mbrettsc</strong>]</a> Martin Brettschneider</li><!-- sponsors -->
</ul>

@ -23,9 +23,7 @@ iptables-save \
| iptables-restore
# Update resolv.conf to use the Gateway IP if needed: this will also make CoreDNS use it via k3s' default `forward . /etc/resolv.conf` rule in the CoreDNS config
grep -q "${docker_dns}" /etc/resolv.conf
grepstatus=$?
if test $grepstatus -eq 0; then
if grep -q "${docker_dns}" /etc/resolv.conf; then
echo "[$(date -Iseconds)] [DNS Fix] > Replacing IP in /etc/resolv.conf ..."
cp /etc/resolv.conf /etc/resolv.conf.original
sed -e "s/${docker_dns}/${gateway}/g" /etc/resolv.conf.original >/etc/resolv.conf

Loadingโ€ฆ
Cancel
Save