diff options
-rw-r--r-- | dns_example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dns_example.c b/dns_example.c index fb0c74a..843a1d7 100644 --- a/dns_example.c +++ b/dns_example.c @@ -5,8 +5,8 @@ int main() { struct dns_answers *cur; - const char *server = "8.8.8.8"; /* place your favourite one */ - struct dns_answers *ans = dns_get(server, "veresov.pro", dns_type_txt); + const char *server = "1.1.1.1"; /* place your favourite one */ + struct dns_answers *ans = dns_get(server, "veresov.pro", dns_type_a); for (cur = ans; cur; cur = cur->next) { if (cur->type == dns_type_a) { unsigned char *ip = cur->data; |