FreeBSD Bugzilla – Attachment 175397 Details for
Bug 213178
[libc] resolv "asked for IN A got RRSIG" syslog spamming with DNSSEC bit set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
short test case triggering the warning to syslog
test.c (text/plain), 590 bytes, created by
alexander
on 2016-10-03 20:31:14 UTC
(
hide
)
Description:
short test case triggering the warning to syslog
Filename:
MIME Type:
Creator:
alexander
Created:
2016-10-03 20:31:14 UTC
Size:
590 bytes
patch
obsolete
>#include <sys/types.h> >#include <sys/socket.h> >#include <netinet/in.h> >#include <arpa/inet.h> >#include <netdb.h> >#include <stdio.h> >#include <stdlib.h> >#include <resolv.h> > >int main(int argc, char **argv) { > res_init(); > (&_res)->options |= RES_USE_DNSSEC | RES_USE_EDNS0; // enable DNSSEC ala exim > struct hostent *hp = gethostbyname(argv[1]); > if (hp) { > printf("%s = ", hp->h_name); > for( unsigned int i=0; hp->h_addr_list[i] != NULL; i++) { > printf( "%s ", inet_ntoa( *( struct in_addr*)( hp -> h_addr_list[i]))); > } > printf("\n"); > } >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 213178
: 175397