mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
add dns to sysconfig interface configuration
This commit is contained in:
parent
1dd9f0747e
commit
05ad4445b5
1 changed files with 2 additions and 0 deletions
|
@ -359,6 +359,8 @@ setStaticIPv4() {
|
||||||
${SUDO} echo "IPADDR=$IPADDR" >> ${IFCFG_FILE}
|
${SUDO} echo "IPADDR=$IPADDR" >> ${IFCFG_FILE}
|
||||||
${SUDO} echo "PREFIX=$CIDR" >> ${IFCFG_FILE}
|
${SUDO} echo "PREFIX=$CIDR" >> ${IFCFG_FILE}
|
||||||
${SUDO} echo "GATEWAY=$IPv4gw" >> ${IFCFG_FILE}
|
${SUDO} echo "GATEWAY=$IPv4gw" >> ${IFCFG_FILE}
|
||||||
|
${SUDO} echo "DNS1=$piholeDNS1" >> ${IFCFG_FILE}
|
||||||
|
${SUDO} echo "DNS2=$piholeDNS2" >> ${IFCFG_FILE}
|
||||||
${SUDO} echo "USERCTL=no" >> ${IFCFG_FILE}
|
${SUDO} echo "USERCTL=no" >> ${IFCFG_FILE}
|
||||||
${SUDO} ip addr replace dev "$piholeInterface" "$IPv4addr"
|
${SUDO} ip addr replace dev "$piholeInterface" "$IPv4addr"
|
||||||
if [ -x "$(command -v nmcli)" ];then
|
if [ -x "$(command -v nmcli)" ];then
|
||||||
|
|
Loading…
Reference in a new issue