udns_resolver.c:916: dns_submit_dn: Assertion `q->dnsq_origdnl0 > 0' failed.

Michael Tokarev mjt at tls.msk.ru
Tue Jul 5 13:23:42 MSD 2011


03.07.2011 02:25, Iñaki Baz Castillo пишет:
> Hi, querying the following invalid domain "a. _" in a DNS A, AAAA,
> NAPTR, TXT or MX query produces DNS_E_BADQUERY.
> 
> However when querying the domain "a. _" in a SRV query (without
> specifying SRV service and SRV protocol fields, udns aborts:
> 
>   udns_resolver.c:916: dns_submit_dn: Assertion `q->dnsq_origdnl0 > 0' failed.

I can't reproduce this.  Maybe some little code?  I tried this tiny app:

--- cut ---
#include <udns.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char **argv) {
  int i;
  dns_init(NULL, 1);
  for(i = 1; i < argc; ++i)
    if (dns_resolve_srv(NULL, argv[i], NULL, NULL, 0) == NULL)
      printf("%s: %s\n", argv[i], dns_strerror(dns_status(NULL)));
    else
      printf("%s: %s\n", argv[0], "ok");
  return 0;
}
--- cut ---

$ ./a.out a._
a._: domain name does not exist

as expected.  Also, please show me the search list your
app uses (search from /etc/resolv.conf or equivalent).

Thanks.

/mjt


More information about the udns mailing list