diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2020-08-17 10:47:47 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2020-08-17 10:47:47 +0300 |
commit | ca69aa0dea509d6f3360f85ad5211d8f8c2f94c1 (patch) | |
tree | ddd1223de4b495d9aa0a30d45b63fded1705a285 /dns_example.c | |
parent | a3ed54cc0cf258e780609e67b61e4526cd9641dc (diff) | |
download | vsdns-ca69aa0dea509d6f3360f85ad5211d8f8c2f94c1.tar vsdns-ca69aa0dea509d6f3360f85ad5211d8f8c2f94c1.tar.xz vsdns-ca69aa0dea509d6f3360f85ad5211d8f8c2f94c1.zip |
Fix of server and host in example.
Diffstat (limited to 'dns_example.c')
-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; |