|
@ -13,7 +13,7 @@ |
|
|
dnl * * |
|
|
dnl * * |
|
|
--- a/src/libs/zbxsysinfo/common/net.c
|
|
|
--- a/src/libs/zbxsysinfo/common/net.c
|
|
|
+++ b/src/libs/zbxsysinfo/common/net.c
|
|
|
+++ b/src/libs/zbxsysinfo/common/net.c
|
|
|
@@ -424,6 +424,7 @@ static int dns_query(AGENT_REQUEST *requ
|
|
|
|
|
|
|
|
|
@@ -425,6 +425,7 @@ static int dns_query(AGENT_REQUEST *requ
|
|
|
if (-1 == res_init()) /* initialize always, settings might have changed */ |
|
|
if (-1 == res_init()) /* initialize always, settings might have changed */ |
|
|
return SYSINFO_RET_FAIL; |
|
|
return SYSINFO_RET_FAIL; |
|
|
|
|
|
|
|
@ -21,7 +21,7 @@ |
|
|
if (-1 == (res = res_mkquery(QUERY, zone, C_IN, type, NULL, 0, NULL, buf, sizeof(buf)))) |
|
|
if (-1 == (res = res_mkquery(QUERY, zone, C_IN, type, NULL, 0, NULL, buf, sizeof(buf)))) |
|
|
return SYSINFO_RET_FAIL; |
|
|
return SYSINFO_RET_FAIL; |
|
|
|
|
|
|
|
|
@@ -448,6 +449,11 @@ static int dns_query(AGENT_REQUEST *requ
|
|
|
|
|
|
|
|
|
@@ -449,6 +450,11 @@ static int dns_query(AGENT_REQUEST *requ
|
|
|
_res.retry = retry; |
|
|
_res.retry = retry; |
|
|
|
|
|
|
|
|
res = res_send(buf, res, answer.buffer, sizeof(answer.buffer)); |
|
|
res = res_send(buf, res, answer.buffer, sizeof(answer.buffer)); |
|
|