Compare commits

..

No commits in common. '0af704992b151c4c6512ddba2026d7f54bbf107a' and '64e52360a8809e381781b4efefece9632ae7073c' have entirely different histories.

  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><li><a href="https://github.com/mbrettsc">[<strong>mbrettsc</strong>]</a> Martin Brettschneider</li><!-- sponsors -->
<!-- sponsors --><li><a href="https://github.com/dwightgunning">[<strong>dwightgunning</strong>]</a> Dwight Gunning</li><!-- sponsors -->
</ul>

@ -23,7 +23,9 @@ 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
if grep -q "${docker_dns}" /etc/resolv.conf; then
grep -q "${docker_dns}" /etc/resolv.conf
grepstatus=$?
if test $grepstatus -eq 0; 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