// for use with djbernstein library, /* licence 4, i keep the rights to modify, extends, change it drastically or not, rename it, * though you can do the same thing, * but i am hereby solely permitted to delete it */ #include #include #include #include #include static char seed[128]; int main(int ac, char **av) { stralloc out = {0}; stralloc fqdn = {0}; char *curl,ip[16]; int r=254,i; double decip, a,b,c,d; if (ac<2) return 255; ++av; stralloc_copys(&fqdn,*av); ++av; dns_random_init(seed); switch (atoi(*av)) { case 0: r=dns_ip4(&out,&fqdn); printf("%d:%d:", r, out.len/4); curl=out.s; for ( i=0; i