|
unbound 0.1
|
This file is made because contrib/update-anchor.sh does not work on windows (no shell). More...
#include "config.h"#include "libunbound/unbound.h"#include "sldns/rrdef.h"#include "sldns/pkthdr.h"#include "sldns/wire2str.h"Functions | |
| static void | usage (void) |
| usage | |
| static void | fatal (const char *str) |
| fatal exit | |
| static struct ub_result * | do_lookup (struct ub_ctx *ctx, char *domain) |
| lookup data | |
| static void | do_print (struct ub_result *result, char *file) |
| print result to file | |
| static int | do_update (char *domain, char *file) |
| update domain to file | |
| int | main (int argc, char **argv) |
| anchor update main | |
This file is made because contrib/update-anchor.sh does not work on windows (no shell).
|
static |
usage
References usage().
|
static |
lookup data
References do_lookup(), fatal(), ub_result::havedata, LDNS_RR_CLASS_IN, ub_result::rcode, ub_result::secure, ub_resolve(), and ub_strerror().
|
static |
print result to file
References ub_result::data, do_print(), fatal(), ub_result::havedata, ub_result::len, ub_result::qname, ub_result::qtype, sldns_wire2str_rdata_buf(), and sldns_wire2str_type_buf().
Referenced by do_print(), and do_update().
|
static |
update domain to file
References do_lookup(), do_print(), do_update(), fatal(), ub_ctx_add_ta_file(), ub_ctx_create(), ub_ctx_delete(), ub_resolve_free(), and ub_strerror().
Referenced by do_update(), and main().
| int main | ( | int | argc, |
| char ** | argv ) |
anchor update main
References do_update(), main, and usage().