djbdnscurve6
53
djbdnscurve6
Loading...
Searching...
No Matches
VERS_4
djbdnscurve6-53
src
dnstxt.c
Go to the documentation of this file.
1
#include "buffer.h"
2
#include "exit.h"
3
#include "logmsg.h"
4
#include "
dns.h
"
5
6
#define WHO "dnstxt"
7
8
unsigned
int
flagedns0
= 0;
9
unsigned
int
msgsize
=
MSGSIZE
;
10
11
static
char
seed
[128];
12
static
stralloc fqdn;
13
static
stralloc out;
14
15
int
main
(
int
argc,
char
**argv)
16
{
17
dns_random_init
(
seed
);
18
19
if
(*argv) ++argv;
20
21
while
(*argv) {
22
if
(!stralloc_copys(&fqdn,*argv))
23
logmsg(
WHO
,111,FATAL,
"out of memory"
);
24
if
(
dns_txt
(&out,&fqdn) > 0) {
25
buffer_put(buffer_1,out.s,out.len);
26
buffer_puts(buffer_1,
"\n"
);
27
}
28
++argv;
29
}
30
31
buffer_flush(buffer_1);
32
_exit(0);
33
}
main
int main()
Definition:
axfrdns.c:326
dns.h
MSGSIZE
#define MSGSIZE
Definition:
dns.h:47
dns_random_init
void dns_random_init(const char data[128])
Definition:
dns_random.c:36
dns_txt
int dns_txt(stralloc *out, const stralloc *fqdn)
Definition:
dns_txt.c:53
seed
uint32 seed[32]
Definition:
dnscache-conf.c:36
flagedns0
unsigned int flagedns0
Definition:
dnstxt.c:8
msgsize
unsigned int msgsize
Definition:
dnstxt.c:9
WHO
#define WHO
Definition:
dnstxt.c:6
Generated on Wed May 27 2026 12:24:18 for djbdnscurve6 by
1.9.6