mirror of
https://github.com/outbackdingo/ack-image-builder.git
synced 2026-01-27 10:18:13 +00:00
add custom DNS support and avoid overwriting
This commit is contained in:
10
scripts/updateDNS.sh
Executable file
10
scripts/updateDNS.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# unlock DNS file in case it was locked
|
||||
# chattr -i /etc/resolv.conf
|
||||
|
||||
# Using your custom nameserver to replace xxx.xxx.xxx.xxx
|
||||
# echo "nameserver xxx.xxx.xxx.xxx\nnameserver xxx.xxx.xxx.xxx" > /etc/resolv.conf
|
||||
|
||||
# Keep resolv locked to prevent overwriting by cloudinit/NetworkManager
|
||||
# chattr +i /etc/resolv.conf
|
||||
Reference in New Issue
Block a user