mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
query DNS with FQDN (#555)
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
c11177f98b
commit
8321da24c7
@ -137,7 +137,7 @@
|
|||||||
if [ ! -z "${DIGBINARY}" ]; then
|
if [ ! -z "${DIGBINARY}" ]; then
|
||||||
# See if we can query something at the nameserver
|
# See if we can query something at the nameserver
|
||||||
# 0=good, other=bad
|
# 0=good, other=bad
|
||||||
DNSRESPONSE=$(${DIGBINARY} +noall +time=3 +retry=0 @${I} ${I} > /dev/null ; echo $?)
|
DNSRESPONSE=$(${DIGBINARY} +noall +time=3 +retry=0 @${I} ${FQDN} > /dev/null ; echo $?)
|
||||||
if [ "${DNSRESPONSE}" = "0" ]; then
|
if [ "${DNSRESPONSE}" = "0" ]; then
|
||||||
Display --indent 8 --text "Nameserver: ${I}" --result "${STATUS_OK}" --color GREEN
|
Display --indent 8 --text "Nameserver: ${I}" --result "${STATUS_OK}" --color GREEN
|
||||||
LogText "Nameserver ${I} seems to respond to queries from this host."
|
LogText "Nameserver ${I} seems to respond to queries from this host."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user