From acf41993d4d699ff12238e943d7112dfdd5ace12 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Wed, 29 Jul 2020 08:21:59 +0300 Subject: Makefile & little upgrades. --- dns_example.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dns_example.c') diff --git a/dns_example.c b/dns_example.c index 27eea8d..f6efeba 100644 --- a/dns_example.c +++ b/dns_example.c @@ -4,10 +4,9 @@ int main() { - struct dns_answers *ans = dns_get("10.1.1.1", - "veresov.pro", - dns_type_mx); struct dns_answers *cur; + const char *router = "10.1.1.1"; /* place here your one */ + struct dns_answers *ans = dns_get(router, "veresov.pro", dns_type_a); for (cur = ans; cur; cur = cur->next) { if (cur->type == dns_type_a) { unsigned char *ip = cur->data; -- cgit v1.2.3