diff --git a/migrations/1755109182.sh b/migrations/1755109182.sh index 352e342..1908b94 100755 --- a/migrations/1755109182.sh +++ b/migrations/1755109182.sh @@ -28,5 +28,4 @@ if [ -f /etc/systemd/resolved.conf ]; then echo "DNS configuration reset to use DHCP (router DNS)" echo "To use Cloudflare DNS, run: omarchy-setup-dns Cloudflare" -fi - +fi \ No newline at end of file diff --git a/migrations/1756491748.sh b/migrations/1756491748.sh new file mode 100755 index 0000000..801f82a --- /dev/null +++ b/migrations/1756491748.sh @@ -0,0 +1,6 @@ +echo "Removing UseDNS=no from network files to fix DNS issue" + +for file in /etc/systemd/network/*.network; do + [[ -f "$file" ]] || continue + sudo sed -i '/^UseDNS=no/d' "$file" +done \ No newline at end of file