Skip to content

Commit

Permalink
Remove special handling of certain upstream DNS server (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
DL6ER committed Dec 10, 2022
2 parents 49033f9 + 509781e commit 71d6c3a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ GetNetworkInformation() {

# Get hostname and gateway
pi_hostname=$(hostname)
pi_gateway=$(ip r | grep 'default' | awk '{print $3}')

full_hostname=${pi_hostname}
# does the Pi-hole have a domain set?
Expand Down Expand Up @@ -329,15 +328,7 @@ GetNetworkInformation() {

# if there's only one DNS server
if [ ${dns_count} -eq 1 ]; then
if [ "${PIHOLE_DNS_1}" = "127.0.0.1#5053" ]; then
dns_information="1 server (Cloudflared)"
elif [ "${PIHOLE_DNS_1}" = "${pi_gateway}#53" ]; then
dns_information="1 server (gateway)"
else
dns_information="1 server"
fi
elif [ ${dns_count} -gt 8 ]; then
dns_information="8+ servers"
else
dns_information="${dns_count} servers"
fi
Expand Down

0 comments on commit 71d6c3a

Please sign in to comment.