├── .cvsignore ├── COPYING ├── GPL-vs-LGPL ├── INSTALL ├── LICENCE.WAIVERS ├── Makefile ├── Makefile.in ├── README ├── README.html ├── TODO ├── acconfig.h ├── aclocal.m4 ├── changelog ├── client ├── .cvsignore ├── Makefile.in ├── adh-main.c ├── adh-opts.c ├── adh-query.c ├── adnsheloex.c ├── adnshost.h ├── adnslogres.c ├── adnsresfilter.c ├── adnstest.c ├── client.h └── fanftest.c ├── configure ├── configure.in ├── dynamic ├── .cvsignore └── Makefile.in ├── install-sh ├── regress ├── .cvsignore ├── Makefile.in ├── addcases ├── adnshost-xinitflags.text ├── adnslogres-xinitflags.text ├── adnsresfilter-xinitflags.text ├── case-1stservbroken.err ├── case-1stservbroken.out ├── case-1stservbroken.sys ├── case-1stservtotcp.err ├── case-1stservtotcp.out ├── case-1stservtotcp.sys ├── case-2ndservok.err ├── case-2ndservok.out ├── case-2ndservok.sys ├── case-2ndservtcp.err ├── case-2ndservtcp.out ├── case-2ndservtcp.sys ├── case-abbrev.err ├── case-abbrev.out ├── case-abbrev.sys ├── case-abbrevto.err ├── case-abbrevto.out ├── case-abbrevto.sys ├── case-adh-cancel.err ├── case-adh-cancel.out ├── case-adh-cancel.sys ├── case-adh-cancel2.err ├── case-adh-cancel2.out ├── case-adh-cancel2.sys ├── case-adh-cancel3.err ├── case-adh-cancel3.out ├── case-adh-cancel3.sys ├── case-adh-norm.err ├── case-adh-norm.out ├── case-adh-norm.sys ├── case-adh-pipe.err ├── case-adh-pipe.out ├── case-adh-pipe.sys ├── case-alr-norm.err ├── case-alr-norm.in ├── case-alr-norm.out ├── case-alr-norm.sys ├── case-alr-slow.err ├── case-alr-slow.in ├── case-alr-slow.out ├── case-alr-slow.sys ├── case-arf-norm.err ├── case-arf-norm.out ├── case-arf-norm.sys ├── case-arf-text.err ├── case-arf-text.out ├── case-arf-text.sys ├── case-brokenmail.err ├── case-brokenmail.out ├── case-brokenmail.sys ├── case-child.err ├── case-child.out ├── case-child.sys ├── case-cnametocname.err ├── case-cnametocname.out ├── case-cnametocname.sys ├── case-comprinf.err ├── case-comprinf.out ├── case-comprinf.sys ├── case-connfail.err ├── case-connfail.out ├── case-connfail.sys ├── case-datapluscname.err ├── case-datapluscname.out ├── case-datapluscname.sys ├── case-datapluscnamewait.err ├── case-datapluscnamewait.out ├── case-datapluscnamewait.sys ├── case-flags10.err ├── case-flags10.out ├── case-flags10.sys ├── case-flags9.err ├── case-flags9.out ├── case-flags9.sys ├── case-formerr.err ├── case-formerr.out ├── case-formerr.sys ├── case-lockup.err ├── case-lockup.out ├── case-lockup.sys ├── case-longdom0.err ├── case-longdom0.out ├── case-longdom0.sys ├── case-longdom1.err ├── case-longdom1.out ├── case-longdom1.sys ├── case-longdomsrch0.err ├── case-longdomsrch0.out ├── case-longdomsrch0.sys ├── case-longdomsrch1.err ├── case-longdomsrch1.out ├── case-longdomsrch1.sys ├── case-longdomsrch1b.err ├── case-longdomsrch1b.out ├── case-longdomsrch1b.sys ├── case-longdomsrch2.err ├── case-longdomsrch2.out ├── case-longdomsrch2.sys ├── case-longlab0.err ├── case-longlab0.out ├── case-longlab0.sys ├── case-longlab1.err ├── case-longlab1.out ├── case-longlab1.sys ├── case-mailboxes.err ├── case-mailboxes.out ├── case-mailboxes.sys ├── case-manya.err ├── case-manya.out ├── case-manya.sys ├── case-manyptrwrong.err ├── case-manyptrwrong.out ├── case-manyptrwrong.sys ├── case-manyptrwrongrem.err ├── case-manyptrwrongrem.out ├── case-manyptrwrongrem.sys ├── case-manyptrwrongrst.err ├── case-manyptrwrongrst.out ├── case-manyptrwrongrst.sys ├── case-manyptrwrongrty.err ├── case-manyptrwrongrty.out ├── case-manyptrwrongrty.sys ├── case-ndots-as.err ├── case-ndots-as.out ├── case-ndots-as.sys ├── case-ndots.err ├── case-ndots.out ├── case-ndots.sys ├── case-ndotsbad.err ├── case-ndotsbad.out ├── case-ndotsbad.sys ├── case-noinfto.err ├── case-noinfto.out ├── case-noinfto.sys ├── case-norecurse.err ├── case-norecurse.out ├── case-norecurse.sys ├── case-norecurse2.err ├── case-norecurse2.out ├── case-norecurse2.sys ├── case-norecurse3.err ├── case-norecurse3.out ├── case-norecurse3.sys ├── case-norm.err ├── case-norm.out ├── case-norm.sys ├── case-owner.err ├── case-owner.out ├── case-owner.sys ├── case-poll.err ├── case-poll.out ├── case-poll.sys ├── case-polltimeout.err ├── case-polltimeout.out ├── case-polltimeout.sys ├── case-ptrbaddom.err ├── case-ptrbaddom.out ├── case-ptrbaddom.sys ├── case-quote.err ├── case-quote.out ├── case-quote.sys ├── case-rootquery.err ├── case-rootquery.out ├── case-rootquery.sys ├── case-rootqueryall-as.err ├── case-rootqueryall-as.out ├── case-rootqueryall-as.sys ├── case-rootqueryall.err ├── case-rootqueryall.out ├── case-rootqueryall.sys ├── case-search-as.err ├── case-search-as.out ├── case-search-as.sys ├── case-search.err ├── case-search.out ├── case-search.sys ├── case-searchabs.err ├── case-searchabs.out ├── case-searchabs.sys ├── case-sillyrp.err ├── case-sillyrp.out ├── case-sillyrp.sys ├── case-srvbaddom.err ├── case-srvbaddom.out ├── case-srvbaddom.sys ├── case-srvha.err ├── case-srvha.out ├── case-srvha.sys ├── case-srvok.err ├── case-srvok.out ├── case-srvok.sys ├── case-srvqudom.err ├── case-srvqudom.out ├── case-srvqudom.sys ├── case-srvsort.err ├── case-srvsort.out ├── case-srvsort.sys ├── case-tcpallfail.err ├── case-tcpallfail.out ├── case-tcpallfail.sys ├── case-tcpblock.err ├── case-tcpblock.out ├── case-tcpblock.sys ├── case-tcpblockbrk.err ├── case-tcpblockbrk.out ├── case-tcpblockbrk.sys ├── case-tcpblockwr.err ├── case-tcpblockwr.out ├── case-tcpblockwr.sys ├── case-tcpbreakin.err ├── case-tcpbreakin.out ├── case-tcpbreakin.sys ├── case-tcpmultipart.err ├── case-tcpmultipart.out ├── case-tcpmultipart.sys ├── case-tcpptr.err ├── case-tcpptr.out ├── case-tcpptr.sys ├── case-timeout.err ├── case-timeout.out ├── case-timeout.sys ├── case-trunc.err ├── case-trunc.out ├── case-trunc.sys ├── case-unknown2.err ├── case-unknown2.out ├── case-unknown2.sys ├── case-unknown33.err ├── case-unknown33.out ├── case-unknown33.sys ├── case-unknown5.err ├── case-unknown5.out ├── case-unknown5.sys ├── case-unknownq.err ├── case-unknownq.out ├── case-unknownq.sys ├── checkall ├── harness.h ├── harness.h.m4 ├── hcommon.c ├── hcommon.c.m4 ├── hmacros.i4 ├── hplayback.c ├── hplayback.c.m4 ├── hrecord.c ├── hrecord.c.m4 ├── hredirect.h ├── hredirect.h.m4 ├── hsyscalls.h ├── hsyscalls.h.m4 ├── hsyscalls.i4 ├── init-1stservbroken.text ├── init-1stservto.text ├── init-2ndserver.text ├── init-anarres.text ├── init-default.text ├── init-manyptrwrong.text ├── init-ncipher.text ├── init-ndots.text ├── init-ndots100.text ├── init-ndotsbad.text ├── init-noserver.text ├── init-tunnel.text ├── m1test └── r1test ├── settings.make.in └── src ├── .cvsignore ├── Makefile.in ├── adns.h ├── adns.make ├── check.c ├── config.h ├── config.h.in ├── dlist.h ├── event.c ├── general.c ├── internal.h ├── parse.c ├── poll.c ├── query.c ├── reply.c ├── setup.c ├── transmit.c ├── tvarith.h └── types.c /.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | config.log 3 | config.cache 4 | config.status 5 | dist_tmp 6 | adns-*.tar.gz 7 | settings.make 8 | *.tmp* 9 | -------------------------------------------------------------------------------- /LICENCE.WAIVERS: -------------------------------------------------------------------------------- 1 | LICENCE WAIVERS FOR ADNS 2 | ======================== 3 | 4 | See GPL-vs-LGPL, section 2. This file contains reproductions of 5 | waivers I have granted to allow adns to be mixed with certain other 6 | programs whose licenses are not GPL compatible. 7 | 8 | 9 | IMPORTANT NOTES 10 | --------------- 11 | 12 | * Not all of the code in adns was written by me. The programs 13 | `fanftest', `adnslogres' and `adnsheloex' are (partially) copyright 14 | Tony Finch and to that extent are not covered by the waivers. I 15 | believe - but do not warrant - that the rest of adns is (at the 16 | time of writing, 19th of November 2005) entirely mine, but please 17 | check the copyright notices on the individual files. 18 | 19 | * These waivers apply only in the specified circumstances. 20 | 21 | * The waivers listed in this file LICENCE.WAIVERS in a particular 22 | version of adns also apply to versions of adns released previously 23 | to the one with the LICENCE.WAIVERS file. But they do not 24 | necessarily apply to future versions of adns. 25 | 26 | - iwj, 19th November 2005 27 | 28 | 29 | Affero GPL 30 | ---------- 31 | 32 | When adns is combined with 33 | Infomine (http://infomine.ucr.edu) 34 | or a work derived from it, I am happy for you to treat adns as if 35 | it were licenced to you (and all third parties) under the GNU GPL 36 | v2 with additionally the clause 2d from the Affero General Public 37 | Licence version 1 (as published today at 38 | http://www.gnu.org/licenses/agpl.html). 39 | 40 | - iwj, 2nd March 2004 41 | 42 | 43 | Local variables: 44 | mode: text 45 | End: 46 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # Generated automatically from Makefile.in by configure. 2 | # Makefile[.in] - top-level Makefile 3 | # 4 | # This file is part of adns, which is 5 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 6 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 7 | # Copyright (C) 1991 Massachusetts Institute of Technology 8 | # (See the file INSTALL for full details.) 9 | # 10 | # This program is free software; you can redistribute it and/or modify 11 | # it under the terms of the GNU General Public License as published by 12 | # the Free Software Foundation; either version 2, or (at your option) 13 | # any later version. 14 | # 15 | # This program is distributed in the hope that it will be useful, 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | # GNU General Public License for more details. 19 | # 20 | # You should have received a copy of the GNU General Public License 21 | # along with this program; if not, write to the Free Software Foundation, 22 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 23 | 24 | # Remember to change ADNS_VERSION_STRING in client/client.h too, and 25 | # possibly library soname (MAJOR and MINOR in settings.make.in). 26 | DISTVERSION= 1.4 27 | 28 | srcdir= . 29 | 30 | ENABLE_DYNAMIC= elf 31 | ifeq ($(ENABLE_DYNAMIC),elf) 32 | SUBDIRS_DYNAMIC=dynamic 33 | else 34 | SUBDIRS_DYNAMIC= 35 | endif 36 | 37 | SUBDIRS= src $(SUBDIRS_DYNAMIC) client regress 38 | 39 | all install uninstall clean distclean mostlyclean maintainer-clean distprep: 40 | set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done 41 | $(MAKE) $@-here 42 | 43 | all-here install-here uninstall-here distprep-here: README 44 | 45 | clean-here mostlyclean-here: 46 | rm -f *~ ./#*# core *.orig *.rej adns-*.tar.gz 47 | rm -rf dist_tmp 48 | 49 | distclean-here maintainer-clean-here: clean-here 50 | rm -f settings.make config.h config.cache config.log config.status 51 | 52 | install-strip: 53 | $(MAKE) INSTALL_PROGRAM_FLAGS=-s 54 | 55 | dist_tmp=dist_tmp/adns-$(DISTVERSION) 56 | dist: distprep 57 | rm -rf dist_tmp* 58 | mkdir dist_tmp $(dist_tmp) 59 | find \( -name CVS -o -name dist_tmp* \) -prune -o -type d -print | \ 60 | sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh 61 | find \( -name CVS -o -name dist_tmp* \) -prune -o -type f -print | \ 62 | sed -e 's#.*#ln & $(dist_tmp)/&#' | sh 63 | $(MAKE) -C dist_tmp/adns-$(DISTVERSION) distclean 64 | cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)` 65 | gzip -9 $(dist_tmp).tar 66 | mv $(dist_tmp).tar.gz . 67 | 68 | check: all 69 | $(MAKE) -C regress check 70 | 71 | README: README.html 72 | lynx -dump -number_links -cfg=/dev/null ./README.html >README.tmp 73 | mv -f README.tmp README 74 | 75 | TAGS info dvi: 76 | # do nothing 77 | 78 | .PHONY: install #people with case-insensitive filesystems lose otherwise! 79 | -------------------------------------------------------------------------------- /Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile[.in] - top-level Makefile 2 | # 3 | # This file is part of adns, which is 4 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 5 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 6 | # Copyright (C) 1991 Massachusetts Institute of Technology 7 | # (See the file INSTALL for full details.) 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation; either version 2, or (at your option) 12 | # any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program; if not, write to the Free Software Foundation, 21 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 | 23 | # Remember to change ADNS_VERSION_STRING in client/client.h too, and 24 | # possibly library soname (MAJOR and MINOR in settings.make.in). 25 | DISTVERSION= 1.4 26 | 27 | srcdir= @srcdir@ 28 | VPATH= @srcdir@ 29 | 30 | ENABLE_DYNAMIC= @ENABLE_DYNAMIC@ 31 | ifeq ($(ENABLE_DYNAMIC),elf) 32 | SUBDIRS_DYNAMIC=dynamic 33 | else 34 | SUBDIRS_DYNAMIC= 35 | endif 36 | 37 | SUBDIRS= src $(SUBDIRS_DYNAMIC) client regress 38 | 39 | all install uninstall clean distclean mostlyclean maintainer-clean distprep: 40 | set -e; for d in $(SUBDIRS); do $(MAKE) -C $$d $@; done 41 | $(MAKE) $@-here 42 | 43 | all-here install-here uninstall-here distprep-here: README 44 | 45 | clean-here mostlyclean-here: 46 | rm -f *~ ./#*# core *.orig *.rej adns-*.tar.gz 47 | rm -rf dist_tmp 48 | 49 | distclean-here maintainer-clean-here: clean-here 50 | rm -f settings.make config.h config.cache config.log config.status 51 | 52 | install-strip: 53 | $(MAKE) INSTALL_PROGRAM_FLAGS=-s 54 | 55 | dist_tmp=dist_tmp/adns-$(DISTVERSION) 56 | dist: distprep 57 | rm -rf dist_tmp* 58 | mkdir dist_tmp $(dist_tmp) 59 | find \( -name CVS -o -name dist_tmp* \) -prune -o -type d -print | \ 60 | sed -e 's#.*#mkdir -p $(dist_tmp)/&#' | sh 61 | find \( -name CVS -o -name dist_tmp* \) -prune -o -type f -print | \ 62 | sed -e 's#.*#ln & $(dist_tmp)/&#' | sh 63 | $(MAKE) -C dist_tmp/adns-$(DISTVERSION) distclean 64 | cd dist_tmp && tar cf ../$(dist_tmp).tar `basename $(dist_tmp)` 65 | gzip -9 $(dist_tmp).tar 66 | mv $(dist_tmp).tar.gz . 67 | 68 | check: all 69 | $(MAKE) -C regress check 70 | 71 | README: README.html 72 | lynx -dump -number_links -cfg=/dev/null ./README.html >README.tmp 73 | mv -f README.tmp README 74 | 75 | TAGS info dvi: 76 | # do nothing 77 | 78 | .PHONY: install #people with case-insensitive filesystems lose otherwise! 79 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | WISHLIST: 2 | * Make timeouts configurable. 3 | * `fake' reverse queries (give nnn.nnn.nnn.nnn either always or on error) 4 | * `fake' forward queries (allow nnn.nnn.nnn.nnn -> A) 5 | * DNSSEC compatibility - be able to retreive KEY and SIG RRs 6 | * DNSSEC minimum functionality - ignore Additional when AD set. 7 | * IPv6 name<->address translation - but which version ?? 8 | * IPv6 transport. 9 | * Threadsafe version/mode. 10 | * Caching in the library. 11 | * Make port configurable in config file. 12 | * `Nameserver sent bad response' should produce a hexdump in the log 13 | (see eg mail to ian@davenant Mon, 25 Oct 2004 14:19:46 +0100 re 14 | `compressed datagram contains loop') 15 | -------------------------------------------------------------------------------- /aclocal.m4: -------------------------------------------------------------------------------- 1 | # aclocal.m4 - package-specific macros for autoconf 2 | # 3 | # This file is part of adns, which is 4 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 5 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 6 | # Copyright (C) 1991 Massachusetts Institute of Technology 7 | # (See the file INSTALL for full details.) 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation; either version 2, or (at your option) 12 | # any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program; if not, write to the Free Software Foundation, 21 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 | 23 | dnl DPKG_CACHED_TRY_COMPILE(,,,,,) 24 | define(DPKG_CACHED_TRY_COMPILE,[ 25 | AC_MSG_CHECKING($1) 26 | AC_CACHE_VAL($2,[ 27 | AC_TRY_COMPILE([$3],[$4],[$2=yes],[$2=no]) 28 | ]) 29 | if test "x$$2" = xyes; then 30 | true 31 | $5 32 | else 33 | true 34 | $6 35 | fi 36 | ]) 37 | 38 | define(ADNS_C_GCCATTRIB,[ 39 | DPKG_CACHED_TRY_COMPILE(__attribute__((,,)),adns_cv_c_attribute_supported,, 40 | [extern int testfunction(int x) __attribute__((,,))], 41 | AC_MSG_RESULT(yes) 42 | AC_DEFINE(HAVE_GNUC25_ATTRIB) 43 | DPKG_CACHED_TRY_COMPILE(__attribute__((noreturn)),adns_cv_c_attribute_noreturn,, 44 | [extern int testfunction(int x) __attribute__((noreturn))], 45 | AC_MSG_RESULT(yes) 46 | AC_DEFINE(HAVE_GNUC25_NORETURN), 47 | AC_MSG_RESULT(no)) 48 | DPKG_CACHED_TRY_COMPILE(__attribute__((const)),adns_cv_c_attribute_const,, 49 | [extern int testfunction(int x) __attribute__((const))], 50 | AC_MSG_RESULT(yes) 51 | AC_DEFINE(HAVE_GNUC25_CONST), 52 | AC_MSG_RESULT(no)) 53 | DPKG_CACHED_TRY_COMPILE(__attribute__((format...)),adns_cv_attribute_format,, 54 | [extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))], 55 | AC_MSG_RESULT(yes) 56 | AC_DEFINE(HAVE_GNUC25_PRINTFFORMAT), 57 | AC_MSG_RESULT(no)), 58 | AC_MSG_RESULT(no)) 59 | ]) 60 | 61 | define(ADNS_C_GETFUNC,[ 62 | AC_CHECK_FUNC([$1],,[ 63 | AC_CHECK_LIB([$2],[$1],[$3],[ 64 | AC_MSG_ERROR([cannot find library function $1]) 65 | ]) 66 | ]) 67 | ]) 68 | -------------------------------------------------------------------------------- /client/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | adnstest 3 | adnstest_s 4 | adnslogres 5 | adnslogres_s 6 | adnsheloex 7 | adnsheloex_s 8 | adnshost 9 | adnshost_s 10 | adnsresfilter 11 | adnsresfilter_s 12 | fanftest 13 | fanftest_s 14 | -------------------------------------------------------------------------------- /client/Makefile.in: -------------------------------------------------------------------------------- 1 | # client/Makefile - client program(s) Makefile 2 | # 3 | # This file is part of adns, which is 4 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 5 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 6 | # Copyright (C) 1991 Massachusetts Institute of Technology 7 | # (See the file INSTALL for full details.) 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation; either version 2, or (at your option) 12 | # any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program; if not, write to the Free Software Foundation, 21 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 | 23 | srcdir= @srcdir@ 24 | VPATH= @srcdir@ 25 | 26 | PROGS_SYSDEP= @PROGS_HAVE_TSEARCH@ 27 | ENABLE_DYNAMIC= @ENABLE_DYNAMIC@ 28 | 29 | PROGRAMS= adnslogres adnsheloex adnshost $(PROGS_SYSDEP) 30 | PROGRAMS_LOCAL= fanftest adnstest 31 | PROGRAMS_ALL= $(PROGRAMS) $(PROGRAMS_LOCAL) 32 | 33 | STATIC_LIB= $(ADNSDIR)/libadns.a 34 | 35 | ifeq ($(ENABLE_DYNAMIC),elf) 36 | DYNAMIC_DEP= $(srcdir)/../dynamic/$(SHLIBFILE) 37 | DYNAMIC_LINK= -L$(srcdir)/../dynamic -ladns 38 | DYNAMIC_SUFFIX= _s 39 | else 40 | DYNAMIC_DEP= $(STATIC_LIB) 41 | DYNAMIC_LINK= $(STATIC_LIB) 42 | DYNAMIC_SUFFIX= 43 | endif 44 | 45 | TARG_INSTALL= $(PROGRAMS) 46 | TARG_LOCAL= $(addsuffix $(DYNAMIC_SUFFIX), $(PROGRAMS_ALL)) 47 | TARGETS= $(TARG_LOCAL) $(TARG_INSTALL) 48 | include $(srcdir)/../settings.make 49 | 50 | DIRCFLAGS= -I$(srcdir)/../src 51 | 52 | TARG_OBJS= $(addsuffix .o, $(PROGRAMS_ALL)) 53 | ADH_OBJS= adh-main.o adh-opts.o adh-query.o 54 | ALL_OBJS= $(ADH_OBJS) $(TARG_OBJS) 55 | 56 | ADNSDIR= $(srcdir)/../src/ 57 | 58 | all: $(TARGETS) 59 | 60 | install: $(TARG_INSTALL) 61 | mkdir -p $(bindir) 62 | set -xe; for f in $(TARG_INSTALL); \ 63 | do $(INSTALL_PROGRAM) $$f $(bindir)/$$f; done 64 | 65 | uninstall: 66 | for f in $(TARGETS); do rm -f $(bindir)/$$f; done 67 | 68 | adnshost: $(ADH_OBJS) $(DYNAMIC_DEP) 69 | $(CC) $(LDFLAGS) $(ADH_OBJS) $(DYNAMIC_LINK) -o $@ $(LDLIBS) 70 | 71 | adnshost_s: $(ADH_OBJS) $(STATIC_LIB) 72 | $(CC) $(LDFLAGS) $(ADH_OBJS) $(STATIC_LIB) -o $@ $(LDLIBS) 73 | 74 | $(ADH_OBJS): adnshost.h 75 | $(ALL_OBJS): $(ADNSDIR)/adns.h $(ADNSDIR)/config.h 76 | adnsresfilter.o: $(ADNSDIR)/tvarith.h 77 | 78 | %: %.o $(DYNAMIC_DEP) 79 | $(CC) $(LDFLAGS) $< $(DYNAMIC_LINK) -o $@ $(LDLIBS) 80 | 81 | %_s: %.o $(STATIC_LIB) 82 | $(CC) $(LDFLAGS) $< $(STATIC_LIB) -o $@ $(LDLIBS) 83 | -------------------------------------------------------------------------------- /client/client.h: -------------------------------------------------------------------------------- 1 | /* 2 | * clients.h 3 | * - useful declarations and definitions for adns client programs 4 | */ 5 | /* 6 | * This file is part of adns, which is 7 | * Copyright (C) 1997-2000,2003,2006 Ian Jackson 8 | * Copyright (C) 1999-2000,2003,2006 Tony Finch 9 | * Copyright (C) 1991 Massachusetts Institute of Technology 10 | * (See the file INSTALL for full details.) 11 | * 12 | * This program is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License as published by 14 | * the Free Software Foundation; either version 2, or (at your option) 15 | * any later version. 16 | * 17 | * This program is distributed in the hope that it will be useful, 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 | * GNU General Public License for more details. 21 | * 22 | * You should have received a copy of the GNU General Public License 23 | * along with this program; if not, write to the Free Software Foundation, 24 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 25 | */ 26 | 27 | #ifndef CLIENT_H_INCLUDED 28 | #define CLIENT_H_INCLUDED 29 | 30 | #define ADNS_VERSION_STRING "1.2" 31 | 32 | #define COPYRIGHT_MESSAGE \ 33 | "Copyright (C) 1997-2000,2003,2006 Ian Jackson\n" \ 34 | "Copyright (C) 1999-2000,2003,2006 Tony Finch\n" \ 35 | "Copyright (C) 1991 Massachusetts Institute of Technology\n" \ 36 | "This is free software; see the source for copying conditions. There is NO\n" \ 37 | "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" 38 | 39 | #define VERSION_MESSAGE(program) \ 40 | program " (GNU adns) " ADNS_VERSION_STRING "\n\n" COPYRIGHT_MESSAGE 41 | 42 | #define VERSION_PRINT_QUIT(program) \ 43 | if (fputs(VERSION_MESSAGE(program),stdout) == EOF || \ 44 | fclose(stdout)) { \ 45 | perror(program ": write version message"); \ 46 | quitnow(-1); \ 47 | } \ 48 | quitnow(0); 49 | 50 | void quitnow(int rc) NONRETURNING; 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /client/fanftest.c: -------------------------------------------------------------------------------- 1 | /* 2 | * fanftest.c 3 | * - a small test program from Tony Finch 4 | */ 5 | /* 6 | * This file is 7 | * Copyright (C) 1999 Tony Finch 8 | * Copyright (C) 1999-2000 Ian Jackson 9 | * 10 | * It is part of adns, which is 11 | * Copyright (C) 1997-2000,2003,2006 Ian Jackson 12 | * Copyright (C) 1999-2000,2003,2006 Tony Finch 13 | * Copyright (C) 1991 Massachusetts Institute of Technology 14 | * (See the file INSTALL for full details.) 15 | * 16 | * This program is free software; you can redistribute it and/or modify 17 | * it under the terms of the GNU General Public License as published by 18 | * the Free Software Foundation; either version 2, or (at your option) 19 | * any later version. 20 | * 21 | * This program is distributed in the hope that it will be useful, 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24 | * GNU General Public License for more details. 25 | * 26 | * You should have received a copy of the GNU General Public License 27 | * along with this program; if not, write to the Free Software Foundation, 28 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 29 | * 30 | * This version was originally supplied by Tony Finch, but has been 31 | * modified by Ian Jackson as it was incorporated into adns. 32 | */ 33 | 34 | static const char * const cvsid = 35 | "$Id: fanftest.c,v 1.6 2006/04/08 14:36:57 ian Exp $"; 36 | 37 | #include 38 | #include 39 | 40 | #include 41 | #include 42 | #include 43 | #include 44 | 45 | #include "config.h" 46 | #include "adns.h" 47 | 48 | static const char *progname; 49 | 50 | static void aargh(const char *msg) { 51 | fprintf(stderr, "%s: %s: %s (%d)\n", progname, msg, 52 | strerror(errno) ? strerror(errno) : "Unknown error", errno); 53 | exit(1); 54 | } 55 | 56 | int main(int argc, char *argv[]) { 57 | adns_state adns; 58 | adns_query query; 59 | adns_answer *answer; 60 | 61 | progname= strrchr(*argv, '/'); 62 | if (progname) 63 | progname++; 64 | else 65 | progname= *argv; 66 | 67 | if (argc != 2) { 68 | fprintf(stderr, "usage: %s \n", progname); 69 | exit(1); 70 | } 71 | 72 | errno= adns_init(&adns, adns_if_debug, 0); 73 | if (errno) aargh("adns_init"); 74 | 75 | errno= adns_submit(adns, argv[1], adns_r_ptr, 76 | adns_qf_quoteok_cname|adns_qf_cname_loose, 77 | NULL, &query); 78 | if (errno) aargh("adns_submit"); 79 | 80 | errno= adns_wait(adns, &query, &answer, NULL); 81 | if (errno) aargh("adns_init"); 82 | 83 | printf("%s\n", answer->status == adns_s_ok ? *answer->rrs.str : "dunno"); 84 | 85 | adns_finish(adns); 86 | 87 | return 0; 88 | } 89 | -------------------------------------------------------------------------------- /dynamic/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | libadns.so.* 3 | -------------------------------------------------------------------------------- /dynamic/Makefile.in: -------------------------------------------------------------------------------- 1 | # dynamic/Makefile - dynamic library Makefile 2 | # 3 | # This file is part of adns, which is 4 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 5 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 6 | # Copyright (C) 1991 Massachusetts Institute of Technology 7 | # (See the file INSTALL for full details.) 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation; either version 2, or (at your option) 12 | # any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program; if not, write to the Free Software Foundation, 21 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 | 23 | srcdir= @srcdir@ 24 | VPATH= @srcdir@ 25 | 26 | TARGETS= $(SHLIBFILE) $(SHLIBSONAME) $(SHLIBFORLINK) 27 | include $(srcdir)/../settings.make 28 | include $(srcdir)/../src/adns.make 29 | 30 | ALLOBJS= $(addsuffix _p.o, $(basename $(LIBOBJS))) 31 | 32 | install: 33 | mkdir -p $(libdir) 34 | $(INSTALL_PROGRAM) $(SHLIBFILE) $(libdir)/$(SHLIBFILE) 35 | ln -sf $(SHLIBFILE) $(libdir)/$(SHLIBSONAME) 36 | ln -sf $(SHLIBSONAME) $(libdir)/$(SHLIBFORLINK) 37 | 38 | uninstall: 39 | rm -f $(libdir)/$(SHLIBFILE) $(libdir)/$(SHLIBSONAME) 40 | 41 | $(SHLIBFORLINK): 42 | ln -s $(SHLIBSONAME) $(SHLIBFORLINK) 43 | 44 | $(SHLIBSONAME): 45 | ln -s $(SHLIBFILE) $(SHLIBSONAME) 46 | 47 | $(SHLIBFILE): $(ALLOBJS) 48 | rm -f $@ 49 | $(MKSHLIB_1) $@ $(MKSHLIB_2) $(ALLOBJS) $(LDLIBS) $(MKSHLIB_3) 50 | 51 | %_p.o: $(srcdir)/../src/%.c $(srcdir)/../src/adns.h \ 52 | $(srcdir)/../src/internal.h $(srcdir)/../src/config.h 53 | $(SHLIBCC) -I$(srcdir)/../src -c -o $@ $< 54 | 55 | $(LIBOBJS): 56 | -------------------------------------------------------------------------------- /regress/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | *_record 3 | *_playback 4 | output-*.* 5 | pipe.out 6 | pipe.err 7 | -------------------------------------------------------------------------------- /regress/Makefile.in: -------------------------------------------------------------------------------- 1 | # regress/Makefile[.in] - regression test Makefile 2 | # 3 | # This file is part of adns, which is 4 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 5 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 6 | # Copyright (C) 1991 Massachusetts Institute of Technology 7 | # (See the file INSTALL for full details.) 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation; either version 2, or (at your option) 12 | # any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program; if not, write to the Free Software Foundation, 21 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 | 23 | srcdir= @srcdir@ 24 | VPATH= @srcdir@ 25 | 26 | PROGS_SYSDEP= @PROGS_HAVE_TSEARCH@ 27 | 28 | CLIENTS= adnstest adnshost adnslogres $(PROGS_SYSDEP) 29 | AUTOCHDRS= harness.h hsyscalls.h hredirect.h 30 | AUTOCSRCS= hrecord.c hplayback.c hcommon.c 31 | include $(srcdir)/../settings.make 32 | include $(srcdir)/../src/adns.make 33 | 34 | DIRCFLAGS= -I$(srcdir)/../src 35 | 36 | HCPPFLAGS= -DADNS_REGRESS_TEST -I. 37 | 38 | REDIRLIBOBJS= $(addsuffix _d.o, $(basename $(LIBOBJS))) 39 | HARNLOBJS= hcommon.o $(REDIRLIBOBJS) 40 | TARGETS= $(addsuffix _record, $(CLIENTS)) $(addsuffix _playback, $(CLIENTS)) 41 | ADH_OBJS= adh-main_c.o adh-opts_c.o adh-query_c.o 42 | ALL_OBJS= $(HARNLOBJS) dtest.o hrecord.o hplayback.o 43 | 44 | .PRECIOUS: $(AUTOCSRCS) $(AUTOCHDRS) 45 | 46 | all install uninstall: $(TARGETS) 47 | 48 | check: $(TARGETS) 49 | ./checkall 50 | 51 | LINK_CMD= $(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@ 52 | 53 | %_record: %_c.o hrecord.o $(HARNLOBJS) 54 | $(LINK_CMD) 55 | 56 | %_playback: %_c.o hplayback.o $(HARNLOBJS) 57 | $(LINK_CMD) 58 | 59 | adnshost_%: $(ADH_OBJS) h%.o $(HARNLOBJS) 60 | $(LINK_CMD) 61 | 62 | %_d.o: $(srcdir)/../src/%.c hredirect.h 63 | $(CC) $(CFLAGS) $(HCPPFLAGS) -c -g -o $@ $< 64 | 65 | %_c.o: $(srcdir)/../client/%.c hredirect.h 66 | $(CC) $(CFLAGS) $(HCPPFLAGS) -I $(srcdir)/../src -c -g -o $@ $< 67 | 68 | $(ALL_OBJS): $(srcdir)/../src/adns.h $(srcdir)/../src/internal.h 69 | $(ALL_OBJS): harness.h hsyscalls.h 70 | $(ADH_OBJS): $(srcdir)/../client/adnshost.h 71 | 72 | %:: %.m4 hmacros.i4 hsyscalls.i4 73 | $(M4) -P $< >$@-a.new 74 | sed -e 's/hm_comma/,/g; s/hm_squote/'\''/g; /^[ ]*$$/d' <$@-a.new >$@-b.new 75 | @mv -f $@-b.new $@; rm -f $@-a.new 76 | -------------------------------------------------------------------------------- /regress/addcases: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # usage: ./addcases ... 3 | # 4 | # This file is part of adns, which is 5 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 6 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 7 | # Copyright (C) 1991 Massachusetts Institute of Technology 8 | # (See the file INSTALL for full details.) 9 | # 10 | # This program is free software; you can redistribute it and/or modify 11 | # it under the terms of the GNU General Public License as published by 12 | # the Free Software Foundation; either version 2, or (at your option) 13 | # any later version. 14 | # 15 | # This program is distributed in the hope that it will be useful, 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | # GNU General Public License for more details. 19 | # 20 | # You should have received a copy of the GNU General Public License 21 | # along with this program; if not, write to the Free Software Foundation, 22 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 23 | 24 | set -e 25 | 26 | for f in "$@" 27 | do 28 | cvs add "case-$f".{sys,out,err} 29 | done 30 | -------------------------------------------------------------------------------- /regress/adnshost-xinitflags.text: -------------------------------------------------------------------------------- 1 | --debug --config 2 | -------------------------------------------------------------------------------- /regress/adnslogres-xinitflags.text: -------------------------------------------------------------------------------- 1 | -d -C 2 | -------------------------------------------------------------------------------- /regress/adnsresfilter-xinitflags.text: -------------------------------------------------------------------------------- 1 | --debug --config 2 | -------------------------------------------------------------------------------- /regress/case-1stservbroken.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-1stservbroken.err -------------------------------------------------------------------------------- /regress/case-1stservbroken.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.2 2 | adns debug: using nameserver 172.18.45.6 3 | trunc.test.iwj.relativity.greenend.org.uk flags 0 type 12 PTR(raw) submitted 4 | adns warning: datagram receive error: Connection refused 5 | adns debug: TCP connected (NS=172.18.45.2) 6 | adns warning: TCP connection failed: read: Broken pipe (NS=172.18.45.2) 7 | adns debug: TCP connected (NS=172.18.45.6) 8 | trunc.test.iwj.relativity.greenend.org.uk flags 0 type PTR(raw): OK; nrrs=30; cname=$; owner=$; ttl=60 9 | long.domain.to.force.truncation.0.test.iwj.relativity.greenend.org.uk 10 | long.domain.to.force.truncation.1.test.iwj.relativity.greenend.org.uk 11 | long.domain.to.force.truncation.2.test.iwj.relativity.greenend.org.uk 12 | long.domain.to.force.truncation.3.test.iwj.relativity.greenend.org.uk 13 | long.domain.to.force.truncation.4.test.iwj.relativity.greenend.org.uk 14 | long.domain.to.force.truncation.5.test.iwj.relativity.greenend.org.uk 15 | long.domain.to.force.truncation.6.test.iwj.relativity.greenend.org.uk 16 | long.domain.to.force.truncation.7.test.iwj.relativity.greenend.org.uk 17 | long.domain.to.force.truncation.8.test.iwj.relativity.greenend.org.uk 18 | long.domain.to.force.truncation.9.test.iwj.relativity.greenend.org.uk 19 | long.domain.to.force.truncation.10.test.iwj.relativity.greenend.org.uk 20 | long.domain.to.force.truncation.11.test.iwj.relativity.greenend.org.uk 21 | long.domain.to.force.truncation.12.test.iwj.relativity.greenend.org.uk 22 | long.domain.to.force.truncation.13.test.iwj.relativity.greenend.org.uk 23 | long.domain.to.force.truncation.14.test.iwj.relativity.greenend.org.uk 24 | long.domain.to.force.truncation.15.test.iwj.relativity.greenend.org.uk 25 | long.domain.to.force.truncation.16.test.iwj.relativity.greenend.org.uk 26 | long.domain.to.force.truncation.17.test.iwj.relativity.greenend.org.uk 27 | long.domain.to.force.truncation.18.test.iwj.relativity.greenend.org.uk 28 | long.domain.to.force.truncation.19.test.iwj.relativity.greenend.org.uk 29 | long.domain.to.force.truncation.20.test.iwj.relativity.greenend.org.uk 30 | long.domain.to.force.truncation.21.test.iwj.relativity.greenend.org.uk 31 | long.domain.to.force.truncation.22.test.iwj.relativity.greenend.org.uk 32 | long.domain.to.force.truncation.23.test.iwj.relativity.greenend.org.uk 33 | long.domain.to.force.truncation.24.test.iwj.relativity.greenend.org.uk 34 | long.domain.to.force.truncation.25.test.iwj.relativity.greenend.org.uk 35 | long.domain.to.force.truncation.26.test.iwj.relativity.greenend.org.uk 36 | long.domain.to.force.truncation.27.test.iwj.relativity.greenend.org.uk 37 | long.domain.to.force.truncation.28.test.iwj.relativity.greenend.org.uk 38 | long.domain.to.force.truncation.29.test.iwj.relativity.greenend.org.uk 39 | rc=0 40 | -------------------------------------------------------------------------------- /regress/case-1stservtotcp.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-1stservtotcp.err -------------------------------------------------------------------------------- /regress/case-1stservtotcp.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 10.0.0.1 2 | adns debug: using nameserver 172.18.45.6 3 | trunc.test.iwj.relativity.greenend.org.uk flags 0 type 12 PTR(raw) submitted 4 | adns warning: TCP connection failed: unable to make connection: timed out (NS=10.0.0.1) 5 | adns debug: TCP connected (NS=172.18.45.6) 6 | trunc.test.iwj.relativity.greenend.org.uk flags 0 type PTR(raw): OK; nrrs=30; cname=$; owner=$; ttl=59 7 | long.domain.to.force.truncation.0.test.iwj.relativity.greenend.org.uk 8 | long.domain.to.force.truncation.1.test.iwj.relativity.greenend.org.uk 9 | long.domain.to.force.truncation.2.test.iwj.relativity.greenend.org.uk 10 | long.domain.to.force.truncation.3.test.iwj.relativity.greenend.org.uk 11 | long.domain.to.force.truncation.4.test.iwj.relativity.greenend.org.uk 12 | long.domain.to.force.truncation.5.test.iwj.relativity.greenend.org.uk 13 | long.domain.to.force.truncation.6.test.iwj.relativity.greenend.org.uk 14 | long.domain.to.force.truncation.7.test.iwj.relativity.greenend.org.uk 15 | long.domain.to.force.truncation.8.test.iwj.relativity.greenend.org.uk 16 | long.domain.to.force.truncation.9.test.iwj.relativity.greenend.org.uk 17 | long.domain.to.force.truncation.10.test.iwj.relativity.greenend.org.uk 18 | long.domain.to.force.truncation.11.test.iwj.relativity.greenend.org.uk 19 | long.domain.to.force.truncation.12.test.iwj.relativity.greenend.org.uk 20 | long.domain.to.force.truncation.13.test.iwj.relativity.greenend.org.uk 21 | long.domain.to.force.truncation.14.test.iwj.relativity.greenend.org.uk 22 | long.domain.to.force.truncation.15.test.iwj.relativity.greenend.org.uk 23 | long.domain.to.force.truncation.16.test.iwj.relativity.greenend.org.uk 24 | long.domain.to.force.truncation.17.test.iwj.relativity.greenend.org.uk 25 | long.domain.to.force.truncation.18.test.iwj.relativity.greenend.org.uk 26 | long.domain.to.force.truncation.19.test.iwj.relativity.greenend.org.uk 27 | long.domain.to.force.truncation.20.test.iwj.relativity.greenend.org.uk 28 | long.domain.to.force.truncation.21.test.iwj.relativity.greenend.org.uk 29 | long.domain.to.force.truncation.22.test.iwj.relativity.greenend.org.uk 30 | long.domain.to.force.truncation.23.test.iwj.relativity.greenend.org.uk 31 | long.domain.to.force.truncation.24.test.iwj.relativity.greenend.org.uk 32 | long.domain.to.force.truncation.25.test.iwj.relativity.greenend.org.uk 33 | long.domain.to.force.truncation.26.test.iwj.relativity.greenend.org.uk 34 | long.domain.to.force.truncation.27.test.iwj.relativity.greenend.org.uk 35 | long.domain.to.force.truncation.28.test.iwj.relativity.greenend.org.uk 36 | long.domain.to.force.truncation.29.test.iwj.relativity.greenend.org.uk 37 | rc=0 38 | -------------------------------------------------------------------------------- /regress/case-2ndservok.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-2ndservok.err -------------------------------------------------------------------------------- /regress/case-2ndservok.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.36 2 | adns debug: using nameserver 172.18.45.6 3 | davenant.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 4 | davenant.relativity.greenend.org.uk flags 0 type A(-): OK; nrrs=1; cname=$; owner=$; ttl=86400 5 | 172.18.45.6 6 | rc=0 7 | -------------------------------------------------------------------------------- /regress/case-2ndservok.sys: -------------------------------------------------------------------------------- 1 | adnstest 2ndserver 2 | :1 davenant.relativity.greenend.org.uk 3 | start 940100095.012145 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000173 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000053 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000042 13 | sendto fd=4 addr=172.18.45.36:53 14 | 311f0100 00010000 00000000 08646176 656e616e 740a7265 6c617469 76697479 15 | 08677265 656e656e 64036f72 6702756b 00000100 01. 16 | sendto=53 17 | +0.001041 18 | select max=5 rfds=[4] wfds=[] efds=[] to=1.998959 19 | select=0 rfds=[] wfds=[] efds=[] 20 | +2.-04931 21 | select max=5 rfds=[4] wfds=[] efds=[] to=0.003890 22 | select=0 rfds=[] wfds=[] efds=[] 23 | +0.009910 24 | sendto fd=4 addr=172.18.45.6:53 25 | 311f0100 00010000 00000000 08646176 656e616e 740a7265 6c617469 76697479 26 | 08677265 656e656e 64036f72 6702756b 00000100 01. 27 | sendto=53 28 | +0.000863 29 | select max=5 rfds=[4] wfds=[] efds=[] to=1.999137 30 | select=1 rfds=[4] wfds=[] efds=[] 31 | +0.000126 32 | recvfrom fd=4 buflen=512 *addrlen=16 33 | recvfrom=OK addr=172.18.45.6:53 34 | 311f8580 00010001 00030003 08646176 656e616e 740a7265 6c617469 76697479 35 | 08677265 656e656e 64036f72 6702756b 00000100 01c00c00 01000100 01518000 36 | 04ac122d 060a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 37 | 00000200 01000151 80000603 6e7330c0 45c04500 02000100 01518000 06036e73 38 | 31c045c0 45000200 01000151 80000603 6e7332c0 45c06b00 01000100 01518000 39 | 04ac122d 06c07d00 01000100 01518000 04ac122d 41c08f00 01000100 01518000 40 | 04ac122d 01. 41 | +0.001026 42 | recvfrom fd=4 buflen=512 *addrlen=16 43 | recvfrom=EAGAIN 44 | +0.000423 45 | close fd=4 46 | close=OK 47 | +0.000435 48 | -------------------------------------------------------------------------------- /regress/case-2ndservtcp.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-2ndservtcp.err -------------------------------------------------------------------------------- /regress/case-2ndservtcp.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.36 2 | adns debug: using nameserver 172.18.45.6 3 | trunc.test.iwj.relativity.greenend.org.uk flags 0 type 12 PTR(raw) submitted 4 | adns warning: TCP connection failed: connect/read: No route to host (NS=172.18.45.36) 5 | adns debug: TCP connected (NS=172.18.45.6) 6 | trunc.test.iwj.relativity.greenend.org.uk flags 0 type PTR(raw): OK; nrrs=30; cname=$; owner=$; ttl=60 7 | long.domain.to.force.truncation.0.test.iwj.relativity.greenend.org.uk 8 | long.domain.to.force.truncation.1.test.iwj.relativity.greenend.org.uk 9 | long.domain.to.force.truncation.2.test.iwj.relativity.greenend.org.uk 10 | long.domain.to.force.truncation.3.test.iwj.relativity.greenend.org.uk 11 | long.domain.to.force.truncation.4.test.iwj.relativity.greenend.org.uk 12 | long.domain.to.force.truncation.5.test.iwj.relativity.greenend.org.uk 13 | long.domain.to.force.truncation.6.test.iwj.relativity.greenend.org.uk 14 | long.domain.to.force.truncation.7.test.iwj.relativity.greenend.org.uk 15 | long.domain.to.force.truncation.8.test.iwj.relativity.greenend.org.uk 16 | long.domain.to.force.truncation.9.test.iwj.relativity.greenend.org.uk 17 | long.domain.to.force.truncation.10.test.iwj.relativity.greenend.org.uk 18 | long.domain.to.force.truncation.11.test.iwj.relativity.greenend.org.uk 19 | long.domain.to.force.truncation.12.test.iwj.relativity.greenend.org.uk 20 | long.domain.to.force.truncation.13.test.iwj.relativity.greenend.org.uk 21 | long.domain.to.force.truncation.14.test.iwj.relativity.greenend.org.uk 22 | long.domain.to.force.truncation.15.test.iwj.relativity.greenend.org.uk 23 | long.domain.to.force.truncation.16.test.iwj.relativity.greenend.org.uk 24 | long.domain.to.force.truncation.17.test.iwj.relativity.greenend.org.uk 25 | long.domain.to.force.truncation.18.test.iwj.relativity.greenend.org.uk 26 | long.domain.to.force.truncation.19.test.iwj.relativity.greenend.org.uk 27 | long.domain.to.force.truncation.20.test.iwj.relativity.greenend.org.uk 28 | long.domain.to.force.truncation.21.test.iwj.relativity.greenend.org.uk 29 | long.domain.to.force.truncation.22.test.iwj.relativity.greenend.org.uk 30 | long.domain.to.force.truncation.23.test.iwj.relativity.greenend.org.uk 31 | long.domain.to.force.truncation.24.test.iwj.relativity.greenend.org.uk 32 | long.domain.to.force.truncation.25.test.iwj.relativity.greenend.org.uk 33 | long.domain.to.force.truncation.26.test.iwj.relativity.greenend.org.uk 34 | long.domain.to.force.truncation.27.test.iwj.relativity.greenend.org.uk 35 | long.domain.to.force.truncation.28.test.iwj.relativity.greenend.org.uk 36 | long.domain.to.force.truncation.29.test.iwj.relativity.greenend.org.uk 37 | rc=0 38 | -------------------------------------------------------------------------------- /regress/case-abbrev.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-abbrev.err -------------------------------------------------------------------------------- /regress/case-abbrev.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | greenend.org.uk flags 0 type 1 A(-) submitted 3 | greenend.org.uk flags 0 type 2 NS(raw) submitted 4 | greenend.org.uk flags 0 type 5 CNAME(-) submitted 5 | greenend.org.uk flags 0 type 6 SOA(raw) submitted 6 | greenend.org.uk flags 0 type 12 PTR(raw) submitted 7 | greenend.org.uk flags 0 type 13 HINFO(-) submitted 8 | greenend.org.uk flags 0 type 15 MX(raw) submitted 9 | greenend.org.uk flags 0 type 16 TXT(-) submitted 10 | greenend.org.uk flags 0 type 17 RP(raw) submitted 11 | greenend.org.uk flags 0 type 65537 A(addr) submitted 12 | greenend.org.uk flags 0 type 65538 NS(+addr) submitted 13 | greenend.org.uk flags 0 type 65548 PTR(checked) submitted 14 | greenend.org.uk flags 0 type 65551 MX(+addr) submitted 15 | greenend.org.uk flags 0 type 131078 SOA(822) submitted 16 | greenend.org.uk flags 0 type 131089 RP(822) submitted 17 | greenend.org.uk flags 0 type A(-) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400 18 | greenend.org.uk flags 0 type NS(raw) ownflags=a: ok; nrrs=2; cname=$; owner=$; ttl=86400 19 | ns1.relativity.greenend.org.uk 20 | ns0.relativity.greenend.org.uk 21 | greenend.org.uk flags 0 type CNAME(-) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400 22 | greenend.org.uk flags 0 type SOA(raw) ownflags=a: ok; nrrs=1; cname=$; owner=$; ttl=86400 23 | ns.chiark.greenend.org.uk hostmaster.greenend.org.uk 1999061300 28800 7200 604800 86400 24 | greenend.org.uk flags 0 type PTR(raw) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400 25 | greenend.org.uk flags 0 type HINFO(-) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400 26 | greenend.org.uk flags 0 type MX(raw) ownflags=a: ok; nrrs=1; cname=$; owner=$; ttl=86400 27 | 10 chiark.greenend.org.uk 28 | greenend.org.uk flags 0 type TXT(-) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400 29 | greenend.org.uk flags 0 type RP(raw) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400 30 | greenend.org.uk flags 0 type A(addr) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400 31 | greenend.org.uk flags 0 type NS(+addr) ownflags=a: ok; nrrs=2; cname=$; owner=$; ttl=86400 32 | ns0.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.6 ) 33 | ns1.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.65 ) 34 | greenend.org.uk flags 0 type PTR(checked) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400 35 | greenend.org.uk flags 0 type MX(+addr) ownflags=a: ok; nrrs=1; cname=$; owner=$; ttl=86400 36 | 10 chiark.greenend.org.uk ok 0 ok "OK" ( INET 195.224.76.132 ) 37 | greenend.org.uk flags 0 type SOA(822) ownflags=a: ok; nrrs=1; cname=$; owner=$; ttl=86400 38 | ns.chiark.greenend.org.uk hostmaster@greenend.org.uk 1999061300 28800 7200 604800 86400 39 | greenend.org.uk flags 0 type RP(822) ownflags=a: nodata; nrrs=0; cname=$; owner=$; ttl=86400 40 | rc=0 41 | -------------------------------------------------------------------------------- /regress/case-abbrevto.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-abbrevto.err -------------------------------------------------------------------------------- /regress/case-abbrevto.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.36 2 | greenend.org.uk flags 0 type 1 A(-) submitted 3 | greenend.org.uk flags 0 type 2 NS(raw) submitted 4 | greenend.org.uk flags 0 type 5 CNAME(-) submitted 5 | greenend.org.uk flags 0 type 6 SOA(raw) submitted 6 | greenend.org.uk flags 0 type 12 PTR(raw) submitted 7 | greenend.org.uk flags 0 type 13 HINFO(-) submitted 8 | greenend.org.uk flags 0 type 15 MX(raw) submitted 9 | greenend.org.uk flags 0 type 16 TXT(-) submitted 10 | greenend.org.uk flags 0 type 17 RP(raw) submitted 11 | greenend.org.uk flags 0 type 65537 A(addr) submitted 12 | greenend.org.uk flags 0 type 65538 NS(+addr) submitted 13 | greenend.org.uk flags 0 type 65548 PTR(checked) submitted 14 | greenend.org.uk flags 0 type 65551 MX(+addr) submitted 15 | greenend.org.uk flags 0 type 131078 SOA(822) submitted 16 | greenend.org.uk flags 0 type 131089 RP(822) submitted 17 | greenend.org.uk flags 0 type A(-) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 18 | greenend.org.uk flags 0 type NS(raw) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 19 | greenend.org.uk flags 0 type CNAME(-) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 20 | greenend.org.uk flags 0 type SOA(raw) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 21 | greenend.org.uk flags 0 type PTR(raw) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 22 | greenend.org.uk flags 0 type HINFO(-) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 23 | greenend.org.uk flags 0 type MX(raw) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 24 | greenend.org.uk flags 0 type TXT(-) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 25 | greenend.org.uk flags 0 type RP(raw) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 26 | greenend.org.uk flags 0 type A(addr) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 27 | greenend.org.uk flags 0 type NS(+addr) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 28 | greenend.org.uk flags 0 type PTR(checked) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 29 | greenend.org.uk flags 0 type MX(+addr) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 30 | greenend.org.uk flags 0 type SOA(822) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 31 | greenend.org.uk flags 0 type RP(822) ownflags=a: timeout; nrrs=0; cname=$; owner=$; ttl=604770 32 | rc=0 33 | -------------------------------------------------------------------------------- /regress/case-adh-cancel.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | adns debug: reply not found, id 311f, query owner chiark.greenend.org.uk (NS=172.18.45.6) 3 | -------------------------------------------------------------------------------- /regress/case-adh-cancel.out: -------------------------------------------------------------------------------- 1 | davenant.relativity.greenend.org.uk A INET 172.18.45.6 2 | rc=0 3 | -------------------------------------------------------------------------------- /regress/case-adh-cancel.sys: -------------------------------------------------------------------------------- 1 | ./adnshost default -f 2 | 3 | start 969124425.922896 4 | socket type=SOCK_DGRAM 5 | socket=6 6 | +0.000162 7 | fcntl fd=6 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000058 10 | fcntl fd=6 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000035 13 | select max=7 rfds=[0,6] wfds=[] efds=[] to=null 14 | select=1 rfds=[0] wfds=[] efds=[] 15 | +0.000135 16 | read fd=0 buflen=40 17 | read=OK 18 | 2d2d6173 796e6368 2d696420 34320a63 68696172 6b2e6772 65656e65 6e642e6f 19 | 72672e75 6b0a2d2d. 20 | +0.000254 21 | sendto fd=6 addr=172.18.45.6:53 22 | 311f0100 00010000 00000000 06636869 61726b08 67726565 6e656e64 036f7267 23 | 02756b00 00010001. 24 | sendto=40 25 | +0.000825 26 | read fd=0 buflen=38 27 | read=OK 28 | 6173796e 63682d69 64203433 0a646176 656e616e 742e7265 6c617469 76697479 29 | 2e677265 656e. 30 | +0.000184 31 | read fd=0 buflen=15 32 | read=OK 33 | 656e642e 6f72672e 756b0a2d 2d6361. 34 | +0.000106 35 | sendto fd=6 addr=172.18.45.6:53 36 | 31200100 00010000 00000000 08646176 656e616e 740a7265 6c617469 76697479 37 | 08677265 656e656e 64036f72 6702756b 00000100 01. 38 | sendto=53 39 | +0.000624 40 | read fd=0 buflen=36 41 | read=OK 42 | 6e63656c 2d696420 34320a. 43 | +0.000145 44 | select max=7 rfds=[0,6] wfds=[] efds=[] to=1.999231 45 | select=2 rfds=[0,6] wfds=[] efds=[] 46 | +0.000157 47 | recvfrom fd=6 buflen=512 *addrlen=16 48 | recvfrom=OK addr=172.18.45.6:53 49 | 311f8580 00010001 00020002 06636869 61726b08 67726565 6e656e64 036f7267 50 | 02756b00 00010001 c00c0001 00010001 51800004 c3e04c84 08677265 656e656e 51 | 64036f72 6702756b 00000200 01000151 80001103 6e73300a 72656c61 74697669 52 | 7479c038 c0380002 00010001 51800006 036e7331 c057c053 00010001 00015180 53 | 0004ac12 2d06c070 00010001 00015180 0004ac12 2d01. 54 | +0.000551 55 | recvfrom fd=6 buflen=512 *addrlen=16 56 | recvfrom=OK addr=172.18.45.6:53 57 | 31208580 00010001 00020002 08646176 656e616e 740a7265 6c617469 76697479 58 | 08677265 656e656e 64036f72 6702756b 00000100 01c00c00 01000100 01518000 59 | 04ac122d 060a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 60 | 00000200 01000151 80000603 6e7330c0 45c04500 02000100 01518000 06036e73 61 | 31c045c0 6b000100 01000151 800004ac 122d06c0 7d000100 01000151 800004ac 62 | 122d01. 63 | +0.000579 64 | recvfrom fd=6 buflen=512 *addrlen=16 65 | recvfrom=EAGAIN 66 | +0.000151 67 | read fd=0 buflen=40 68 | read=OK 69 | . 70 | +0.000043 71 | close fd=6 72 | close=OK 73 | +0.000961 74 | -------------------------------------------------------------------------------- /regress/case-adh-cancel2.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | -------------------------------------------------------------------------------- /regress/case-adh-cancel2.out: -------------------------------------------------------------------------------- 1 | rc=0 2 | -------------------------------------------------------------------------------- /regress/case-adh-cancel2.sys: -------------------------------------------------------------------------------- 1 | ./adnshost default -f 2 | 3 | start 969124594.885114 4 | socket type=SOCK_DGRAM 5 | socket=6 6 | +0.000160 7 | fcntl fd=6 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000057 10 | fcntl fd=6 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000035 13 | select max=7 rfds=[0,6] wfds=[] efds=[] to=null 14 | select=1 rfds=[0] wfds=[] efds=[] 15 | +6.-286734 16 | read fd=0 buflen=40 17 | read=OK 18 | 2d2d6173 796e6368 2d696420 34320a. 19 | +0.000727 20 | select max=7 rfds=[0,6] wfds=[] efds=[] to=null 21 | select=1 rfds=[0] wfds=[] efds=[] 22 | +0.000147 23 | read fd=0 buflen=40 24 | read=OK 25 | 63686961 726b2e67 7265656e 656e642e 6f72672e 756b0a. 26 | +0.000129 27 | sendto fd=6 addr=172.18.45.6:53 28 | 311f0100 00010000 00000000 06636869 61726b08 67726565 6e656e64 036f7267 29 | 02756b00 00010001. 30 | sendto=40 31 | +0.000802 32 | select max=7 rfds=[0,6] wfds=[] efds=[] to=1.999198 33 | select=1 rfds=[0,6] wfds=[] efds=[] 34 | +0.000135 35 | recvfrom fd=6 buflen=512 *addrlen=16 36 | recvfrom=OK addr=172.18.45.6:53 37 | 311f8580 00010001 00020002 06636869 61726b08 67726565 6e656e64 036f7267 38 | 02756b00 00010001 c00c0001 00010001 51800004 c3e04c84 08677265 656e656e 39 | 64036f72 6702756b 00000200 01000151 80001103 6e73300a 72656c61 74697669 40 | 7479c038 c0380002 00010001 51800006 036e7331 c057c053 00010001 00015180 41 | 0004ac12 2d06c070 00010001 00015180 0004ac12 2d01. 42 | +0.000553 43 | recvfrom fd=6 buflen=512 *addrlen=16 44 | recvfrom=EAGAIN 45 | +0.000195 46 | read fd=0 buflen=40 47 | read=OK 48 | 2d2d6361 6e63656c 2d696420 34320a. 49 | +0.000688 50 | select max=7 rfds=[0,6] wfds=[] efds=[] to=null 51 | select=1 rfds=[0] wfds=[] efds=[] 52 | +2.-11588 53 | read fd=0 buflen=40 54 | read=OK 55 | . 56 | +0.000089 57 | close fd=6 58 | close=OK 59 | +0.000149 60 | -------------------------------------------------------------------------------- /regress/case-adh-cancel3.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | adns debug: server failure on unidentifiable query (NS=172.18.45.6) 3 | -------------------------------------------------------------------------------- /regress/case-adh-cancel3.out: -------------------------------------------------------------------------------- 1 | rc=0 2 | -------------------------------------------------------------------------------- /regress/case-adh-cancel3.sys: -------------------------------------------------------------------------------- 1 | ./adnshost default -f 2 | 3 | start 969129578.690081 4 | socket type=SOCK_DGRAM 5 | socket=6 6 | +0.000809 7 | fcntl fd=6 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000531 10 | fcntl fd=6 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000512 13 | select max=7 rfds=[0,6] wfds=[] efds=[] to=null 14 | select=1 rfds=[0] wfds=[] efds=[] 15 | +17.-461569 16 | read fd=0 buflen=40 17 | read=OK 18 | 2d2d6173 796e6368 2d696420 34320a. 19 | +0.000686 20 | select max=7 rfds=[0,6] wfds=[] efds=[] to=null 21 | select=1 rfds=[0] wfds=[] efds=[] 22 | +0.000915 23 | read fd=0 buflen=40 24 | read=OK 25 | 2d692031 37322e33 302e3230 362e3134 0a. 26 | +0.000583 27 | sendto fd=6 addr=172.18.45.6:53 28 | 311f0100 00010000 00000000 02313403 32303602 33300331 37320769 6e2d6164 29 | 64720461 72706100 000c0001. 30 | sendto=44 31 | +0.001629 32 | select max=7 rfds=[0,6] wfds=[] efds=[] to=1.998371 33 | select=1 rfds=[6] wfds=[] efds=[] 34 | +0.000910 35 | recvfrom fd=6 buflen=512 *addrlen=16 36 | recvfrom=OK addr=172.18.45.6:53 37 | 311f8580 00010001 00010001 02313403 32303602 33300331 37320769 6e2d6164 38 | 64720461 72706100 000c0001 c00c000c 00010000 003c002a 06323036 2d31340b 39 | 62726f6b 656e2d7a 6f6e6504 74657374 0763756c 74757265 05646f74 61740261 40 | 74000332 30360233 30033137 3207696e 2d616464 72046172 70610000 02000100 41 | 00003c00 20036e73 300a7265 6c617469 76697479 08677265 656e656e 64036f72 42 | 6702756b 00c08500 01000100 01518000 04ac122d 06. 43 | +0.001417 44 | sendto fd=6 addr=172.18.45.6:53 45 | 31200100 00010000 00000000 06323036 2d31340b 62726f6b 656e2d7a 6f6e6504 46 | 74657374 0763756c 74757265 05646f74 61740261 74000001 0001. 47 | sendto=58 48 | +0.001988 49 | recvfrom fd=6 buflen=512 *addrlen=16 50 | recvfrom=EAGAIN 51 | +0.000537 52 | select max=7 rfds=[0,6] wfds=[] efds=[] to=1.996058 53 | select=0 rfds=[] wfds=[] efds=[] 54 | +2.-05146 55 | select max=7 rfds=[0,6] wfds=[] efds=[] to=0.001204 56 | select=0 rfds=[] wfds=[] efds=[] 57 | +0.009951 58 | sendto fd=6 addr=172.18.45.6:53 59 | 31200100 00010000 00000000 06323036 2d31340b 62726f6b 656e2d7a 6f6e6504 60 | 74657374 0763756c 74757265 05646f74 61740261 74000001 0001. 61 | sendto=58 62 | +0.001141 63 | select max=7 rfds=[0,6] wfds=[] efds=[] to=1.998859 64 | select=1 rfds=[0] wfds=[] efds=[] 65 | +0.551215 66 | read fd=0 buflen=40 67 | read=OK 68 | 2d2d6361 6e63656c 2d696420 34320a. 69 | +0.000599 70 | select max=7 rfds=[0,6] wfds=[] efds=[] to=null 71 | select=1 rfds=[6] wfds=[] efds=[] 72 | +42.-794672 73 | recvfrom fd=6 buflen=512 *addrlen=16 74 | recvfrom=OK addr=172.18.45.6:53 75 | 31208182 00010000 00000000 06323036 2d31340b 62726f6b 656e2d7a 6f6e6504 76 | 74657374 0763756c 74757265 05646f74 61740261 74000001 0001. 77 | +0.000986 78 | recvfrom fd=6 buflen=512 *addrlen=16 79 | recvfrom=EAGAIN 80 | +0.003836 81 | select max=7 rfds=[0,6] wfds=[] efds=[] to=null 82 | select=1 rfds=[0] wfds=[] efds=[] 83 | +6.662470 84 | read fd=0 buflen=40 85 | read=OK 86 | . 87 | +0.000545 88 | close fd=6 89 | close=OK 90 | +0.000686 91 | -------------------------------------------------------------------------------- /regress/case-adh-norm.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | -------------------------------------------------------------------------------- /regress/case-adh-norm.out: -------------------------------------------------------------------------------- 1 | chiark.greenend.org.uk A INET 195.224.76.132 2 | rc=0 3 | -------------------------------------------------------------------------------- /regress/case-adh-norm.sys: -------------------------------------------------------------------------------- 1 | ./adnshost default 2 | chiark.greenend.org.uk 3 | start 969122933.609498 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000155 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000057 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000037 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 06636869 61726b08 67726565 6e656e64 036f7267 15 | 02756b00 00010001. 16 | sendto=40 17 | +0.000827 18 | select max=5 rfds=[4] wfds=[] efds=[] to=1.999173 19 | select=1 rfds=[4] wfds=[] efds=[] 20 | +0.000158 21 | recvfrom fd=4 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8580 00010001 00020002 06636869 61726b08 67726565 6e656e64 036f7267 24 | 02756b00 00010001 c00c0001 00010001 51800004 c3e04c84 08677265 656e656e 25 | 64036f72 6702756b 00000200 01000151 80001103 6e73300a 72656c61 74697669 26 | 7479c038 c0380002 00010001 51800006 036e7331 c057c053 00010001 00015180 27 | 0004ac12 2d06c070 00010001 00015180 0004ac12 2d01. 28 | +0.000895 29 | recvfrom fd=4 buflen=512 *addrlen=16 30 | recvfrom=EAGAIN 31 | +0.000149 32 | close fd=4 33 | close=OK 34 | +0.000290 35 | -------------------------------------------------------------------------------- /regress/case-adh-pipe.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | -------------------------------------------------------------------------------- /regress/case-adh-pipe.out: -------------------------------------------------------------------------------- 1 | chiark.greenend.org.uk A INET 195.224.76.132 2 | rc=0 3 | -------------------------------------------------------------------------------- /regress/case-adh-pipe.sys: -------------------------------------------------------------------------------- 1 | ./adnshost default -f 2 | 3 | start 969123801.904882 4 | socket type=SOCK_DGRAM 5 | socket=6 6 | +0.000156 7 | fcntl fd=6 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000057 10 | fcntl fd=6 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000035 13 | select max=7 rfds=[0,6] wfds=[] efds=[] to=null 14 | select=1 rfds=[0] wfds=[] efds=[] 15 | +4.-792858 16 | read fd=0 buflen=40 17 | read=OK 18 | 63686961 726b2e67 7265656e 656e642e 6f72672e 756b0a. 19 | +0.000235 20 | sendto fd=6 addr=172.18.45.6:53 21 | 311f0100 00010000 00000000 06636869 61726b08 67726565 6e656e64 036f7267 22 | 02756b00 00010001. 23 | sendto=40 24 | +0.000847 25 | select max=7 rfds=[0,6] wfds=[] efds=[] to=1.999153 26 | select=1 rfds=[6] wfds=[] efds=[] 27 | +0.000140 28 | recvfrom fd=6 buflen=512 *addrlen=16 29 | recvfrom=OK addr=172.18.45.6:53 30 | 311f8580 00010001 00020002 06636869 61726b08 67726565 6e656e64 036f7267 31 | 02756b00 00010001 c00c0001 00010001 51800004 c3e04c84 08677265 656e656e 32 | 64036f72 6702756b 00000200 01000151 80001103 6e73300a 72656c61 74697669 33 | 7479c038 c0380002 00010001 51800006 036e7331 c057c053 00010001 00015180 34 | 0004ac12 2d06c070 00010001 00015180 0004ac12 2d01. 35 | +0.000548 36 | recvfrom fd=6 buflen=512 *addrlen=16 37 | recvfrom=EAGAIN 38 | +0.000184 39 | select max=7 rfds=[0,6] wfds=[] efds=[] to=null 40 | select=1 rfds=[0] wfds=[] efds=[] 41 | +0.715699 42 | read fd=0 buflen=40 43 | read=OK 44 | . 45 | +0.000090 46 | close fd=6 47 | close=OK 48 | +0.000134 49 | -------------------------------------------------------------------------------- /regress/case-alr-norm.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | adnslogres: submitting 172.18.45.1 -> 1.45.18.172.in-addr.arpa. 3 | adnslogres: 1 in queue; checking 172.18.45.1 4 | adnslogres: submitting 127.0.0.1 -> 1.0.0.127.in-addr.arpa. 5 | adnslogres: 1 in queue; checking 127.0.0.1 6 | adnslogres: submitting 172.30.206.14 -> 14.206.30.172.in-addr.arpa. 7 | adnslogres: 1 in queue; checking 172.30.206.14 8 | adnslogres: submitting 127.0.0.1 -> 1.0.0.127.in-addr.arpa. 9 | adnslogres: 2 in queue; checking 172.30.206.14 10 | adnslogres: submitting 172.18.45.3 -> 3.45.18.172.in-addr.arpa. 11 | adnslogres: 3 in queue; checking 172.30.206.14 12 | adnslogres: submitting 172.18.45.1 -> 1.45.18.172.in-addr.arpa. 13 | adnslogres: 4 in queue; checking 172.30.206.14 14 | adnslogres: submitting 172.18.45.8 -> 8.45.18.172.in-addr.arpa. 15 | adnslogres: 5 in queue; checking 172.30.206.14 16 | adnslogres: submitting 172.18.45.1 -> 1.45.18.172.in-addr.arpa. 17 | adnslogres: 6 in queue; checking 172.30.206.14 18 | adnslogres: submitting 172.18.45.1 -> 1.45.18.172.in-addr.arpa. 19 | adnslogres: 7 in queue; checking 172.30.206.14 20 | adnslogres: submitting 172.18.45.6 -> 6.45.18.172.in-addr.arpa. 21 | adnslogres: 8 in queue; checking 172.30.206.14 22 | adnslogres: 8 in queue; checking 172.30.206.14 23 | adnslogres: 7 in queue; checking 127.0.0.1 24 | adnslogres: 6 in queue; checking 172.18.45.3 25 | adnslogres: 5 in queue; checking 172.18.45.1 26 | adnslogres: 4 in queue; checking 172.18.45.8 27 | adnslogres: 3 in queue; checking 172.18.45.1 28 | adnslogres: 2 in queue; checking 172.18.45.1 29 | adnslogres: 1 in queue; checking 172.18.45.6 30 | -------------------------------------------------------------------------------- /regress/case-alr-norm.in: -------------------------------------------------------------------------------- 1 | 172.18.45.1 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/main/source/Release HTTP/1.0" 304 - 2 | 127.0.0.1 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/contrib/source/Sources.gz HTTP/1.0" 304 - 3 | 172.30.206.14 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/contrib/source/Release HTTP/1.0" 304 - 4 | 127.0.0.1 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/non-free/source/Sources.gz HTTP/1.0" 304 - 5 | 172.18.45.3 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/non-free/source/Release HTTP/1.0" 304 - 6 | 172.18.45.1 - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79-3potato1.dsc HTTP/1.0" 200 604 7 | 172.18.45.8 - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79.orig.tar.gz HTTP/1.0" 200 34886 8 | 172.18.45.1 - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79.orig.tar.gz HTTP/1.0" 200 34886 9 | 172.18.45.1 - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79-3potato1.diff.gz HTTP/1.0" 200 7962 10 | 172.18.45.6 - - [16/Sep/2000:18:35:15 +0100] "GET / HTTP/1.0" 304 - 11 | -------------------------------------------------------------------------------- /regress/case-alr-norm.out: -------------------------------------------------------------------------------- 1 | sfere.relativity.greenend.org.uk - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/main/source/Release HTTP/1.0" 304 - 2 | localhost - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/contrib/source/Sources.gz HTTP/1.0" 304 - 3 | 172.30.206.14 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/contrib/source/Release HTTP/1.0" 304 - 4 | localhost - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/non-free/source/Sources.gz HTTP/1.0" 304 - 5 | 172.18.45.3 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/non-free/source/Release HTTP/1.0" 304 - 6 | sfere.relativity.greenend.org.uk - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79-3potato1.dsc HTTP/1.0" 200 604 7 | kadath.relativity.greenend.org.uk - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79.orig.tar.gz HTTP/1.0" 200 34886 8 | sfere.relativity.greenend.org.uk - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79.orig.tar.gz HTTP/1.0" 200 34886 9 | sfere.relativity.greenend.org.uk - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79-3potato1.diff.gz HTTP/1.0" 200 7962 10 | davenant.relativity.greenend.org.uk - - [16/Sep/2000:18:35:15 +0100] "GET / HTTP/1.0" 304 - 11 | rc=0 12 | -------------------------------------------------------------------------------- /regress/case-alr-slow.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | adnslogres: submitting 172.18.45.1 -> 1.45.18.172.in-addr.arpa. 3 | adnslogres: 1 in queue; checking 172.18.45.1 4 | adnslogres: submitting 127.0.0.1 -> 1.0.0.127.in-addr.arpa. 5 | adnslogres: 1 in queue; checking 127.0.0.1 6 | adnslogres: submitting 172.30.206.14 -> 14.206.30.172.in-addr.arpa. 7 | adnslogres: 1 in queue; checking 172.30.206.14 8 | adnslogres: submitting 127.0.0.1 -> 1.0.0.127.in-addr.arpa. 9 | adnslogres: 2 in queue; checking 172.30.206.14 10 | adnslogres: submitting 172.18.45.3 -> 3.45.18.172.in-addr.arpa. 11 | adnslogres: 3 in queue; checking 172.30.206.14 12 | adnslogres: submitting 172.18.45.1 -> 1.45.18.172.in-addr.arpa. 13 | adnslogres: 4 in queue; checking 172.30.206.14 14 | adnslogres: 3 in queue; checking 127.0.0.1 15 | adnslogres: 2 in queue; checking 172.18.45.3 16 | adnslogres: 1 in queue; checking 172.18.45.1 17 | adnslogres: submitting 172.18.45.8 -> 8.45.18.172.in-addr.arpa. 18 | adnslogres: 1 in queue; checking 172.18.45.8 19 | adnslogres: submitting 172.18.45.1 -> 1.45.18.172.in-addr.arpa. 20 | adnslogres: 2 in queue; checking 172.18.45.8 21 | adnslogres: submitting 172.18.45.1 -> 1.45.18.172.in-addr.arpa. 22 | adnslogres: 3 in queue; checking 172.18.45.8 23 | adnslogres: submitting 172.18.45.6 -> 6.45.18.172.in-addr.arpa. 24 | adnslogres: 4 in queue; checking 172.18.45.8 25 | adnslogres: 3 in queue; checking 172.18.45.1 26 | adnslogres: 2 in queue; checking 172.18.45.1 27 | adnslogres: 1 in queue; checking 172.18.45.6 28 | -------------------------------------------------------------------------------- /regress/case-alr-slow.in: -------------------------------------------------------------------------------- 1 | 172.18.45.1 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/main/source/Release HTTP/1.0" 304 - 2 | 127.0.0.1 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/contrib/source/Sources.gz HTTP/1.0" 304 - 3 | 172.30.206.14 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/contrib/source/Release HTTP/1.0" 304 - 4 | 127.0.0.1 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/non-free/source/Sources.gz HTTP/1.0" 304 - 5 | 172.18.45.3 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/non-free/source/Release HTTP/1.0" 304 - 6 | 172.18.45.1 - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79-3potato1.dsc HTTP/1.0" 200 604 7 | 172.18.45.8 - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79.orig.tar.gz HTTP/1.0" 200 34886 8 | 172.18.45.1 - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79.orig.tar.gz HTTP/1.0" 200 34886 9 | 172.18.45.1 - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79-3potato1.diff.gz HTTP/1.0" 200 7962 10 | 172.18.45.6 - - [16/Sep/2000:18:35:15 +0100] "GET / HTTP/1.0" 304 - 11 | -------------------------------------------------------------------------------- /regress/case-alr-slow.out: -------------------------------------------------------------------------------- 1 | sfere.relativity.greenend.org.uk - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/main/source/Release HTTP/1.0" 304 - 2 | localhost - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/contrib/source/Sources.gz HTTP/1.0" 304 - 3 | 172.30.206.14 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/contrib/source/Release HTTP/1.0" 304 - 4 | localhost - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/non-free/source/Sources.gz HTTP/1.0" 304 - 5 | 172.18.45.3 - - [13/Sep/2000:23:00:26 +0100] "GET /mirror/debian-non-us/dists/stable/non-US/non-free/source/Release HTTP/1.0" 304 - 6 | sfere.relativity.greenend.org.uk - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79-3potato1.dsc HTTP/1.0" 200 604 7 | kadath.relativity.greenend.org.uk - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79.orig.tar.gz HTTP/1.0" 200 34886 8 | sfere.relativity.greenend.org.uk - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79.orig.tar.gz HTTP/1.0" 200 34886 9 | sfere.relativity.greenend.org.uk - - [13/Sep/2000:23:01:01 +0100] "GET /mirror/debian-ftp/dists/potato/main/source/devel/cvsweb_1.79-3potato1.diff.gz HTTP/1.0" 200 7962 10 | davenant.relativity.greenend.org.uk - - [16/Sep/2000:18:35:15 +0100] "GET / HTTP/1.0" 304 - 11 | rc=0 12 | -------------------------------------------------------------------------------- /regress/case-arf-norm.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | adns test harness: memory leaked: 11 24 31 43 48 60 65 77 3 | -------------------------------------------------------------------------------- /regress/case-arf-norm.out: -------------------------------------------------------------------------------- 1 | rc=0 2 | -------------------------------------------------------------------------------- /regress/case-arf-text.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | -------------------------------------------------------------------------------- /regress/case-arf-text.out: -------------------------------------------------------------------------------- 1 | rc=0 2 | -------------------------------------------------------------------------------- /regress/case-arf-text.sys: -------------------------------------------------------------------------------- 1 | ./adnsresfilter default 2 | 3 | start 969137967.465922 4 | fcntl fd=0 cmd=F_GETFL 5 | fcntl=~O_NONBLOCK&... 6 | +0.000132 7 | fcntl fd=0 cmd=F_SETFL O_NONBLOCK|... 8 | fcntl=OK 9 | +0.000049 10 | fcntl fd=1 cmd=F_GETFL 11 | fcntl=~O_NONBLOCK&... 12 | +0.000034 13 | fcntl fd=1 cmd=F_SETFL O_NONBLOCK|... 14 | fcntl=OK 15 | +0.000033 16 | socket type=SOCK_DGRAM 17 | socket=6 18 | +0.004099 19 | fcntl fd=6 cmd=F_GETFL 20 | fcntl=~O_NONBLOCK&... 21 | +0.000057 22 | fcntl fd=6 cmd=F_SETFL O_NONBLOCK|... 23 | fcntl=OK 24 | +0.000034 25 | select max=2 rfds=[0] wfds=[] efds=[] to=null 26 | select=1 rfds=[0] wfds=[] efds=[] 27 | +2.095986 28 | recvfrom fd=6 buflen=512 *addrlen=16 29 | recvfrom=EAGAIN 30 | +0.000177 31 | read fd=0 buflen=512 32 | read=OK 33 | 74657874 206f6e6c 790a. 34 | +0.000121 35 | write fd=1 36 | 74657874 206f6e6c 790a. 37 | write=10 38 | +0.000636 39 | select max=2 rfds=[0] wfds=[] efds=[] to=null 40 | select=1 rfds=[0] wfds=[] efds=[] 41 | +0.349329 42 | recvfrom fd=6 buflen=512 *addrlen=16 43 | recvfrom=EAGAIN 44 | +0.000085 45 | read fd=0 buflen=512 46 | read=OK 47 | . 48 | +0.000064 49 | fcntl fd=0 cmd=F_GETFL 50 | fcntl=O_NONBLOCK|... 51 | +0.000043 52 | fcntl fd=0 cmd=F_SETFL ~O_NONBLOCK&... 53 | fcntl=OK 54 | +0.000065 55 | fcntl fd=1 cmd=F_GETFL 56 | fcntl=O_NONBLOCK|... 57 | +0.000036 58 | fcntl fd=1 cmd=F_SETFL ~O_NONBLOCK&... 59 | fcntl=OK 60 | +0.000032 61 | close fd=6 62 | close=OK 63 | +0.000117 64 | -------------------------------------------------------------------------------- /regress/case-brokenmail.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-brokenmail.err -------------------------------------------------------------------------------- /regress/case-brokenmail.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 0 type 15 MX(raw) submitted 3 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 0 type 65551 MX(+addr) submitted 4 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 256 type 15 MX(raw) submitted 5 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 256 type 65551 MX(+addr) submitted 6 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 260 type 15 MX(raw) submitted 7 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 260 type 65551 MX(+addr) submitted 8 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 0 type MX(raw): OK; nrrs=4; cname=$; owner=$; ttl=60 9 | 10 manyaddrs.test.iwj.relativity.greenend.org.uk 10 | 20 host.broken-delg.test.iwj.relativity.greenend.org.uk 11 | 30 172.18.45.36 12 | 40 cname-ptr.test.iwj.relativity.greenend.org.uk 13 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 256 type MX(raw): OK; nrrs=4; cname=$; owner=$; ttl=60 14 | 10 manyaddrs.test.iwj.relativity.greenend.org.uk 15 | 20 host.broken-delg.test.iwj.relativity.greenend.org.uk 16 | 30 172.18.45.36 17 | 40 cname-ptr.test.iwj.relativity.greenend.org.uk 18 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 260 type MX(raw): OK; nrrs=4; cname=$; owner=broken-mail.test.iwj.relativity.greenend.org.uk; ttl=60 19 | 10 manyaddrs.test.iwj.relativity.greenend.org.uk 20 | 20 host.broken-delg.test.iwj.relativity.greenend.org.uk 21 | 30 172.18.45.36 22 | 40 cname-ptr.test.iwj.relativity.greenend.org.uk 23 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 0 type MX(+addr): OK; nrrs=4; cname=$; owner=$; ttl=30 24 | 10 manyaddrs.test.iwj.relativity.greenend.org.uk ok 0 ok "OK" ( INET 127.0.0.1 INET 172.18.45.6 INET 172.18.45.1 INET 172.18.45.35 ) 25 | 20 host.broken-delg.test.iwj.relativity.greenend.org.uk remotefail 30 timeout "DNS query timed out" ? 26 | 30 172.18.45.36 permfail 300 nxdomain "No such domain" ( ) 27 | 40 cname-ptr.test.iwj.relativity.greenend.org.uk misconfig 101 prohibitedcname "DNS alias found where canonical name wanted" ( ) 28 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 256 type MX(+addr): OK; nrrs=4; cname=$; owner=$; ttl=30 29 | 10 manyaddrs.test.iwj.relativity.greenend.org.uk ok 0 ok "OK" ( INET 127.0.0.1 INET 172.18.45.6 INET 172.18.45.1 INET 172.18.45.35 ) 30 | 20 host.broken-delg.test.iwj.relativity.greenend.org.uk remotefail 30 timeout "DNS query timed out" ? 31 | 30 172.18.45.36 permfail 300 nxdomain "No such domain" ( ) 32 | 40 cname-ptr.test.iwj.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.37 ) 33 | broken-mail.test.iwj.relativity.greenend.org.uk. flags 260 type MX(+addr): OK; nrrs=4; cname=$; owner=broken-mail.test.iwj.relativity.greenend.org.uk; ttl=30 34 | 10 manyaddrs.test.iwj.relativity.greenend.org.uk ok 0 ok "OK" ( INET 127.0.0.1 INET 172.18.45.6 INET 172.18.45.1 INET 172.18.45.35 ) 35 | 20 host.broken-delg.test.iwj.relativity.greenend.org.uk remotefail 30 timeout "DNS query timed out" ? 36 | 30 172.18.45.36 permfail 300 nxdomain "No such domain" ( ) 37 | 40 cname-ptr.test.iwj.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.37 ) 38 | rc=0 39 | -------------------------------------------------------------------------------- /regress/case-child.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-child.err -------------------------------------------------------------------------------- /regress/case-child.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 134.76.224.195.in-addr.arpa flags 0 type 65548 PTR(checked) submitted 3 | 134.76.224.195.in-addr.arpa flags 0 type PTR(checked): OK; nrrs=1; cname=$; owner=$; ttl=78694 4 | permutation-city.greenend.org.uk 5 | rc=0 6 | -------------------------------------------------------------------------------- /regress/case-child.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :65548 134.76.224.195.in-addr.arpa 3 | start 929574747.401802 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000189 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000080 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000058 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 03313334 02373603 32323403 31393507 696e2d61 15 | 64647204 61727061 00000c00 01. 16 | sendto=45 17 | +0.000595 18 | select max=5 rfds=[4] wfds=[] efds=[] to=1.999405 19 | select=1 rfds=[4] wfds=[] efds=[] 20 | +0.008975 21 | recvfrom fd=4 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8180 00010001 00050005 03313334 02373603 32323403 31393507 696e2d61 24 | 64647204 61727061 00000c00 01c00c00 0c000100 01336600 22107065 726d7574 25 | 6174696f 6e2d6369 74790867 7265656e 656e6403 6f726702 756b0002 37360332 26 | 32340331 39350769 6e2d6164 64720461 72706100 00020001 00013366 00110464 27 | 6e733006 656c6d61 696c0263 6fc057c0 5b000200 01000133 66000704 646e7331 28 | c083c05b 00020001 00013366 00070464 6e7332c0 83c05b00 02000100 01336600 29 | 0e036e73 32047861 7261036e 657400c0 5b000200 01000133 66000603 6e7333c0 30 | c5c07e00 01000100 00149d00 04c17ae9 11c09b00 01000100 00149d00 04c17ae9 31 | 01c0ae00 01000100 00149d00 04c3e04c c1c0c100 01000100 0284e500 04c28fa1 32 | 6bc0db00 01000100 0284e500 04c28fa3 19. 33 | +0.001671 34 | sendto fd=4 addr=172.18.45.6:53 35 | 31200100 00010000 00000000 10706572 6d757461 74696f6e 2d636974 79086772 36 | 65656e65 6e64036f 72670275 6b000001 0001. 37 | sendto=50 38 | +0.000683 39 | recvfrom fd=4 buflen=512 *addrlen=16 40 | recvfrom=EAGAIN 41 | +0.000108 42 | select max=5 rfds=[4] wfds=[] efds=[] to=1.997538 43 | select=1 rfds=[4] wfds=[] efds=[] 44 | +0.005811 45 | recvfrom fd=4 buflen=512 *addrlen=16 46 | recvfrom=OK addr=172.18.45.6:53 47 | 31208580 00010001 00020002 10706572 6d757461 74696f6e 2d636974 79086772 48 | 65656e65 6e64036f 72670275 6b000001 0001c00c 00010001 00015180 0004c3e0 49 | 4c860867 7265656e 656e6403 6f726702 756b0000 02000100 01518000 11036e73 50 | 300a7265 6c617469 76697479 c042c042 00020001 00015180 0006036e 7331c061 51 | c05d0001 00010001 51800004 ac122d06 c07a0001 00010001 51800004 ac122d41. 52 | +0.000862 53 | recvfrom fd=4 buflen=512 *addrlen=16 54 | recvfrom=EAGAIN 55 | +0.000193 56 | close fd=4 57 | close=OK 58 | +0.000207 59 | -------------------------------------------------------------------------------- /regress/case-cnametocname.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-cnametocname.err -------------------------------------------------------------------------------- /regress/case-cnametocname.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | intel.ugcs.caltech.edu. flags 0 type 1 A(-) submitted 3 | adns debug: allegedly canonical name ugintel.best.ugcs.caltech.edu is actually alias for drachma.ugcs.caltech.edu (QNAME=intel.ugcs.caltech.edu, QTYPE=A, NS=172.18.45.6) 4 | intel.ugcs.caltech.edu. flags 0 type A(-): DNS alias found where canonical name wanted; nrrs=0; cname=ugintel.best.ugcs.caltech.edu; owner=$; ttl=497758 5 | rc=0 6 | -------------------------------------------------------------------------------- /regress/case-cnametocname.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 intel.ugcs.caltech.edu. 3 | start 938369896.279735 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000179 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000054 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000041 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 05696e74 656c0475 67637307 63616c74 65636803 15 | 65647500 00010001. 16 | sendto=40 17 | +0.001628 18 | select max=5 rfds=[4] wfds=[] efds=[] to=1.998372 19 | select=1 rfds=[4] wfds=[] efds=[] 20 | +0.586476 21 | recvfrom fd=4 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8180 00010003 00050005 05696e74 656c0475 67637307 63616c74 65636803 24 | 65647500 00010001 05696e74 656c0475 67637307 63616c74 65636803 65647500 25 | 00050001 0007985e 000f0775 67696e74 656c0462 657374c0 2ec04a00 05000100 26 | 00000a00 0a076472 6163686d 61c02ec0 65000100 01000798 83000483 d72bacc0 27 | 2e000200 01000935 be000b08 70757263 68617365 c02ec02e 00020001 000935be 28 | 00070465 6e7679c0 2ec02e00 02000100 0935be00 09036f66 62036e65 7400c02e 29 | 00020001 000935be 00090674 7962616c 74c033c0 2e000200 01000935 be000e08 30 | 6d657263 7574696f 026e69c0 33c08b00 01000100 0935be00 0483d72b a7c0a200 31 | 01000100 0935be00 0483d72b 87c0b500 01000100 001ef800 04c6b4b6 07c0ca00 32 | 01000100 0100d700 0483d78b 64c0df00 01000100 0100d700 0483d7fe 63. 33 | +0.001423 34 | recvfrom fd=4 buflen=512 *addrlen=16 35 | recvfrom=EAGAIN 36 | +0.000646 37 | close fd=4 38 | close=OK 39 | +0.000242 40 | -------------------------------------------------------------------------------- /regress/case-comprinf.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-comprinf.err -------------------------------------------------------------------------------- /regress/case-comprinf.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 37.45.18.172.in-addr.arpa. flags 0 type 12 PTR(raw) submitted 3 | 37.45.18.172.in-addr.arpa. flags 0 type PTR(raw): Found overly-long domain name; nrrs=0; cname=37.45.18.172.in-addr.arpa.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-comprinf.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :12 37.45.18.172.in-addr.arpa. 3 | start 951961094.184850 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000134 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000053 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000035 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 02333702 34350231 38033137 3207696e 2d616464 15 | 72046172 70610000 0c0001. 16 | sendto=43 17 | +0.000960 18 | select max=5 rfds=[4] wfds=[] efds=[] to=1.999040 19 | select=1 rfds=[4] wfds=[] efds=[] 20 | +0.000200 21 | recvfrom fd=4 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8580 00010002 00010001 02333702 34350231 38033137 3207696e 2d616464 24 | 72046172 70610000 0c0001c0 0c000500 01000151 80003f02 33370234 35023138 25 | 03313732 07696e2d 61646472 04617270 61047465 73740369 776a0a72 656c6174 26 | 69766974 79086772 65656e65 6e64036f 72670275 6b00c037 000c0001 0000003c 27 | 00060370 7472c082 c0510002 00010000 003c0006 036e7330 c05ac094 00010001 28 | 00015180 0004ac12 2d06. 29 | +0.000624 30 | recvfrom fd=4 buflen=512 *addrlen=16 31 | recvfrom=EAGAIN 32 | +0.000222 33 | close fd=4 34 | close=OK 35 | +0.000197 36 | -------------------------------------------------------------------------------- /regress/case-connfail.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-connfail.err -------------------------------------------------------------------------------- /regress/case-connfail.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.36 2 | adns debug: using nameserver 172.18.45.6 3 | davenant.greenend.org.uk flags 2 type 1adns warning: TCP connection failed: connect: Socket operation on non-socket (NS=172.18.45.36) 4 | adns warning: TCP connection failed: connect: Socket operation on non-socket (NS=172.18.45.6) 5 | A(-) submitted 6 | adns warning: TCP connection failed: connect: Socket operation on non-socket (NS=172.18.45.36) 7 | adns warning: TCP connection failed: connect: Socket operation on non-socket (NS=172.18.45.6) 8 | davenant.greenend.org.uk flags 2 type A(-): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 9 | rc=0 10 | -------------------------------------------------------------------------------- /regress/case-connfail.sys: -------------------------------------------------------------------------------- 1 | ./adnstest 2ndserver 2 | :1 2/davenant.greenend.org.uk 3 | start 1056289303.784817 4 | socket type=SOCK_DGRAM 5 | socket=6 6 | +0.000031 7 | fcntl fd=6 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000010 10 | fcntl fd=6 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000007 13 | socket type=SOCK_STREAM 14 | socket=7 15 | +0.000059 16 | fcntl fd=7 cmd=F_GETFL 17 | fcntl=~O_NONBLOCK&... 18 | +0.000007 19 | fcntl fd=7 cmd=F_SETFL O_NONBLOCK|... 20 | fcntl=OK 21 | +0.000006 22 | connect fd=7 addr=172.18.45.36:53 23 | connect=ENOTSOCK 24 | +0.000013 25 | close fd=7 26 | close=OK 27 | +0.000031 28 | socket type=SOCK_STREAM 29 | socket=7 30 | +0.000035 31 | fcntl fd=7 cmd=F_GETFL 32 | fcntl=~O_NONBLOCK&... 33 | +0.000006 34 | fcntl fd=7 cmd=F_SETFL O_NONBLOCK|... 35 | fcntl=OK 36 | +0.000007 37 | connect fd=7 addr=172.18.45.6:53 38 | connect=ENOTSOCK 39 | +0.000008 40 | close fd=7 41 | close=OK 42 | +0.000013 43 | select max=7 rfds=[6] wfds=[] efds=[] to=0.000000 44 | select=0 rfds=[] wfds=[] efds=[] 45 | +0.000036 46 | socket type=SOCK_STREAM 47 | socket=7 48 | +0.000036 49 | fcntl fd=7 cmd=F_GETFL 50 | fcntl=~O_NONBLOCK&... 51 | +0.000007 52 | fcntl fd=7 cmd=F_SETFL O_NONBLOCK|... 53 | fcntl=OK 54 | +0.000006 55 | connect fd=7 addr=172.18.45.36:53 56 | connect=ENOTSOCK 57 | +0.000008 58 | close fd=7 59 | close=OK 60 | +0.000013 61 | socket type=SOCK_STREAM 62 | socket=7 63 | +0.000036 64 | fcntl fd=7 cmd=F_GETFL 65 | fcntl=~O_NONBLOCK&... 66 | +0.000007 67 | fcntl fd=7 cmd=F_SETFL O_NONBLOCK|... 68 | fcntl=OK 69 | +0.000006 70 | connect fd=7 addr=172.18.45.6:53 71 | connect=ENOTSOCK 72 | +0.000008 73 | close fd=7 74 | close=OK 75 | +0.000012 76 | close fd=6 77 | close=OK 78 | +0.000023 79 | -------------------------------------------------------------------------------- /regress/case-datapluscname.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-datapluscname.err -------------------------------------------------------------------------------- /regress/case-datapluscnamewait.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-datapluscnamewait.err -------------------------------------------------------------------------------- /regress/case-flags10.err: -------------------------------------------------------------------------------- 1 | too many flags 2 | -------------------------------------------------------------------------------- /regress/case-flags10.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | rc=3 3 | -------------------------------------------------------------------------------- /regress/case-flags10.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 ,aaaaaaaaaa/chiark.greenend.org.uk 3 | start 929580072.670441 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000191 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000084 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000061 13 | close fd=4 14 | close=OK 15 | +0.000001 16 | -------------------------------------------------------------------------------- /regress/case-flags9.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-flags9.err -------------------------------------------------------------------------------- /regress/case-flags9.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | chiark.greenend.org.uk flags 0 type 1 A(-) submitted 3 | chiark.greenend.org.uk flags 0 type A(-) ownflags=aaaaaaaaa: ok; nrrs=1; cname=$; owner=$; ttl=86400 4 | 195.224.76.132 5 | rc=0 6 | -------------------------------------------------------------------------------- /regress/case-flags9.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 ,aaaaaaaaa/chiark.greenend.org.uk 3 | start 929580075.263215 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000212 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000083 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000060 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 06636869 61726b08 67726565 6e656e64 036f7267 15 | 02756b00 00010001. 16 | sendto=40 17 | +0.000625 18 | select max=5 rfds=[4] wfds=[] efds=[] to=1.999375 19 | select=1 rfds=[4] wfds=[] efds=[] 20 | +0.007374 21 | recvfrom fd=4 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8580 00010001 00020002 06636869 61726b08 67726565 6e656e64 036f7267 24 | 02756b00 00010001 c00c0001 00010001 51800004 c3e04c84 08677265 656e656e 25 | 64036f72 6702756b 00000200 01000151 80001103 6e73300a 72656c61 74697669 26 | 7479c038 c0380002 00010001 51800006 036e7331 c057c053 00010001 00015180 27 | 0004ac12 2d06c070 00010001 00015180 0004ac12 2d41. 28 | +0.001238 29 | recvfrom fd=4 buflen=512 *addrlen=16 30 | recvfrom=EAGAIN 31 | +0.000228 32 | close fd=4 33 | close=OK 34 | +0.000205 35 | -------------------------------------------------------------------------------- /regress/case-formerr.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-formerr.err -------------------------------------------------------------------------------- /regress/case-formerr.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | h.rndrobwlxxxxxxxxxxlllantysiliogogllanfairpwllgwyngyllgogerychw.relativity.greenend.org.uk. flags 1 type 1 A(-) submitted 3 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 4 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 5 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 6 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 7 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 8 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 9 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 10 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 11 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 12 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 13 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 14 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 15 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 16 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 17 | adns warning: server cannot understand our query (Format Error) (NS=172.18.45.6) 18 | h.rndrobwlxxxxxxxxxxlllantysiliogogllanfairpwllgwyngyllgogerychw.relativity.greenend.org.uk. flags 1 type A(-): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 19 | rc=0 20 | -------------------------------------------------------------------------------- /regress/case-lockup.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-lockup.err -------------------------------------------------------------------------------- /regress/case-lockup.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.36 2 | chiark.greenend.org.uk flags 0 type 1 A(-) submitted 3 | chiark.greenend.org.uk flags 0 type A(-): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-longdom0.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-longdom0.err -------------------------------------------------------------------------------- /regress/case-longdom0.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 0rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk. flags 1 type 1 A(-) submitted 3 | 0rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk. flags 1 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-longdom0.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 1/0rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk. 3 | start 951955651.857473 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000126 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000056 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000036 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 2230726e 64726f62 776c7878 78787878 78787878 15 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 16 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 17 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 18 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 19 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 20 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 21 | 6c6c6c61 6e747973 696c696f 676f670a 72656c61 74697669 74790867 7265656e 22 | 656e6403 6f726702 756b0000 010001. 23 | sendto=271 24 | +0.003710 25 | select max=5 rfds=[4] wfds=[] efds=[] to=1.996290 26 | select=1 rfds=[4] wfds=[] efds=[] 27 | +0.000332 28 | recvfrom fd=4 buflen=512 *addrlen=16 29 | recvfrom=OK addr=172.18.45.6:53 30 | 311f8583 00010000 00010000 2230726e 64726f62 776c7878 78787878 78787878 31 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 32 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 33 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 34 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 35 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 36 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 37 | 6c6c6c61 6e747973 696c696f 676f670a 72656c61 74697669 74790867 7265656e 38 | 656e6403 6f726702 756b0000 0100010a 72656c61 74697669 74790867 7265656e 39 | 656e6403 6f726702 756b0000 06000100 01518000 27036e73 30c10f0a 686f7374 40 | 6d617374 6572c10f 0000002d 00001c20 00000e10 00093a80 00015180. 41 | +0.001276 42 | recvfrom fd=4 buflen=512 *addrlen=16 43 | recvfrom=EAGAIN 44 | +0.000148 45 | close fd=4 46 | close=OK 47 | +0.000154 48 | -------------------------------------------------------------------------------- /regress/case-longdom1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-longdom1.err -------------------------------------------------------------------------------- /regress/case-longdom1.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 10rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk. flags 1 type 1 A(-) submitted 3 | 10rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk. flags 1 type A(-): Domain name or component is too long; nrrs=0; cname=$; owner=$; ttl=604800 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-longdom1.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 1/10rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk. 3 | start 951955690.505811 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000126 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000058 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000035 13 | close fd=4 14 | close=OK 15 | +0.000269 16 | -------------------------------------------------------------------------------- /regress/case-longdomsrch0.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-longdomsrch0.err -------------------------------------------------------------------------------- /regress/case-longdomsrch0.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 10rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type 1 A(-) submitted 3 | 10rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=604800 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-longdomsrch0.sys: -------------------------------------------------------------------------------- 1 | adnstest ndots100 2 | :1 1/10rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk 3 | start 951956073.321566 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000131 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000056 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000034 13 | close fd=4 14 | close=OK 15 | +0.000340 16 | -------------------------------------------------------------------------------- /regress/case-longdomsrch1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-longdomsrch1.err -------------------------------------------------------------------------------- /regress/case-longdomsrch1.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 0rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type 1 A(-) submitted 3 | 0rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-longdomsrch1.sys: -------------------------------------------------------------------------------- 1 | adnstest ndots100 2 | :1 1/0rndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk 3 | start 951956087.269350 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000132 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000060 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000038 13 | sendto fd=4 addr=172.18.45.6:53 14 | 31210100 00010000 00000000 2230726e 64726f62 776c7878 78787878 78787878 15 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 16 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 17 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 18 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 19 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 20 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 21 | 6c6c6c61 6e747973 696c696f 676f670a 72656c61 74697669 74790867 7265656e 22 | 656e6403 6f726702 756b0000 010001. 23 | sendto=271 24 | +0.001749 25 | select max=5 rfds=[4] wfds=[] efds=[] to=1.998251 26 | select=1 rfds=[4] wfds=[] efds=[] 27 | +0.000215 28 | recvfrom fd=4 buflen=512 *addrlen=16 29 | recvfrom=OK addr=172.18.45.6:53 30 | 31218583 00010000 00010000 2230726e 64726f62 776c7878 78787878 78787878 31 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 32 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 33 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 34 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 35 | 6c6c6c61 6e747973 696c696f 676f673f 6c6c616e 66616972 70776c6c 6777796e 36 | 67796c6c 676f6765 72796368 7779726e 64726f62 776c7878 78787878 78787878 37 | 6c6c6c61 6e747973 696c696f 676f670a 72656c61 74697669 74790867 7265656e 38 | 656e6403 6f726702 756b0000 0100010a 72656c61 74697669 74790867 7265656e 39 | 656e6403 6f726702 756b0000 06000100 01518000 27036e73 30c10f0a 686f7374 40 | 6d617374 6572c10f 0000002d 00001c20 00000e10 00093a80 00015180. 41 | +0.001176 42 | recvfrom fd=4 buflen=512 *addrlen=16 43 | recvfrom=EAGAIN 44 | +0.000173 45 | close fd=4 46 | close=OK 47 | +0.000152 48 | -------------------------------------------------------------------------------- /regress/case-longdomsrch1b.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-longdomsrch1b.err -------------------------------------------------------------------------------- /regress/case-longdomsrch1b.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 1xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type 1 A(-) submitted 3 | 1xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-longdomsrch1b.sys: -------------------------------------------------------------------------------- 1 | adnstest ndots100 2 | :1 1/1xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk 3 | start 951956136.566877 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000137 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000060 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000038 13 | sendto fd=4 addr=172.18.45.6:53 14 | 31210100 00010000 00000000 13317878 786c6c6c 616e7479 73696c69 6f676f67 15 | 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 16 | 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 17 | 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 18 | 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 19 | 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 20 | 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 21 | 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 02756b00 00010001. 22 | sendto=256 23 | +0.004128 24 | select max=5 rfds=[4] wfds=[] efds=[] to=1.995872 25 | select=1 rfds=[4] wfds=[] efds=[] 26 | +0.000232 27 | recvfrom fd=4 buflen=512 *addrlen=16 28 | recvfrom=OK addr=172.18.45.6:53 29 | 31218583 00010000 00010000 13317878 786c6c6c 616e7479 73696c69 6f676f67 30 | 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 31 | 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 32 | 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 33 | 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 34 | 3f6c6c61 6e666169 7270776c 6c677779 6e67796c 6c676f67 65727963 68777972 35 | 6e64726f 62776c78 78787878 78787878 786c6c6c 616e7479 73696c69 6f676f67 36 | 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 02756b00 00010001 37 | 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 02756b00 00060001 38 | 00015180 0027036e 7330c100 0a686f73 746d6173 746572c1 00000000 2d00001c 39 | 2000000e 1000093a 80000151 80. 40 | +0.001145 41 | recvfrom fd=4 buflen=512 *addrlen=16 42 | recvfrom=EAGAIN 43 | +0.000155 44 | close fd=4 45 | close=OK 46 | +0.000161 47 | -------------------------------------------------------------------------------- /regress/case-longdomsrch2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-longdomsrch2.err -------------------------------------------------------------------------------- /regress/case-longdomsrch2.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type 1 A(-) submitted 3 | xxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.llanfairpwllgwyngyllgogerychwyrndrobwlxxxxxxxxxxlllantysiliogog.relativity.greenend.org.uk flags 1 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-longlab0.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-longlab0.err -------------------------------------------------------------------------------- /regress/case-longlab0.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | yrndrobwlxxxxxxxxxxlllantysiliogogllanfairpwllgwyngyllgogerychw.relativity.greenend.org.uk. flags 1 type 1 A(-) submitted 3 | yrndrobwlxxxxxxxxxxlllantysiliogogllanfairpwllgwyngyllgogerychw.relativity.greenend.org.uk. flags 1 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-longlab0.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 1/yrndrobwlxxxxxxxxxxlllantysiliogogllanfairpwllgwyngyllgogerychw.relativity.greenend.org.uk. 3 | start 951955250.786132 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000123 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000055 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000034 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 3f79726e 64726f62 776c7878 78787878 78787878 15 | 6c6c6c61 6e747973 696c696f 676f676c 6c616e66 61697270 776c6c67 77796e67 16 | 796c6c67 6f676572 79636877 0a72656c 61746976 69747908 67726565 6e656e64 17 | 036f7267 02756b00 00010001. 18 | sendto=108 19 | +0.003243 20 | select max=5 rfds=[4] wfds=[] efds=[] to=1.996757 21 | select=1 rfds=[4] wfds=[] efds=[] 22 | +0.000534 23 | recvfrom fd=4 buflen=512 *addrlen=16 24 | recvfrom=OK addr=172.18.45.6:53 25 | 311f8583 00010000 00010000 3f79726e 64726f62 776c7878 78787878 78787878 26 | 6c6c6c61 6e747973 696c696f 676f676c 6c616e66 61697270 776c6c67 77796e67 27 | 796c6c67 6f676572 79636877 0a72656c 61746976 69747908 67726565 6e656e64 28 | 036f7267 02756b00 00010001 0a72656c 61746976 69747908 67726565 6e656e64 29 | 036f7267 02756b00 00060001 00015180 0027036e 7330c06c 0a686f73 746d6173 30 | 746572c0 6c000000 2d00001c 2000000e 1000093a 80000151 80. 31 | +0.000686 32 | recvfrom fd=4 buflen=512 *addrlen=16 33 | recvfrom=EAGAIN 34 | +0.000147 35 | close fd=4 36 | close=OK 37 | +0.000151 38 | -------------------------------------------------------------------------------- /regress/case-longlab1.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-longlab1.err -------------------------------------------------------------------------------- /regress/case-longlab1.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | hyrndrobwlxxxxxxxxxxlllantysiliogogllanfairpwllgwyngyllgogerychw.relativity.greenend.org.uk. flags 1 type 1 A(-) submitted 3 | hyrndrobwlxxxxxxxxxxlllantysiliogogllanfairpwllgwyngyllgogerychw.relativity.greenend.org.uk. flags 1 type A(-): Domain name or component is too long; nrrs=0; cname=$; owner=$; ttl=604800 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-longlab1.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 1/hyrndrobwlxxxxxxxxxxlllantysiliogogllanfairpwllgwyngyllgogerychw.relativity.greenend.org.uk. 3 | start 951955261.286712 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000128 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000053 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000033 13 | close fd=4 14 | close=OK 15 | +0.000238 16 | -------------------------------------------------------------------------------- /regress/case-mailboxes.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-mailboxes.err -------------------------------------------------------------------------------- /regress/case-mailboxes.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | silly-rp.test.iwj.relativity.greenend.org.uk flags 0 type 131089 RP(822) submitted 3 | silly-rp.test.iwj.relativity.greenend.org.uk flags 0 type RP(822): OK; nrrs=6; cname=$; owner=$; ttl=60 4 | . . 5 | i@ucam.org . 6 | i.j@ucam.org . 7 | "i..j"@ucam.org . 8 | ".i"@ucam.org . 9 | "i."@ucam.org . 10 | rc=0 11 | -------------------------------------------------------------------------------- /regress/case-mailboxes.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :131089 silly-rp.test.iwj.relativity.greenend.org.uk 3 | start 923859567.899146 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000411 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000094 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000073 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 0873696c 6c792d72 70047465 73740369 776a0a72 15 | 656c6174 69766974 79086772 65656e65 6e64036f 72670275 6b000011 0001. 16 | sendto=62 17 | +0.000670 18 | select max=5 rfds=[4] wfds=[] efds=[] to=1.999330 19 | select=1 rfds=[4] wfds=[] efds=[] 20 | +0.008169 21 | recvfrom fd=4 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8180 00010006 00000000 0873696c 6c792d72 70047465 73740369 776a0a72 24 | 656c6174 69766974 79086772 65656e65 6e64036f 72670275 6b000011 0001c00c 25 | 00110001 0000003c 00020000 c00c0011 00010000 003c000d 01690475 63616d03 26 | 6f726700 00c00c00 11000100 00003c00 0703692e 6ac05a00 c00c0011 00010000 27 | 003c0008 04692e2e 6ac05a00 c00c0011 00010000 003c0006 022e69c0 5a00c00c 28 | 00110001 0000003c 00060269 2ec05a00. 29 | +0.000992 30 | recvfrom fd=4 buflen=512 *addrlen=16 31 | recvfrom=EAGAIN 32 | +0.000604 33 | close fd=4 34 | close=OK 35 | +0.000359 36 | -------------------------------------------------------------------------------- /regress/case-manya.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-manya.err -------------------------------------------------------------------------------- /regress/case-manya.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | manyaddrs.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 3 | manyaddrs.test.iwj.relativity.greenend.org.uk flags 0 type A(-): OK; nrrs=4; cname=$; owner=$; ttl=60 4 | 127.0.0.1 5 | 172.18.45.6 6 | 172.18.45.1 7 | 172.18.45.35 8 | rc=0 9 | -------------------------------------------------------------------------------- /regress/case-manya.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 manyaddrs.test.iwj.relativity.greenend.org.uk 3 | start 912888920.123769 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000245 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000705 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000073 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 096d616e 79616464 72730474 65737403 69776a0a 15 | 72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001. 16 | sendto=63 17 | +0.000698 18 | select max=5 rfds=[4] wfds=[] efds=[] to=1.999302 19 | select=1 rfds=[4] wfds=[] efds=[] 20 | +0.006236 21 | recvfrom fd=4 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8580 00010004 00010001 096d616e 79616464 72730474 65737403 69776a0a 24 | 72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001c0 25 | 0c000100 01000000 3c0004ac 122d23c0 0c000100 01000000 3c0004ac 122d06c0 26 | 0c000100 01000000 3c0004ac 122d01c0 0c000100 01000000 3c00047f 00000104 27 | 74657374 0369776a 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 28 | 02756b00 00020001 0000003c 0006036e 7330c088 c0ae0001 00010001 51800004 29 | ac122d06. 30 | +0.001078 31 | recvfrom fd=4 buflen=512 *addrlen=16 32 | recvfrom=EAGAIN 33 | +0.000329 34 | close fd=4 35 | close=OK 36 | +0.000240 37 | -------------------------------------------------------------------------------- /regress/case-manyptrwrong.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-manyptrwrong.err -------------------------------------------------------------------------------- /regress/case-manyptrwrongrem.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-manyptrwrongrem.err -------------------------------------------------------------------------------- /regress/case-manyptrwrongrst.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-manyptrwrongrst.err -------------------------------------------------------------------------------- /regress/case-manyptrwrongrty.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-manyptrwrongrty.err -------------------------------------------------------------------------------- /regress/case-ndots-as.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-ndots-as.err -------------------------------------------------------------------------------- /regress/case-ndots-as.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | newsx.davenant flags 5 type 1 A(-) submitted 3 | news.davenant flags 5 type 1 A(-) submitted 4 | news.davenant.greenend.org.uk flags 5 type 1 A(-) submitted 5 | trunc.test.iwj.relativity flags 5 type 1 A(-) submitted 6 | trunx.test.iwj.relativity flags 5 type 1 A(-) submitted 7 | test.iwj.relativity flags 5 type 1 A(-) submitted 8 | news.davenant.greenend.org.uk flags 5 type A(-): OK; nrrs=1; cname=davenant.relativity.greenend.org.uk; owner=news.davenant.greenend.org.uk; ttl=86400 9 | 172.18.45.6 10 | newsx.davenant flags 5 type A(-): No such domain; nrrs=0; cname=$; owner=newsx.davenant; ttl=86400 11 | news.davenant flags 5 type A(-): OK; nrrs=1; cname=davenant.relativity.greenend.org.uk; owner=news.davenant.greenend.org.uk; ttl=86400 12 | 172.18.45.6 13 | trunc.test.iwj.relativity flags 5 type A(-): No such data; nrrs=0; cname=$; owner=trunc.test.iwj.relativity.greenend.org.uk; ttl=60 14 | trunx.test.iwj.relativity flags 5 type A(-): No such domain; nrrs=0; cname=$; owner=trunx.test.iwj.relativity; ttl=60 15 | test.iwj.relativity flags 5 type A(-): No such data; nrrs=0; cname=$; owner=test.iwj.relativity.greenend.org.uk; ttl=60 16 | rc=0 17 | -------------------------------------------------------------------------------- /regress/case-ndots.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-ndots.err -------------------------------------------------------------------------------- /regress/case-ndots.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | newsx.davenant flags 5 type 1 A(-) submitted 3 | news.davenant flags 5 type 1 A(-) submitted 4 | news.davenant.greenend.org.uk flags 5 type 1 A(-) submitted 5 | trunc.test.iwj.relativity flags 5 type 1 A(-) submitted 6 | trunx.test.iwj.relativity flags 5 type 1 A(-) submitted 7 | test.iwj.relativity flags 5 type 1 A(-) submitted 8 | newsx.davenant flags 5 type A(-): No such domain; nrrs=0; cname=$; owner=newsx.davenant; ttl=175 9 | news.davenant flags 5 type A(-): OK; nrrs=1; cname=davenant.relativity.greenend.org.uk; owner=news.davenant.greenend.org.uk; ttl=86400 10 | 172.18.45.6 11 | news.davenant.greenend.org.uk flags 5 type A(-): OK; nrrs=1; cname=davenant.relativity.greenend.org.uk; owner=news.davenant.greenend.org.uk; ttl=86400 12 | 172.18.45.6 13 | trunc.test.iwj.relativity flags 5 type A(-): No such data; nrrs=0; cname=$; owner=trunc.test.iwj.relativity.greenend.org.uk; ttl=60 14 | trunx.test.iwj.relativity flags 5 type A(-): No such domain; nrrs=0; cname=$; owner=trunx.test.iwj.relativity; ttl=60 15 | test.iwj.relativity flags 5 type A(-): No such data; nrrs=0; cname=$; owner=test.iwj.relativity.greenend.org.uk; ttl=60 16 | rc=0 17 | -------------------------------------------------------------------------------- /regress/case-ndotsbad.err: -------------------------------------------------------------------------------- 1 | adns failure: init: errno=EINVAL 2 | -------------------------------------------------------------------------------- /regress/case-ndotsbad.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | adns: :4: option `ndots:X' malformed or has bad value 3 | rc=2 4 | -------------------------------------------------------------------------------- /regress/case-ndotsbad.sys: -------------------------------------------------------------------------------- 1 | adnstest ndotsbad 2 | :1 5/news.davenant.greenend.org.uk 3 | -------------------------------------------------------------------------------- /regress/case-noinfto.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-noinfto.err -------------------------------------------------------------------------------- /regress/case-noinfto.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.36 2 | a.b.c.d flags 0 type 1 A(-) submitted 3 | a.b.c.d flags 0 type A(-): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604744 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-norecurse.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-norecurse.err -------------------------------------------------------------------------------- /regress/case-norecurse.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 4.204.50.158.in-addr.arpa flags 0 type 1 A(-) submitted 3 | 4.204.50.158.in-addr.arpa flags 0 type 2 NS(raw) submitted 4 | 4.204.50.158.in-addr.arpa flags 0 type 5 CNAME(-) submitted 5 | 4.204.50.158.in-addr.arpa flags 0 type 6 SOA(raw) submitted 6 | 4.204.50.158.in-addr.arpa flags 0 type 12 PTR(raw) submitted 7 | 4.204.50.158.in-addr.arpa flags 0 type 13adns debug: TCP connected (NS=172.18.45.6) 8 | HINFO(-) submitted 9 | 4.204.50.158.in-addr.arpa flags 0 type 15 MX(raw) submitted 10 | 4.204.50.158.in-addr.arpa flags 0 type 16 TXT(-) submitted 11 | 4.204.50.158.in-addr.arpa flags 0 type 17 RP(raw) submitted 12 | 4.204.50.158.in-addr.arpa flags 0 type 65537 A(addr) submitted 13 | 4.204.50.158.in-addr.arpa flags 0 type 65538 NS(+addr) submitted 14 | 4.204.50.158.in-addr.arpa flags 0 type 65548 PTR(checked) submitted 15 | 4.204.50.158.in-addr.arpa flags 0 type 65551 MX(+addr) submitted 16 | 4.204.50.158.in-addr.arpa flags 0 type 131078 SOA(822) submitted 17 | 4.204.50.158.in-addr.arpa flags 0 type 131089adns debug: reply not found, id 3141, query owner ns2.afpdoc.com (NS=172.18.45.6) 18 | adns debug: reply not found, id 3142, query owner ns2.afp-notes.com (NS=172.18.45.6) 19 | adns debug: reply not found, id 3143, query owner ns2.afp-domino.com (NS=172.18.45.6) 20 | RP(822) submitted 21 | 4.204.50.158.in-addr.arpa flags 0 type A(-): No such data; nrrs=0; cname=$; owner=$; ttl=0 22 | 4.204.50.158.in-addr.arpa flags 0 type NS(raw): No such data; nrrs=0; cname=$; owner=$; ttl=0 23 | 4.204.50.158.in-addr.arpa flags 0 type SOA(raw): No such data; nrrs=0; cname=$; owner=$; ttl=0 24 | 4.204.50.158.in-addr.arpa flags 0 type HINFO(-): No such data; nrrs=0; cname=$; owner=$; ttl=0 25 | 4.204.50.158.in-addr.arpa flags 0 type MX(raw): No such data; nrrs=0; cname=$; owner=$; ttl=0 26 | 4.204.50.158.in-addr.arpa flags 0 type PTR(raw): OK; nrrs=23; cname=$; owner=$; ttl=77948 27 | ns2.afp.com 28 | ns.afp.com 29 | news.afp.com 30 | ns2.afp.fr 31 | ns.afp.fr 32 | news.afp.fr 33 | ns2.agencefrancepresse.com 34 | news.agencefrancepresse.com 35 | ns2.agencefrancepresse.fr 36 | news.agencefrancepresse.fr 37 | ns2.agencefrance-presse.com 38 | news.agencefrance-presse.com 39 | ns2.agencefrance-presse.fr 40 | news.agencefrance-presse.fr 41 | ns2.imageforum.com 42 | news.imageforum.com 43 | ns2.imageforum.tm.fr 44 | news.imageforum.tm.fr 45 | ns2.ooh-lah-lah.com 46 | ns2.afpsciences.com 47 | ns2.afpdoc.com 48 | ns2.afp-notes.com 49 | ns2.afp-domino.com 50 | 4.204.50.158.in-addr.arpa flags 0 type TXT(-): No such data; nrrs=0; cname=$; owner=$; ttl=0 51 | 4.204.50.158.in-addr.arpa flags 0 type RP(raw): No such data; nrrs=0; cname=$; owner=$; ttl=0 52 | 4.204.50.158.in-addr.arpa flags 0 type A(addr): No such data; nrrs=0; cname=$; owner=$; ttl=0 53 | 4.204.50.158.in-addr.arpa flags 0 type NS(+addr): No such data; nrrs=0; cname=$; owner=$; ttl=0 54 | 4.204.50.158.in-addr.arpa flags 0 type MX(+addr): No such data; nrrs=0; cname=$; owner=$; ttl=0 55 | 4.204.50.158.in-addr.arpa flags 0 type SOA(822): No such data; nrrs=0; cname=$; owner=$; ttl=0 56 | 4.204.50.158.in-addr.arpa flags 0 type PTR(checked): Inconsistent resource records in DNS; nrrs=0; cname=$; owner=$; ttl=77948 57 | 4.204.50.158.in-addr.arpa flags 0 type RP(822): No such data; nrrs=0; cname=$; owner=$; ttl=0 58 | 4.204.50.158.in-addr.arpa flags 0 type CNAME(-): No such data; nrrs=0; cname=$; owner=$; ttl=0 59 | rc=0 60 | -------------------------------------------------------------------------------- /regress/case-norecurse2.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-norecurse2.err -------------------------------------------------------------------------------- /regress/case-norecurse2.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 4.204.50.158.in-addr.arpa flags 0 type 1 A(-) submitted 3 | 4.204.50.158.in-addr.arpa flags 0 type 2 NS(raw) submitted 4 | 4.204.50.158.in-addr.arpa flags 0 type 5 CNAME(-) submitted 5 | 4.204.50.158.in-addr.arpa flags 0 type 6 SOA(raw) submitted 6 | 4.204.50.158.in-addr.arpa flags 0 type 12 PTR(raw) submitted 7 | 4.204.50.158.in-addr.arpa flags 0 type 13 HINFO(-) submitted 8 | 4.204.50.158.in-addr.arpa flags 0 type 15 MX(raw) submitted 9 | 4.204.50.158.in-addr.arpa flags 0 type 16 TXT(-) submitted 10 | 4.204.50.158.in-addr.arpa flags 0 type 17 RP(raw) submitted 11 | 4.204.50.158.in-addr.arpa flags 0 type 65537 A(addr) submitted 12 | 4.204.50.158.in-addr.arpa flags 0 type 65538 NS(+addr) submitted 13 | 4.204.50.158.in-addr.arpa flags 0 type 65548 PTR(checked) submitted 14 | 4.204.50.158.in-addr.arpa flags 0 type 65551 MX(+addr) submitted 15 | 4.204.50.158.in-addr.arpa flags 0 type 131078 SOA(822) submitted 16 | 4.204.50.158.in-addr.arpa flags 0 type 131089 RP(822) submitted 17 | 4.204.50.158.in-addr.arpa flags 0 type SOA(raw): No such data; nrrs=0; cname=$; owner=$; ttl=0 18 | 4.204.50.158.in-addr.arpa flags 0 type HINFO(-): No such data; nrrs=0; cname=$; owner=$; ttl=0 19 | 4.204.50.158.in-addr.arpa flags 0 type MX(raw): No such data; nrrs=0; cname=$; owner=$; ttl=0 20 | 4.204.50.158.in-addr.arpa flags 0 type TXT(-): No such data; nrrs=0; cname=$; owner=$; ttl=0 21 | 4.204.50.158.in-addr.arpa flags 0 type MX(+addr): No such data; nrrs=0; cname=$; owner=$; ttl=0 22 | 4.204.50.158.in-addr.arpa flags 0 type A(addr): No such data; nrrs=0; cname=$; owner=$; ttl=0 23 | 4.204.50.158.in-addr.arpa flags 0 type NS(+addr): No such data; nrrs=0; cname=$; owner=$; ttl=0 24 | 4.204.50.158.in-addr.arpa flags 0 type RP(822): No such data; nrrs=0; cname=$; owner=$; ttl=0 25 | 4.204.50.158.in-addr.arpa flags 0 type A(-): No such data; nrrs=0; cname=$; owner=$; ttl=0 26 | 4.204.50.158.in-addr.arpa flags 0 type NS(raw): No such data; nrrs=0; cname=$; owner=$; ttl=0 27 | 4.204.50.158.in-addr.arpa flags 0 type SOA(822): No such data; nrrs=0; cname=$; owner=$; ttl=0 28 | adns debug: reply not found, id 312c, query owner 4.204.50.158.in-addr.arpa (NS=172.18.45.6) 29 | adns debug: reply not found, id 311f, query owner 4.204.50.158.in-addr.arpa (NS=172.18.45.6) 30 | adns debug: reply not found, id 3120, query owner 4.204.50.158.in-addr.arpa (NS=172.18.45.6) 31 | adns debug: reply not found, id 312a, query owner 4.204.50.158.in-addr.arpa (NS=172.18.45.6) 32 | 4.204.50.158.in-addr.arpa flags 0 type RP(raw): No such data; nrrs=0; cname=$; owner=$; ttl=0 33 | 4.204.50.158.in-addr.arpa flags 0 type CNAME(-): No such data; nrrs=0; cname=$; owner=$; ttl=0 34 | adns debug: TCP connected (NS=172.18.45.6) 35 | 4.204.50.158.in-addr.arpa flags 0 type PTR(raw): OK; nrrs=23; cname=$; owner=$; ttl=0 36 | ns2.afp.com 37 | ns.afp.com 38 | news.afp.com 39 | ns2.afp.fr 40 | ns.afp.fr 41 | news.afp.fr 42 | ns2.agencefrancepresse.com 43 | news.agencefrancepresse.com 44 | ns2.agencefrancepresse.fr 45 | news.agencefrancepresse.fr 46 | ns2.agencefrance-presse.com 47 | news.agencefrance-presse.com 48 | ns2.agencefrance-presse.fr 49 | news.agencefrance-presse.fr 50 | ns2.imageforum.com 51 | news.imageforum.com 52 | ns2.imageforum.tm.fr 53 | news.imageforum.tm.fr 54 | ns2.ooh-lah-lah.com 55 | ns2.afpsciences.com 56 | ns2.afpdoc.com 57 | ns2.afp-notes.com 58 | ns2.afp-domino.com 59 | 4.204.50.158.in-addr.arpa flags 0 type PTR(checked): Inconsistent resource records in DNS; nrrs=0; cname=$; owner=$; ttl=-6 60 | rc=0 61 | -------------------------------------------------------------------------------- /regress/case-norecurse3.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-norecurse3.err -------------------------------------------------------------------------------- /regress/case-norecurse3.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 2.203.156.195.in-addr.arpa1 flags 0 type 1 A(-) submitted 3 | 2.203.156.195.in-addr.arpa1 flags 0 type 2 NS(raw) submitted 4 | 2.203.156.195.in-addr.arpa1 flags 0 type 5 CNAME(-) submitted 5 | 2.203.156.195.in-addr.arpa1 flags 0 type 6 SOA(raw) submitted 6 | 2.203.156.195.in-addr.arpa1 flags 0 type 12 PTR(raw) submitted 7 | 2.203.156.195.in-addr.arpa1 flags 0 type 13 HINFO(-) submitted 8 | 2.203.156.195.in-addr.arpa1 flags 0 type 15 MX(raw) submitted 9 | 2.203.156.195.in-addr.arpa1 flags 0 type 16 TXT(-) submitted 10 | 2.203.156.195.in-addr.arpa1 flags 0 type 17 RP(raw) submitted 11 | 2.203.156.195.in-addr.arpa1 flags 0 type 65537 A(addr) submitted 12 | 2.203.156.195.in-addr.arpa1 flags 0 type 65538 NS(+addr) submitted 13 | 2.203.156.195.in-addr.arpa1 flags 0 type 65548 PTR(checked) submitted 14 | 2.203.156.195.in-addr.arpa1 flags 0 type 65551 MX(+addr) submitted 15 | 2.203.156.195.in-addr.arpa1 flags 0 type 131078 SOA(822) submitted 16 | 2.203.156.195.in-addr.arpa1 flags 0 type 131089 RP(822) submitted 17 | 2.203.156.195.in-addr.arpa1 flags 0 type A(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 18 | 2.203.156.195.in-addr.arpa1 flags 0 type RP(822): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 19 | 2.203.156.195.in-addr.arpa1 flags 0 type SOA(822): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 20 | 2.203.156.195.in-addr.arpa1 flags 0 type MX(+addr): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 21 | 2.203.156.195.in-addr.arpa1 flags 0 type PTR(checked): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 22 | 2.203.156.195.in-addr.arpa1 flags 0 type NS(+addr): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 23 | 2.203.156.195.in-addr.arpa1 flags 0 type A(addr): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 24 | 2.203.156.195.in-addr.arpa1 flags 0 type RP(raw): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 25 | 2.203.156.195.in-addr.arpa1 flags 0 type TXT(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 26 | 2.203.156.195.in-addr.arpa1 flags 0 type MX(raw): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 27 | 2.203.156.195.in-addr.arpa1 flags 0 type HINFO(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 28 | 2.203.156.195.in-addr.arpa1 flags 0 type PTR(raw): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 29 | 2.203.156.195.in-addr.arpa1 flags 0 type SOA(raw): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 30 | 2.203.156.195.in-addr.arpa1 flags 0 type CNAME(-): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 31 | 2.203.156.195.in-addr.arpa1 flags 0 type NS(raw): No such domain; nrrs=0; cname=$; owner=$; ttl=86400 32 | rc=0 33 | -------------------------------------------------------------------------------- /regress/case-norm.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-norm.err -------------------------------------------------------------------------------- /regress/case-norm.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | chiark.greenend.org.uk flags 0 type 1 A(-) submitted 3 | chiark.greenend.org.uk flags 0 type A(-): OK; nrrs=1; cname=$; owner=$; ttl=86400 4 | 195.224.76.132 5 | rc=0 6 | -------------------------------------------------------------------------------- /regress/case-norm.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 chiark.greenend.org.uk 3 | start 912888966.802483 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000204 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000670 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000072 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 06636869 61726b08 67726565 6e656e64 036f7267 15 | 02756b00 00010001. 16 | sendto=40 17 | +0.000579 18 | select max=5 rfds=[4] wfds=[] efds=[] to=1.999421 19 | select=1 rfds=[4] wfds=[] efds=[] 20 | +0.006414 21 | recvfrom fd=4 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8580 00010001 00020002 06636869 61726b08 67726565 6e656e64 036f7267 24 | 02756b00 00010001 c00c0001 00010001 51800004 c3e04c84 08677265 656e656e 25 | 64036f72 6702756b 00000200 01000151 80001103 6e73300a 72656c61 74697669 26 | 7479c038 c0380002 00010001 51800006 036e7331 c057c053 00010001 00015180 27 | 0004ac12 2d06c070 00010001 00015180 0004ac12 2d41. 28 | +0.000874 29 | recvfrom fd=4 buflen=512 *addrlen=16 30 | recvfrom=EAGAIN 31 | +0.000179 32 | close fd=4 33 | close=OK 34 | +0.000184 35 | -------------------------------------------------------------------------------- /regress/case-owner.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-owner.err -------------------------------------------------------------------------------- /regress/case-owner.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | chiark.greenend.org.uk flags 4 type 1 A(-) submitted 3 | chiark.greenend.org.uk flags 4 type 2 NS(raw) submitted 4 | chiark.greenend.org.uk flags 4 type 5 CNAME(-) submitted 5 | chiark.greenend.org.uk flags 4 type 6 SOA(raw) submitted 6 | chiark.greenend.org.uk flags 4 type 12 PTR(raw) submitted 7 | chiark.greenend.org.uk flags 4 type 13 HINFO(-) submitted 8 | chiark.greenend.org.uk flags 4 type 15 MX(raw) submitted 9 | chiark.greenend.org.uk flags 4 type 16 TXT(-) submitted 10 | chiark.greenend.org.uk flags 4 type 17 RP(raw) submitted 11 | chiark.greenend.org.uk flags 4 type 65537 A(addr) submitted 12 | chiark.greenend.org.uk flags 4 type 65538 NS(+addr) submitted 13 | chiark.greenend.org.uk flags 4 type 65548 PTR(checked) submitted 14 | chiark.greenend.org.uk flags 4 type 65551 MX(+addr) submitted 15 | chiark.greenend.org.uk flags 4 type 131078 SOA(822) submitted 16 | chiark.greenend.org.uk flags 4 type 131089 RP(822) submitted 17 | chiark.greenend.org.uk flags 4 type A(-): OK; nrrs=1; cname=$; owner=chiark.greenend.org.uk; ttl=86400 18 | 195.224.76.132 19 | chiark.greenend.org.uk flags 4 type NS(raw): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 20 | chiark.greenend.org.uk flags 4 type CNAME(-): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 21 | chiark.greenend.org.uk flags 4 type SOA(raw): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 22 | chiark.greenend.org.uk flags 4 type PTR(raw): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 23 | chiark.greenend.org.uk flags 4 type HINFO(-): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 24 | chiark.greenend.org.uk flags 4 type MX(raw): OK; nrrs=1; cname=$; owner=chiark.greenend.org.uk; ttl=86400 25 | 5 permutation-city.greenend.org.uk 26 | chiark.greenend.org.uk flags 4 type TXT(-): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 27 | chiark.greenend.org.uk flags 4 type RP(raw): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 28 | chiark.greenend.org.uk flags 4 type A(addr): OK; nrrs=1; cname=$; owner=chiark.greenend.org.uk; ttl=86400 29 | INET 195.224.76.132 30 | chiark.greenend.org.uk flags 4 type NS(+addr): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 31 | chiark.greenend.org.uk flags 4 type PTR(checked): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 32 | chiark.greenend.org.uk flags 4 type MX(+addr): OK; nrrs=1; cname=$; owner=chiark.greenend.org.uk; ttl=86400 33 | 5 permutation-city.greenend.org.uk ok 0 ok "OK" ( INET 195.224.76.134 ) 34 | chiark.greenend.org.uk flags 4 type SOA(822): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 35 | chiark.greenend.org.uk flags 4 type RP(822): No such data; nrrs=0; cname=$; owner=chiark.greenend.org.uk; ttl=86400 36 | rc=0 37 | -------------------------------------------------------------------------------- /regress/case-poll.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-poll.err -------------------------------------------------------------------------------- /regress/case-poll.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | chiark.greenend.org.uk flags 0 type 1 A(-) submitted 3 | chiark.greenend.org.uk flags 0 type A(-): OK; nrrs=1; cname=$; owner=$; ttl=86400 4 | 195.224.76.132 5 | rc=0 6 | -------------------------------------------------------------------------------- /regress/case-poll.sys: -------------------------------------------------------------------------------- 1 | adnstest default -,p 2 | :1 chiark.greenend.org.uk 3 | start 931719947.391142 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000208 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000087 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000066 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 06636869 61726b08 67726565 6e656e64 036f7267 15 | 02756b00 00010001. 16 | sendto=40 17 | +0.000592 18 | poll fds=[{fd=4, events=POLLIN, revents=0}] timeout=2000 19 | poll=1 fds=[{fd=4, events=POLLIN, revents=POLLIN}] 20 | +0.006530 21 | recvfrom fd=4 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8580 00010001 00020002 06636869 61726b08 67726565 6e656e64 036f7267 24 | 02756b00 00010001 c00c0001 00010001 51800004 c3e04c84 08677265 656e656e 25 | 64036f72 6702756b 00000200 01000151 80001103 6e73300a 72656c61 74697669 26 | 7479c038 c0380002 00010001 51800006 036e7331 c057c053 00010001 00015180 27 | 0004ac12 2d06c070 00010001 00015180 0004ac12 2d41. 28 | +0.001044 29 | recvfrom fd=4 buflen=512 *addrlen=16 30 | recvfrom=EAGAIN 31 | +0.000211 32 | close fd=4 33 | close=OK 34 | +0.000248 35 | -------------------------------------------------------------------------------- /regress/case-polltimeout.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-polltimeout.err -------------------------------------------------------------------------------- /regress/case-polltimeout.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.36 2 | chiark.greenend.org.uk flags 0 type 1 A(-) submitted 3 | chiark.greenend.org.uk flags 0 type A(-): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-ptrbaddom.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-ptrbaddom.err -------------------------------------------------------------------------------- /regress/case-ptrbaddom.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 37.45.18.172.in-addr.arpa.test.iwj.relativity.greenend.org.uk. flags 0 type 12 PTR(raw) submitted 3 | 37.45.18.172.in-addr.arpa.test.iwj.relativity.greenend.org.uk. flags 0 type 65548 PTR(checked) submitted 4 | 37.45.18.172.in-addr.arpa.test.iwj.relativity.greenend.org.uk. flags 0 type PTR(raw): OK; nrrs=1; cname=$; owner=$; ttl=60 5 | ptr.test.iwj.relativity.greenend.org.uk 6 | 37.45.18.172.in-addr.arpa.test.iwj.relativity.greenend.org.uk. flags 0 type PTR(checked): Domain invalid for particular DNS query type; nrrs=0; cname=$; owner=$; ttl=60 7 | rc=0 8 | -------------------------------------------------------------------------------- /regress/case-ptrbaddom.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :12,65548 37.45.18.172.in-addr.arpa.test.iwj.relativity.greenend.org.uk. 3 | start 951960654.608219 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000194 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000055 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000035 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 02333702 34350231 38033137 3207696e 2d616464 15 | 72046172 70610474 65737403 69776a0a 72656c61 74697669 74790867 7265656e 16 | 656e6403 6f726702 756b0000 0c0001. 17 | sendto=79 18 | +0.001355 19 | sendto fd=4 addr=172.18.45.6:53 20 | 31200100 00010000 00000000 02333702 34350231 38033137 3207696e 2d616464 21 | 72046172 70610474 65737403 69776a0a 72656c61 74697669 74790867 7265656e 22 | 656e6403 6f726702 756b0000 0c0001. 23 | sendto=79 24 | +0.000776 25 | select max=5 rfds=[4] wfds=[] efds=[] to=1.997869 26 | select=1 rfds=[4] wfds=[] efds=[] 27 | +0.000258 28 | recvfrom fd=4 buflen=512 *addrlen=16 29 | recvfrom=OK addr=172.18.45.6:53 30 | 311f8580 00010001 00010001 02333702 34350231 38033137 3207696e 2d616464 31 | 72046172 70610474 65737403 69776a0a 72656c61 74697669 74790867 7265656e 32 | 656e6403 6f726702 756b0000 0c0001c0 0c000c00 01000000 3c002903 70747204 33 | 74657374 0369776a 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 34 | 02756b00 c05f0002 00010000 003c0006 036e7330 c068c090 00010001 00015180 35 | 0004ac12 2d06. 36 | +0.000613 37 | recvfrom fd=4 buflen=512 *addrlen=16 38 | recvfrom=OK addr=172.18.45.6:53 39 | 31208580 00010001 00010001 02333702 34350231 38033137 3207696e 2d616464 40 | 72046172 70610474 65737403 69776a0a 72656c61 74697669 74790867 7265656e 41 | 656e6403 6f726702 756b0000 0c0001c0 0c000c00 01000000 3c002903 70747204 42 | 74657374 0369776a 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 43 | 02756b00 c05f0002 00010000 003c0006 036e7330 c068c090 00010001 00015180 44 | 0004ac12 2d06. 45 | +0.000711 46 | recvfrom fd=4 buflen=512 *addrlen=16 47 | recvfrom=EAGAIN 48 | +0.000133 49 | close fd=4 50 | close=OK 51 | +0.000187 52 | -------------------------------------------------------------------------------- /regress/case-quote.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-quote.err -------------------------------------------------------------------------------- /regress/case-quote.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | hyphen.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 3 | dot.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 4 | plus.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 5 | slash.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 6 | underscore.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 7 | quote.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 8 | backslash.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 9 | null.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 10 | space.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 11 | hash.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 12 | del.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 13 | meta-null.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 14 | meta-del.cname.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 15 | hyphen.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a-b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 16 | dot.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a\.b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 17 | plus.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a+b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 18 | slash.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a/b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 19 | underscore.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a_b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 20 | quote.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a\"b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 21 | backslash.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a\\b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 22 | null.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a\000b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 23 | space.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a\040b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 24 | hash.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a\#b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 25 | del.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a\177b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 26 | meta-null.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a\310b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 27 | meta-del.cname.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such domain; nrrs=0; cname=a\377b.cname.test.iwj.relativity.greenend.org.uk; owner=$; ttl=60 28 | rc=0 29 | -------------------------------------------------------------------------------- /regress/case-rootquery.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-rootquery.err -------------------------------------------------------------------------------- /regress/case-rootquery.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | . flags 0 type 131078 SOA(822) submitted 3 | . flags 1 type 131078 SOA(822) submitted 4 | . flags 0 type SOA(822): OK; nrrs=1; cname=$; owner=$; ttl=60222 5 | A.ROOT-SERVERS.NET hostmaster@INTERNIC.NET 1999041600 1800 900 604800 86400 6 | . flags 1 type SOA(822): OK; nrrs=1; cname=$; owner=$; ttl=57210 7 | A.ROOT-SERVERS.NET hostmaster@INTERNIC.NET 1999041600 1800 900 604800 86400 8 | rc=0 9 | -------------------------------------------------------------------------------- /regress/case-rootqueryall-as.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-rootqueryall-as.err -------------------------------------------------------------------------------- /regress/case-rootqueryall.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-rootqueryall.err -------------------------------------------------------------------------------- /regress/case-search-as.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-search-as.err -------------------------------------------------------------------------------- /regress/case-search-as.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | news flags 5 type 1 A(-) submitted 3 | chiark flags 5 type 1 A(-) submitted 4 | news flags 1 type 1 A(-) submitted 5 | chiark flags 1 type 1 A(-) submitted 6 | news flags 5 type A(-): OK; nrrs=1; cname=davenant.relativity.greenend.org.uk; owner=news.davenant.greenend.org.uk; ttl=86400 7 | 172.18.45.6 8 | news flags 1 type A(-): OK; nrrs=1; cname=davenant.relativity.greenend.org.uk; owner=$; ttl=86400 9 | 172.18.45.6 10 | chiark flags 5 type A(-): OK; nrrs=1; cname=$; owner=chiark.greenend.org.uk; ttl=86400 11 | 195.224.76.132 12 | chiark flags 1 type A(-): OK; nrrs=1; cname=$; owner=$; ttl=86400 13 | 195.224.76.132 14 | rc=0 15 | -------------------------------------------------------------------------------- /regress/case-search.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-search.err -------------------------------------------------------------------------------- /regress/case-search.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | news flags 5 type 1 A(-) submitted 3 | chiark flags 5 type 1 A(-) submitted 4 | news flags 1 type 1 A(-) submitted 5 | chiark flags 1 type 1 A(-) submitted 6 | news flags 5 type A(-): OK; nrrs=1; cname=davenant.relativity.greenend.org.uk; owner=news.davenant.greenend.org.uk; ttl=86400 7 | 172.18.45.6 8 | chiark flags 5 type A(-): OK; nrrs=1; cname=$; owner=chiark.greenend.org.uk; ttl=86400 9 | 195.224.76.132 10 | news flags 1 type A(-): OK; nrrs=1; cname=davenant.relativity.greenend.org.uk; owner=$; ttl=86400 11 | 172.18.45.6 12 | chiark flags 1 type A(-): OK; nrrs=1; cname=$; owner=$; ttl=86400 13 | 195.224.76.132 14 | rc=0 15 | -------------------------------------------------------------------------------- /regress/case-searchabs.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-searchabs.err -------------------------------------------------------------------------------- /regress/case-searchabs.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | news.davenant flags 1 type 1 A(-) submitted 3 | news.davenant flags 1 type A(-): OK; nrrs=1; cname=davenant.relativity.greenend.org.uk; owner=$; ttl=584 4 | 172.18.45.6 5 | rc=0 6 | -------------------------------------------------------------------------------- /regress/case-searchabs.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 1/news.davenant 3 | start 924363451.882765 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000207 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000088 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000071 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 046e6577 73086461 76656e61 6e740000 010001. 15 | sendto=31 16 | +0.001846 17 | select max=5 rfds=[4] wfds=[] efds=[] to=1.998154 18 | select=1 rfds=[4] wfds=[] efds=[] 19 | +0.004592 20 | recvfrom fd=4 buflen=512 *addrlen=16 21 | recvfrom=OK addr=172.18.45.6:53 22 | 311f8583 00010000 00010000 046e6577 73086461 76656e61 6e740000 01000100 23 | 00060001 00000248 003e0141 0c524f4f 542d5345 52564552 53034e45 54000a68 24 | 6f73746d 61737465 7208494e 5445524e 4943c039 7726f440 00000708 00000384 25 | 00093a80 00015180. 26 | +0.000697 27 | sendto fd=4 addr=172.18.45.6:53 28 | 31200100 00010000 00000000 046e6577 73086461 76656e61 6e740864 6176656e 29 | 616e7408 67726565 6e656e64 036f7267 02756b00 00010001. 30 | sendto=56 31 | +0.001073 32 | recvfrom fd=4 buflen=512 *addrlen=16 33 | recvfrom=EAGAIN 34 | +0.000105 35 | select max=5 rfds=[4] wfds=[] efds=[] to=1.998125 36 | select=1 rfds=[4] wfds=[] efds=[] 37 | +0.003727 38 | recvfrom fd=4 buflen=512 *addrlen=16 39 | recvfrom=OK addr=172.18.45.6:53 40 | 31208583 00010000 00010000 046e6577 73086461 76656e61 6e740864 6176656e 41 | 616e7408 67726565 6e656e64 036f7267 02756b00 00010001 08677265 656e656e 42 | 64036f72 6702756b 00000600 01000151 80003704 646e7330 06656c6d 61696c02 43 | 636fc045 08726963 68617264 6b066368 6961726b c0387726 f0bf0000 70800000 44 | 1c200009 3a800001 5180. 45 | +0.000972 46 | sendto fd=4 addr=172.18.45.6:53 47 | 31210100 00010000 00000000 046e6577 73086461 76656e61 6e740867 7265656e 48 | 656e6403 6f726702 756b0000 010001. 49 | sendto=47 50 | +0.000965 51 | recvfrom fd=4 buflen=512 *addrlen=16 52 | recvfrom=EAGAIN 53 | +0.000105 54 | select max=5 rfds=[4] wfds=[] efds=[] to=1.997958 55 | select=1 rfds=[4] wfds=[] efds=[] 56 | +0.007222 57 | recvfrom fd=4 buflen=512 *addrlen=16 58 | recvfrom=OK addr=172.18.45.6:53 59 | 31218580 00010002 00030003 046e6577 73086461 76656e61 6e740867 7265656e 60 | 656e6403 6f726702 756b0000 010001c0 0c000500 01000151 80002508 64617665 61 | 6e616e74 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 02756b00 62 | c03b0001 00010001 51800004 ac122d06 c0440002 00010001 51800006 036e7330 63 | c044c044 00020001 00015180 0006036e 7331c044 c0440002 00010001 51800006 64 | 036e7332 c044c07c 00010001 00015180 0004ac12 2d06c08e 00010001 00015180 65 | 0004ac12 2d41c0a0 00010001 00015180 0004ac12 2d01. 66 | +0.001124 67 | recvfrom fd=4 buflen=512 *addrlen=16 68 | recvfrom=EAGAIN 69 | +0.000295 70 | close fd=4 71 | close=OK 72 | +0.000221 73 | -------------------------------------------------------------------------------- /regress/case-sillyrp.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-sillyrp.err -------------------------------------------------------------------------------- /regress/case-sillyrp.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | silly-rp-dm.test.iwj.relativity.greenend.org.uk flags 112 type 17 RP(raw) submitted 3 | silly-rp-dm.test.iwj.relativity.greenend.org.uk flags 112 type 131089 RP(822) submitted 4 | silly-rp-lp.test.iwj.relativity.greenend.org.uk flags 112 type 17 RP(raw) submitted 5 | silly-rp-lp.test.iwj.relativity.greenend.org.uk flags 112 type 131089 RP(822) submitted 6 | silly-rp-lp.test.iwj.relativity.greenend.org.uk flags 0 type 17 RP(raw) submitted 7 | silly-rp-lp.test.iwj.relativity.greenend.org.uk flags 0 type 131089 RP(822) submitted 8 | silly-rp-dm.test.iwj.relativity.greenend.org.uk flags 0 type 17 RP(raw) submitted 9 | silly-rp-dm.test.iwj.relativity.greenend.org.uk flags 0 type 131089 RP(822) submitted 10 | silly-rp-dm.test.iwj.relativity.greenend.org.uk flags 112 type RP(raw): OK; nrrs=1; cname=$; owner=$; ttl=60 11 | i\..root\000null.org . 12 | silly-rp-dm.test.iwj.relativity.greenend.org.uk flags 112 type RP(822): Found syntactically invalid domain name; nrrs=0; cname=$; owner=$; ttl=60 13 | silly-rp-lp.test.iwj.relativity.greenend.org.uk flags 112 type RP(raw): OK; nrrs=1; cname=$; owner=$; ttl=60 14 | spong\000flibble.ucam.org . 15 | silly-rp-lp.test.iwj.relativity.greenend.org.uk flags 112 type RP(822): Found invalid DNS data; nrrs=0; cname=$; owner=$; ttl=60 16 | silly-rp-lp.test.iwj.relativity.greenend.org.uk flags 0 type RP(raw): OK; nrrs=1; cname=$; owner=$; ttl=60 17 | spong\000flibble.ucam.org . 18 | silly-rp-lp.test.iwj.relativity.greenend.org.uk flags 0 type RP(822): Found invalid DNS data; nrrs=0; cname=$; owner=$; ttl=60 19 | silly-rp-dm.test.iwj.relativity.greenend.org.uk flags 0 type RP(raw): OK; nrrs=1; cname=$; owner=$; ttl=60 20 | i\..root\000null.org . 21 | silly-rp-dm.test.iwj.relativity.greenend.org.uk flags 0 type RP(822): Found syntactically invalid domain name; nrrs=0; cname=$; owner=$; ttl=60 22 | rc=0 23 | -------------------------------------------------------------------------------- /regress/case-srvbaddom.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | Error during DNS SRV lookup for srv.tcp.test.iwj.relativity.greenend.org.uk: Domain name is syntactically invalid 3 | Error during DNS SRV lookup for spong: Domain name is syntactically invalid 4 | _foo._bar does not exist 5 | _s*a._tcp.ucam.org does not exist 6 | Error during DNS SRV lookup for _s*a._tcp.pi&ckle.ucam.org: Domain name is syntactically invalid 7 | -------------------------------------------------------------------------------- /regress/case-srvbaddom.out: -------------------------------------------------------------------------------- 1 | rc=6 2 | -------------------------------------------------------------------------------- /regress/case-srvbaddom.sys: -------------------------------------------------------------------------------- 1 | ./adnshost default 2 | -t srv- srv.tcp.test.iwj.relativity.greenend.org.uk. spong. _foo._bar. _s*a._tcp.ucam.org. _s*a._tcp.pi&ckle.ucam.org 3 | start 1144349027.926430 4 | socket type=SOCK_DGRAM 5 | socket=6 6 | +0.000082 7 | fcntl fd=6 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000049 10 | fcntl fd=6 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000041 13 | sendto fd=6 addr=172.18.45.6:53 14 | 31210100 00010000 00000000 045f666f 6f045f62 61720000 210001. 15 | sendto=27 16 | +0.000326 17 | sendto fd=6 addr=172.18.45.6:53 18 | 31220100 00010000 00000000 045f732a 61045f74 63700475 63616d03 6f726700 19 | 00210001. 20 | sendto=36 21 | +0.000227 22 | select max=7 rfds=[6] wfds=[] efds=[] to=1.999447 23 | select=1 rfds=[6] wfds=[] efds=[] 24 | +0.004565 25 | recvfrom fd=6 buflen=512 *addrlen=16 26 | recvfrom=OK addr=172.18.45.6:53 27 | 31218183 00010000 00010000 045f666f 6f045f62 61720000 21000100 00060001 28 | 000029fb 00400141 0c524f4f 542d5345 52564552 53034e45 5400054e 53544c44 29 | 0c564552 49534947 4e2d4752 5303434f 4d007791 bfb50000 07080000 03840009 30 | 3a800001 5180. 31 | +0.000212 32 | recvfrom fd=6 buflen=512 *addrlen=16 33 | recvfrom=EAGAIN 34 | +0.000070 35 | select max=7 rfds=[6] wfds=[] efds=[] to=1.994926 36 | select=1 rfds=[6] wfds=[] efds=[] 37 | +0.002158 38 | recvfrom fd=6 buflen=512 *addrlen=16 39 | recvfrom=OK addr=172.18.45.6:53 40 | 31228183 00010000 00010000 045f732a 61045f74 63700475 63616d03 6f726700 41 | 00210001 c0160006 00010000 0df5004c 0a736f61 2d6f7269 67696e02 6e730663 42 | 68696172 6b086772 65656e65 6e64036f 72670275 6b000f73 74756465 6e742d72 43 | 756e2d64 6e73c03e 00000121 00002a30 00000e10 00093a80 00000e10. 44 | +0.000198 45 | recvfrom fd=6 buflen=512 *addrlen=16 46 | recvfrom=EAGAIN 47 | +0.000062 48 | close fd=6 49 | close=OK 50 | +0.000091 51 | -------------------------------------------------------------------------------- /regress/case-srvha.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | -------------------------------------------------------------------------------- /regress/case-srvha.out: -------------------------------------------------------------------------------- 1 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 10 66 10066 davenant.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.6 ) 2 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 200 20200 norway.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.40 ) 3 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 400 20400 anarres.relativity.greenend.org.uk ok 0 ok "OK" ( INET 172.18.45.2 ) 4 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 100 20100 nxdomain.relativity.greenend.org.uk permfail 300 nxdomain "No such domain" ( ) 5 | _jabber._tcp.jabber.org SRV 30 30 5269 jabber.org ok 0 ok "OK" ( INET 208.245.212.98 ) 6 | _sip._udp.voip.net.cam.ac.uk SRV 10 1 5060 sip.voip.net.cam.ac.uk ok 0 ok "OK" ( INET 131.111.8.174 ) 7 | rc=0 8 | -------------------------------------------------------------------------------- /regress/case-srvok.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | -------------------------------------------------------------------------------- /regress/case-srvok.out: -------------------------------------------------------------------------------- 1 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 10 66 10066 davenant.relativity.greenend.org.uk 2 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 200 20200 norway.relativity.greenend.org.uk 3 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 400 20400 anarres.relativity.greenend.org.uk 4 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 100 20100 nxdomain.relativity.greenend.org.uk 5 | _jabber._tcp.jabber.org SRV 30 30 5269 jabber.org 6 | _sip._udp.voip.net.cam.ac.uk SRV 10 1 5060 sip.voip.net.cam.ac.uk 7 | rc=0 8 | -------------------------------------------------------------------------------- /regress/case-srvqudom.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | srv.tcp.test.iwj.relativity.greenend.org.uk does not exist 3 | spong does not exist 4 | _foo._bar does not exist 5 | _s*a._tcp.ucam.org does not exist 6 | _s*a._tcp.pi&ckle.ucam.org does not exist 7 | -------------------------------------------------------------------------------- /regress/case-srvqudom.out: -------------------------------------------------------------------------------- 1 | rc=6 2 | -------------------------------------------------------------------------------- /regress/case-srvsort.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | -------------------------------------------------------------------------------- /regress/case-srvsort.out: -------------------------------------------------------------------------------- 1 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 10 66 10066 davenant.relativity.greenend.org.uk 2 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 400 20400 anarres.relativity.greenend.org.uk 3 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 200 20200 norway.relativity.greenend.org.uk 4 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 100 20100 nxdomain.relativity.greenend.org.uk 5 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 10 66 10066 davenant.relativity.greenend.org.uk 6 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 400 20400 anarres.relativity.greenend.org.uk 7 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 100 20100 nxdomain.relativity.greenend.org.uk 8 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 200 20200 norway.relativity.greenend.org.uk 9 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 10 66 10066 davenant.relativity.greenend.org.uk 10 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 400 20400 anarres.relativity.greenend.org.uk 11 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 200 20200 norway.relativity.greenend.org.uk 12 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 100 20100 nxdomain.relativity.greenend.org.uk 13 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 10 66 10066 davenant.relativity.greenend.org.uk 14 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 200 20200 norway.relativity.greenend.org.uk 15 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 400 20400 anarres.relativity.greenend.org.uk 16 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 100 20100 nxdomain.relativity.greenend.org.uk 17 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 10 66 10066 davenant.relativity.greenend.org.uk 18 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 200 20200 norway.relativity.greenend.org.uk 19 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 400 20400 anarres.relativity.greenend.org.uk 20 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 100 20100 nxdomain.relativity.greenend.org.uk 21 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 10 66 10066 davenant.relativity.greenend.org.uk 22 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 400 20400 anarres.relativity.greenend.org.uk 23 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 100 20100 nxdomain.relativity.greenend.org.uk 24 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 200 20200 norway.relativity.greenend.org.uk 25 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 10 66 10066 davenant.relativity.greenend.org.uk 26 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 100 20100 nxdomain.relativity.greenend.org.uk 27 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 200 20200 norway.relativity.greenend.org.uk 28 | _srv._tcp.test.iwj.relativity.greenend.org.uk SRV 20 400 20400 anarres.relativity.greenend.org.uk 29 | rc=0 30 | -------------------------------------------------------------------------------- /regress/case-tcpallfail.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-tcpallfail.err -------------------------------------------------------------------------------- /regress/case-tcpallfail.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.2 2 | test.iwj.relativity.greenend.org.uk. flags 2 type 1 A(-) submitted 3 | test.iwj.relativity.greenend.org.uk. flags 2 type 2 NS(raw) submitted 4 | test.iwj.relativity.greenend.org.uk. flags 2 type 5 CNAME(-) submitted 5 | test.iwj.relativity.greenend.org.uk. flags 2 type 6 SOA(raw) submitted 6 | test.iwj.relativity.greenend.org.uk. flags 2 type 12 PTR(raw) submitted 7 | test.iwj.relativity.greenend.org.uk. flags 2 type 13 HINFO(-) submitted 8 | test.iwj.relativity.greenend.org.uk. flags 2 type 15 MX(raw) submitted 9 | test.iwj.relativity.greenend.org.uk. flags 2 type 16 TXT(-) submitted 10 | test.iwj.relativity.greenend.org.uk. flags 2 type 17 RP(raw) submitted 11 | test.iwj.relativity.greenend.org.uk. flags 2 type 65537 A(addr) submitted 12 | test.iwj.relativity.greenend.org.uk. flags 2 type 65538 NS(+addr) submitted 13 | test.iwj.relativity.greenend.org.uk. flags 2 type 65548 PTR(checked) submitted 14 | test.iwj.relativity.greenend.org.uk. flags 2 type 65551 MX(+addr) submitted 15 | test.iwj.relativity.greenend.org.uk. flags 2 type 131078 SOA(822) submitted 16 | test.iwj.relativity.greenend.org.uk. flags 2 type 131089 RP(822) submitted 17 | adns warning: TCP connection failed: connect/read: Connection refused (NS=172.18.45.2) 18 | adns warning: TCP connection failed: connect/read: Connection refused (NS=172.18.45.2) 19 | test.iwj.relativity.greenend.org.uk. flags 2 type A(-): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 20 | test.iwj.relativity.greenend.org.uk. flags 2 type NS(raw): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 21 | test.iwj.relativity.greenend.org.uk. flags 2 type CNAME(-): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 22 | test.iwj.relativity.greenend.org.uk. flags 2 type SOA(raw): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 23 | test.iwj.relativity.greenend.org.uk. flags 2 type PTR(raw): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 24 | test.iwj.relativity.greenend.org.uk. flags 2 type HINFO(-): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 25 | test.iwj.relativity.greenend.org.uk. flags 2 type MX(raw): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 26 | test.iwj.relativity.greenend.org.uk. flags 2 type TXT(-): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 27 | test.iwj.relativity.greenend.org.uk. flags 2 type RP(raw): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 28 | test.iwj.relativity.greenend.org.uk. flags 2 type A(addr): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 29 | test.iwj.relativity.greenend.org.uk. flags 2 type NS(+addr): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 30 | test.iwj.relativity.greenend.org.uk. flags 2 type PTR(checked): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 31 | test.iwj.relativity.greenend.org.uk. flags 2 type MX(+addr): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 32 | test.iwj.relativity.greenend.org.uk. flags 2 type SOA(822): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 33 | test.iwj.relativity.greenend.org.uk. flags 2 type RP(822): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604800 34 | rc=0 35 | -------------------------------------------------------------------------------- /regress/case-tcpallfail.sys: -------------------------------------------------------------------------------- 1 | adnstest anarres 2 | 2/test.iwj.relativity.greenend.org.uk. 3 | start 962142174.403028 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000120 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000053 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000034 13 | socket type=SOCK_STREAM 14 | socket=5 15 | +0.000479 16 | fcntl fd=5 cmd=F_GETFL 17 | fcntl=~O_NONBLOCK&... 18 | +0.000036 19 | fcntl fd=5 cmd=F_SETFL O_NONBLOCK|... 20 | fcntl=OK 21 | +0.000031 22 | connect fd=5 addr=172.18.45.2:53 23 | connect=EINPROGRESS 24 | +0.000182 25 | select max=6 rfds=[4] wfds=[5] efds=[] to=13.999272 26 | select=1 rfds=[] wfds=[5] efds=[] 27 | +0.000862 28 | read fd=5 buflen=1 29 | read=ECONNREFUSED 30 | +0.000087 31 | close fd=5 32 | close=OK 33 | +0.000109 34 | select max=5 rfds=[4] wfds=[] efds=[] to=0.000000 35 | select=0 rfds=[] wfds=[] efds=[] 36 | +0.000103 37 | socket type=SOCK_STREAM 38 | socket=5 39 | +0.000392 40 | fcntl fd=5 cmd=F_GETFL 41 | fcntl=~O_NONBLOCK&... 42 | +0.000037 43 | fcntl fd=5 cmd=F_SETFL O_NONBLOCK|... 44 | fcntl=OK 45 | +0.000030 46 | connect fd=5 addr=172.18.45.2:53 47 | connect=EINPROGRESS 48 | +0.000127 49 | select max=6 rfds=[4] wfds=[5] efds=[] to=13.999414 50 | select=1 rfds=[] wfds=[5] efds=[] 51 | +0.000339 52 | read fd=5 buflen=1 53 | read=ECONNREFUSED 54 | +0.000075 55 | close fd=5 56 | close=OK 57 | +0.000084 58 | select max=5 rfds=[4] wfds=[] efds=[] to=0.000000 59 | select=0 rfds=[] wfds=[] efds=[] 60 | +0.000098 61 | close fd=4 62 | close=OK 63 | +0.000879 64 | -------------------------------------------------------------------------------- /regress/case-tcpblock.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-tcpblock.err -------------------------------------------------------------------------------- /regress/case-tcpblock.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.2 2 | test.iwj.relativity.greenend.org.uk. flags 2 type 1 A(-) submitted 3 | test.iwj.relativity.greenend.org.uk. flags 2 type 2 NS(raw) submitted 4 | test.iwj.relativity.greenend.org.uk. flags 2 type 5 CNAME(-) submitted 5 | test.iwj.relativity.greenend.org.uk. flags 2 type 6 SOA(raw) submitted 6 | test.iwj.relativity.greenend.org.uk. flags 2 type 12 PTR(raw) submitted 7 | test.iwj.relativity.greenend.org.uk. flags 2 type 13 HINFO(-) submitted 8 | test.iwj.relativity.greenend.org.uk. flags 2 type 15 MX(raw) submitted 9 | test.iwj.relativity.greenend.org.uk. flags 2 type 16 TXT(-) submitted 10 | test.iwj.relativity.greenend.org.uk. flags 2 type 17 RP(raw) submitted 11 | test.iwj.relativity.greenend.org.uk. flags 2 type 65537 A(addr) submitted 12 | test.iwj.relativity.greenend.org.uk. flags 2 type 65538 NS(+addr) submitted 13 | test.iwj.relativity.greenend.org.uk. flags 2 type 65548 PTR(checked) submitted 14 | test.iwj.relativity.greenend.org.uk. flags 2 type 65551 MX(+addr) submitted 15 | test.iwj.relativity.greenend.org.uk. flags 2 type 131078 SOA(822) submitted 16 | test.iwj.relativity.greenend.org.uk. flags 2 type 131089 RP(822) submitted 17 | adns debug: TCP connected (NS=172.18.45.2) 18 | test.iwj.relativity.greenend.org.uk. flags 2 type A(-): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 19 | test.iwj.relativity.greenend.org.uk. flags 2 type NS(raw): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 20 | test.iwj.relativity.greenend.org.uk. flags 2 type CNAME(-): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 21 | test.iwj.relativity.greenend.org.uk. flags 2 type SOA(raw): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 22 | test.iwj.relativity.greenend.org.uk. flags 2 type PTR(raw): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 23 | test.iwj.relativity.greenend.org.uk. flags 2 type HINFO(-): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 24 | test.iwj.relativity.greenend.org.uk. flags 2 type MX(raw): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 25 | test.iwj.relativity.greenend.org.uk. flags 2 type TXT(-): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 26 | test.iwj.relativity.greenend.org.uk. flags 2 type RP(raw): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 27 | test.iwj.relativity.greenend.org.uk. flags 2 type A(addr): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 28 | test.iwj.relativity.greenend.org.uk. flags 2 type NS(+addr): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 29 | test.iwj.relativity.greenend.org.uk. flags 2 type PTR(checked): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 30 | test.iwj.relativity.greenend.org.uk. flags 2 type MX(+addr): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 31 | test.iwj.relativity.greenend.org.uk. flags 2 type SOA(822): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 32 | test.iwj.relativity.greenend.org.uk. flags 2 type RP(822): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 33 | rc=0 34 | -------------------------------------------------------------------------------- /regress/case-tcpblockbrk.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-tcpblockbrk.err -------------------------------------------------------------------------------- /regress/case-tcpblockbrk.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.2 2 | test.iwj.relativity.greenend.org.uk. flags 2 type 1 A(-) submitted 3 | test.iwj.relativity.greenend.org.uk. flags 2 type 2 NS(raw) submitted 4 | test.iwj.relativity.greenend.org.uk. flags 2 type 5 CNAME(-) submitted 5 | test.iwj.relativity.greenend.org.uk. flags 2 type 6 SOA(raw) submitted 6 | test.iwj.relativity.greenend.org.uk. flags 2 type 12 PTR(raw) submitted 7 | test.iwj.relativity.greenend.org.uk. flags 2 type 13 HINFO(-) submitted 8 | test.iwj.relativity.greenend.org.uk. flags 2 type 15 MX(raw) submitted 9 | test.iwj.relativity.greenend.org.uk. flags 2 type 16 TXT(-) submitted 10 | test.iwj.relativity.greenend.org.uk. flags 2 type 17 RP(raw) submitted 11 | test.iwj.relativity.greenend.org.uk. flags 2 type 65537 A(addr) submitted 12 | test.iwj.relativity.greenend.org.uk. flags 2 type 65538 NS(+addr) submitted 13 | test.iwj.relativity.greenend.org.uk. flags 2 type 65548 PTR(checked) submitted 14 | test.iwj.relativity.greenend.org.uk. flags 2 type 65551 MX(+addr) submitted 15 | test.iwj.relativity.greenend.org.uk. flags 2 type 131078 SOA(822) submitted 16 | test.iwj.relativity.greenend.org.uk. flags 2 type 131089 RP(822) submitted 17 | adns debug: TCP connected (NS=172.18.45.2) 18 | adns warning: TCP connection failed: read: Connection reset by peer (NS=172.18.45.2) 19 | adns warning: TCP connection failed: connect/read: Connection refused (NS=172.18.45.2) 20 | test.iwj.relativity.greenend.org.uk. flags 2 type A(-): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 21 | test.iwj.relativity.greenend.org.uk. flags 2 type NS(raw): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 22 | test.iwj.relativity.greenend.org.uk. flags 2 type CNAME(-): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 23 | test.iwj.relativity.greenend.org.uk. flags 2 type SOA(raw): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 24 | test.iwj.relativity.greenend.org.uk. flags 2 type PTR(raw): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 25 | test.iwj.relativity.greenend.org.uk. flags 2 type HINFO(-): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 26 | test.iwj.relativity.greenend.org.uk. flags 2 type MX(raw): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 27 | test.iwj.relativity.greenend.org.uk. flags 2 type TXT(-): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 28 | test.iwj.relativity.greenend.org.uk. flags 2 type RP(raw): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 29 | test.iwj.relativity.greenend.org.uk. flags 2 type A(addr): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 30 | test.iwj.relativity.greenend.org.uk. flags 2 type NS(+addr): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 31 | test.iwj.relativity.greenend.org.uk. flags 2 type PTR(checked): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 32 | test.iwj.relativity.greenend.org.uk. flags 2 type MX(+addr): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 33 | test.iwj.relativity.greenend.org.uk. flags 2 type SOA(822): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 34 | test.iwj.relativity.greenend.org.uk. flags 2 type RP(822): All nameservers failed; nrrs=0; cname=$; owner=$; ttl=604798 35 | rc=0 36 | -------------------------------------------------------------------------------- /regress/case-tcpblockwr.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-tcpblockwr.err -------------------------------------------------------------------------------- /regress/case-tcpbreakin.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-tcpbreakin.err -------------------------------------------------------------------------------- /regress/case-tcpbreakin.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 6.45.18.172.in-addr.arpa flags 2 type 65548 PTR(checked) submitted 3 | adns debug: TCP connected (NS=172.18.45.6) 4 | adns warning: TCP connection failed: write: Broken pipe (NS=172.18.45.6) 5 | adns debug: TCP connected (NS=172.18.45.6) 6 | 6.45.18.172.in-addr.arpa flags 2 type PTR(checked): OK; nrrs=1; cname=$; owner=$; ttl=86400 7 | davenant.relativity.greenend.org.uk 8 | rc=0 9 | -------------------------------------------------------------------------------- /regress/case-tcpmultipart.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-tcpmultipart.err -------------------------------------------------------------------------------- /regress/case-tcpptr.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-tcpptr.err -------------------------------------------------------------------------------- /regress/case-tcpptr.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | 6.45.18.172.in-addr.arpa flags 2 type 65548 PTR(checked) submitted 3 | adns debug: TCP connected (NS=172.18.45.6) 4 | 6.45.18.172.in-addr.arpa flags 2 type PTR(checked): OK; nrrs=1; cname=$; owner=$; ttl=86400 5 | davenant.relativity.greenend.org.uk 6 | rc=0 7 | -------------------------------------------------------------------------------- /regress/case-tcpptr.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :65548 2/6.45.18.172.in-addr.arpa 3 | start 957718868.938329 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000161 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000059 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000038 13 | socket type=SOCK_STREAM 14 | socket=5 15 | +0.001056 16 | fcntl fd=5 cmd=F_GETFL 17 | fcntl=~O_NONBLOCK&... 18 | +0.000238 19 | fcntl fd=5 cmd=F_SETFL O_NONBLOCK|... 20 | fcntl=OK 21 | +0.000055 22 | connect fd=5 addr=172.18.45.6:53 23 | connect=EINPROGRESS 24 | +0.000723 25 | select max=6 rfds=[4] wfds=[5] efds=[] to=13.997928 26 | select=1 rfds=[] wfds=[5] efds=[] 27 | +0.000536 28 | read fd=5 buflen=1 29 | read=EAGAIN 30 | +0.000118 31 | write fd=5 32 | 002a311f 01000001 00000000 00000136 02343502 31380331 37320769 6e2d6164 33 | 64720461 72706100 000c0001. 34 | write=44 35 | +0.001433 36 | select max=6 rfds=[4,5] wfds=[] efds=[5] to=29.995841 37 | select=1 rfds=[5] wfds=[] efds=[] 38 | +0.000260 39 | read fd=5 buflen=2 40 | read=OK 41 | 00d7. 42 | +0.000302 43 | read fd=5 buflen=215 44 | read=OK 45 | 311f8580 00010001 00030003 01360234 35023138 03313732 07696e2d 61646472 46 | 04617270 6100000c 0001c00c 000c0001 00015180 00250864 6176656e 616e740a 47 | 72656c61 74697669 74790867 7265656e 656e6403 6f726702 756b0002 34350231 48 | 38033137 3207696e 2d616464 72046172 70610000 02000100 01518000 06036e73 49 | 30c03fc0 5b000200 01000151 80000603 6e7331c0 3fc05b00 02000100 01518000 50 | 06036e73 32c03fc0 7d000100 01000151 800004ac 122d06c0 8f000100 01000151 51 | 800004ac 122d41c0 a1000100 01000151 800004ac 122d01. 52 | +0.001364 53 | sendto fd=4 addr=172.18.45.6:53 54 | 31200100 00010000 00000000 08646176 656e616e 740a7265 6c617469 76697479 55 | 08677265 656e656e 64036f72 6702756b 00000100 01. 56 | sendto=EMSGSIZE 57 | +0.000001 58 | write fd=5 59 | 00353120 01000001 00000000 00000864 6176656e 616e740a 72656c61 74697669 60 | 74790867 7265656e 656e6403 6f726702 756b0000 010001. 61 | write=53 62 | +0.001233 63 | read fd=5 buflen=217 64 | read=EAGAIN 65 | +0.000100 66 | select max=6 rfds=[4,5] wfds=[5] efds=[5] to=29.997000 67 | select=1 rfds=[5] wfds=[] efds=[] 68 | +0.000118 69 | read fd=5 buflen=217 70 | read=OK 71 | 00c5 72 | 31208580 00010001 00030003 08646176 656e616e 740a7265 6c617469 76697479 73 | 08677265 656e656e 64036f72 6702756b 00000100 01c00c00 01000100 01518000 74 | 04ac122d 060a7265 6c617469 76697479 08677265 656e656e 64036f72 6702756b 75 | 00000200 01000151 80000603 6e7330c0 45c04500 02000100 01518000 06036e73 76 | 31c045c0 45000200 01000151 80000603 6e7332c0 45c06b00 01000100 01518000 77 | 04ac122d 06c07d00 01000100 01518000 04ac122d 41c08f00 01000100 01518000 78 | 04ac122d 01. 79 | +0.001171 80 | read fd=5 buflen=217 81 | read=EAGAIN 82 | +0.000189 83 | close fd=4 84 | close=OK 85 | +0.000352 86 | close fd=5 87 | close=OK 88 | +0.000507 89 | -------------------------------------------------------------------------------- /regress/case-timeout.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-timeout.err -------------------------------------------------------------------------------- /regress/case-timeout.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.36 2 | chiark.greenend.org.uk flags 0 type 1 A(-) submitted 3 | chiark.greenend.org.uk flags 0 type A(-): DNS query timed out; nrrs=0; cname=$; owner=$; ttl=604770 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-trunc.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-trunc.err -------------------------------------------------------------------------------- /regress/case-trunc.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | trunc.test.iwj.relativity.greenend.org.uk flags 0 type 1 A(-) submitted 3 | trunc.test.iwj.relativity.greenend.org.uk flags 0 type A(-): No such data; nrrs=0; cname=$; owner=$; ttl=60 4 | rc=0 5 | -------------------------------------------------------------------------------- /regress/case-trunc.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :1 trunc.test.iwj.relativity.greenend.org.uk 3 | start 912888921.274801 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000207 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000321 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000443 13 | sendto fd=4 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 05747275 6e630474 65737403 69776a0a 72656c61 15 | 74697669 74790867 7265656e 656e6403 6f726702 756b0000 010001. 16 | sendto=59 17 | +0.000682 18 | select max=5 rfds=[4] wfds=[] efds=[] to=1.999318 19 | select=1 rfds=[4] wfds=[] efds=[] 20 | +0.006406 21 | recvfrom fd=4 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8580 00010000 00010000 05747275 6e630474 65737403 69776a0a 72656c61 24 | 74697669 74790867 7265656e 656e6403 6f726702 756b0000 01000104 74657374 25 | 0369776a 0a72656c 61746976 69747908 67726565 6e656e64 036f7267 02756b00 26 | 00060001 0000003c 0027036e 7330c044 0a686f73 746d6173 746572c0 44000000 27 | 0e00000e 10000000 780064c8 00000000 3c. 28 | +0.000839 29 | recvfrom fd=4 buflen=512 *addrlen=16 30 | recvfrom=EAGAIN 31 | +0.000141 32 | close fd=4 33 | close=OK 34 | +0.000157 35 | -------------------------------------------------------------------------------- /regress/case-unknown2.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | -------------------------------------------------------------------------------- /regress/case-unknown2.out: -------------------------------------------------------------------------------- 1 | ucam.org TYPE2 \# 12 06636869 61726b02 6e73c01a 2 | ucam.org TYPE2 \# 11 08636869 6d616572 61 c0 35 3 | ucam.org TYPE2 \# 8 05726170 756ec035 4 | ucam.org TYPE2 \# 9 06626563 6b6574c0 35 5 | rc=0 6 | -------------------------------------------------------------------------------- /regress/case-unknown2.sys: -------------------------------------------------------------------------------- 1 | ./adnshost default 2 | -t type2 -Qq ucam.org. 3 | start 1144369677.011111 4 | socket type=SOCK_DGRAM 5 | socket=6 6 | +0.000083 7 | fcntl fd=6 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000049 10 | fcntl fd=6 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000043 13 | sendto fd=6 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 04756361 6d036f72 67000002 0001. 15 | sendto=26 16 | +0.000308 17 | select max=7 rfds=[6] wfds=[] efds=[] to=1.999692 18 | select=0 rfds=[] wfds=[] efds=[] 19 | +2.-00406 20 | select max=7 rfds=[6] wfds=[] efds=[] to=0.000098 21 | select=0 rfds=[] wfds=[] efds=[] 22 | +0.000987 23 | sendto fd=6 addr=172.18.45.6:53 24 | 311f0100 00010000 00000000 04756361 6d036f72 67000002 0001. 25 | sendto=26 26 | +0.000244 27 | select max=7 rfds=[6] wfds=[] efds=[] to=1.999756 28 | select=0 rfds=[] wfds=[] efds=[] 29 | +2.-00531 30 | select max=7 rfds=[6] wfds=[] efds=[] to=0.000287 31 | select=0 rfds=[] wfds=[] efds=[] 32 | +0.000988 33 | sendto fd=6 addr=172.18.45.6:53 34 | 311f0100 00010000 00000000 04756361 6d036f72 67000002 0001. 35 | sendto=26 36 | +0.000252 37 | select max=7 rfds=[6] wfds=[] efds=[] to=1.999748 38 | select=0 rfds=[] wfds=[] efds=[] 39 | +2.-00540 40 | select max=7 rfds=[6] wfds=[] efds=[] to=0.000288 41 | select=0 rfds=[] wfds=[] efds=[] 42 | +0.000989 43 | sendto fd=6 addr=172.18.45.6:53 44 | 311f0100 00010000 00000000 04756361 6d036f72 67000002 0001. 45 | sendto=26 46 | +0.000237 47 | select max=7 rfds=[6] wfds=[] efds=[] to=1.999763 48 | select=1 rfds=[6] wfds=[] efds=[] 49 | +1.961402 50 | recvfrom fd=6 buflen=512 *addrlen=16 51 | recvfrom=OK addr=172.18.45.6:53 52 | 311f8180 00010004 00040004 04756361 6d036f72 67000002 00010475 63616d03 53 | 6f726700 00020001 00054600 000c0663 68696172 6b026e73 c01ac01a 00020001 54 | 00054600 000b0863 68696d61 657261c0 35c01a00 02000100 05460000 08057261 55 | 70756ec0 35c01a00 02000100 05460000 09066265 636b6574 c035c01a 00020001 56 | 00054600 0002c02e c01a0002 00010005 46000002 c046c01a 00020001 00054600 57 | 0002c05d c01a0002 00010005 46000002 c071c02e 00010001 0001517c 0004c1c9 58 | c8aac046 00010001 0001517c 0004836f 082ac05d 00010001 0001517c 0004836f 59 | e86cc071 00010001 0001517c 0004cd86 e6ba. 60 | +0.000366 61 | recvfrom fd=6 buflen=512 *addrlen=16 62 | recvfrom=EAGAIN 63 | +0.000089 64 | close fd=6 65 | close=OK 66 | +0.000187 67 | -------------------------------------------------------------------------------- /regress/case-unknown33.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | -------------------------------------------------------------------------------- /regress/case-unknown33.out: -------------------------------------------------------------------------------- 1 | _jabber._tcp.jabber.org TYPE33 \# 18 001e001e 1495066a 61626265 72036f72 67 00 2 | rc=0 3 | -------------------------------------------------------------------------------- /regress/case-unknown33.sys: -------------------------------------------------------------------------------- 1 | ./adnshost default 2 | -t type33 -Qq _jabber._tcp.jabber.org 3 | start 1144369693.043661 4 | socket type=SOCK_DGRAM 5 | socket=6 6 | +0.000080 7 | fcntl fd=6 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000045 10 | fcntl fd=6 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000040 13 | sendto fd=6 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 075f6a61 62626572 045f7463 70066a61 62626572 15 | 036f7267 00002100 01. 16 | sendto=41 17 | +0.000316 18 | select max=7 rfds=[6] wfds=[] efds=[] to=1.999684 19 | select=1 rfds=[6] wfds=[] efds=[] 20 | +0.004580 21 | recvfrom fd=6 buflen=512 *addrlen=16 22 | recvfrom=OK addr=172.18.45.6:53 23 | 311f8180 00010001 00040005 075f6a61 62626572 045f7463 70066a61 62626572 24 | 036f7267 00002100 01c00c00 21000100 00031b00 12001e00 1e149506 6a616262 25 | 6572036f 726700c0 19000200 01000018 33001103 6e733107 6a657265 6d696503 26 | 636f6d00 c0190002 00010000 18330006 036e7332 c057c019 00020001 00001833 27 | 000c036e 73310562 6c616872 c05fc019 00020001 00001833 0010026e 73076f62 28 | 656c6973 6b036e65 7400c019 00010001 00000102 0004d0f5 d462c053 00010001 29 | 00029f11 0004d0f5 d41dc070 00010001 00029f11 0004d0f5 d41ec082 00010001 30 | 00029f13 00044051 6774c09a 00010001 00029f1d 00044761 e072. 31 | +0.000369 32 | recvfrom fd=6 buflen=512 *addrlen=16 33 | recvfrom=EAGAIN 34 | +0.000082 35 | close fd=6 36 | close=OK 37 | +0.002395 38 | -------------------------------------------------------------------------------- /regress/case-unknown5.err: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | -------------------------------------------------------------------------------- /regress/case-unknown5.out: -------------------------------------------------------------------------------- 1 | pop.chiark.greenend.org.uk TYPE5 \# 15 0c736572 76696365 2d6e616d 65 c0 10 2 | rc=0 3 | -------------------------------------------------------------------------------- /regress/case-unknown5.sys: -------------------------------------------------------------------------------- 1 | ./adnshost default 2 | -t type5 pop.chiark.greenend.org.uk 3 | start 1144369700.944069 4 | socket type=SOCK_DGRAM 5 | socket=6 6 | +0.000074 7 | fcntl fd=6 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000048 10 | fcntl fd=6 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000040 13 | sendto fd=6 addr=172.18.45.6:53 14 | 311f0100 00010000 00000000 03706f70 06636869 61726b08 67726565 6e656e64 15 | 036f7267 02756b00 00050001. 16 | sendto=44 17 | +0.000311 18 | select max=7 rfds=[6] wfds=[] efds=[] to=1.999689 19 | select=0 rfds=[] wfds=[] efds=[] 20 | +2.-00919 21 | select max=7 rfds=[6] wfds=[] efds=[] to=0.000608 22 | select=0 rfds=[] wfds=[] efds=[] 23 | +0.000988 24 | sendto fd=6 addr=172.18.45.6:53 25 | 311f0100 00010000 00000000 03706f70 06636869 61726b08 67726565 6e656e64 26 | 036f7267 02756b00 00050001. 27 | sendto=44 28 | +0.000264 29 | select max=7 rfds=[6] wfds=[] efds=[] to=1.999736 30 | select=1 rfds=[6] wfds=[] efds=[] 31 | +0.004660 32 | recvfrom fd=6 buflen=512 *addrlen=16 33 | recvfrom=OK addr=172.18.45.6:53 34 | 311f8580 00010001 00020002 03706f70 06636869 61726b08 67726565 6e656e64 35 | 036f7267 02756b00 00050001 c00c0005 00010001 5180000f 0c736572 76696365 36 | 2d6e616d 65c010c0 17000200 01000151 80001103 6e73300a 72656c61 74697669 37 | 7479c017 c0170002 00010001 51800006 036e7331 c057c053 00010001 00015180 38 | 0004ac12 2d06c070 00010001 00015180 0004ac12 2d0b. 39 | +0.000242 40 | recvfrom fd=6 buflen=512 *addrlen=16 41 | recvfrom=EAGAIN 42 | +0.000074 43 | close fd=6 44 | close=OK 45 | +0.000144 46 | -------------------------------------------------------------------------------- /regress/case-unknownq.err: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lucab/adns/6f29c34f6d31cc84c46277ec1d2f6cd95d19973b/regress/case-unknownq.err -------------------------------------------------------------------------------- /regress/case-unknownq.out: -------------------------------------------------------------------------------- 1 | adns debug: using nameserver 172.18.45.6 2 | davenant.relativity.greenend.org.uk. flags 0 type 32767 not implemented 3 | rc=0 4 | -------------------------------------------------------------------------------- /regress/case-unknownq.sys: -------------------------------------------------------------------------------- 1 | adnstest default 2 | :32767 davenant.relativity.greenend.org.uk. 3 | start 933811310.565828 4 | socket type=SOCK_DGRAM 5 | socket=4 6 | +0.000264 7 | fcntl fd=4 cmd=F_GETFL 8 | fcntl=~O_NONBLOCK&... 9 | +0.000087 10 | fcntl fd=4 cmd=F_SETFL O_NONBLOCK|... 11 | fcntl=OK 12 | +0.000067 13 | close fd=4 14 | close=OK 15 | +0.000307 16 | -------------------------------------------------------------------------------- /regress/checkall: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # usage: checkall 3 | # runs all test cases 4 | # 5 | # This file is part of adns, which is 6 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 7 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 8 | # Copyright (C) 1991 Massachusetts Institute of Technology 9 | # (See the file INSTALL for full details.) 10 | # 11 | # This program is free software; you can redistribute it and/or modify 12 | # it under the terms of the GNU General Public License as published by 13 | # the Free Software Foundation; either version 2, or (at your option) 14 | # any later version. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program; if not, write to the Free Software Foundation, 23 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 24 | 25 | set -e 26 | 27 | failed='' 28 | passed='' 29 | skipped='' 30 | 31 | for f in case-*.sys 32 | do 33 | case="`echo \"$f\" | sed -e 's/^case-//; s/\.sys$//'`" 34 | set +e 35 | ./r1test $case 36 | rc=$? 37 | set -e 38 | case $rc in 39 | 0) passed="$passed $case" ;; 40 | 5) skipped="$skipped $case" ;; 41 | *) echo 42 | failed="$failed $case" 43 | echo 44 | ;; 45 | esac 46 | done 47 | 48 | if [ "x$failed" = x ] 49 | then 50 | echo " 51 | " 52 | if [ "x$skipped" = x ] 53 | then 54 | echo "all tests passed." 55 | else 56 | echo "all applicable tests passed (skipped:$skipped)" 57 | fi 58 | echo 59 | exit 0 60 | fi 61 | 62 | echo >&2 " 63 | AT LEAST ONE TEST FAILED 64 | passed tests:${passed:- NONE} 65 | skipped tests:${skipped:- NONE} 66 | failed tests:$failed 67 | " 68 | 69 | exit 1 70 | -------------------------------------------------------------------------------- /regress/harness.h: -------------------------------------------------------------------------------- 1 | #ifndef HARNESS_H_INCLUDED 2 | #define HARNESS_H_INCLUDED 3 | #include "internal.h" 4 | #include "hsyscalls.h" 5 | /* There is a Q function (Q for Question) for each such syscall; 6 | * it constructs a string representing the call, and calls Q_str 7 | * on it, or constructs it in vb and calls Q_vb; 8 | */ 9 | void Qselect( int max , const fd_set *rfds , const fd_set *wfds , const fd_set *efds , struct timeval *to ); 10 | #ifdef HAVE_POLL 11 | void Qpoll( const struct pollfd *fds , int nfds , int timeout ); 12 | #endif 13 | void Qsocket( int type ); 14 | void Qfcntl( int fd , int cmd , long arg ); 15 | void Qconnect( int fd , const struct sockaddr *addr , int addrlen ); 16 | void Qbind( int fd , const struct sockaddr *addr , int addrlen ); 17 | void Qlisten( int fd , int backlog ); 18 | void Qclose( int fd ); 19 | void Qsendto( int fd , const void *msg , int msglen , const struct sockaddr *addr , int addrlen ); 20 | void Qrecvfrom( int fd , int buflen , int addrlen ); 21 | void Qread( int fd , size_t buflen ); 22 | void Qwrite( int fd , const void *buf , size_t len ); 23 | void Q_vb(void); 24 | extern void Tshutdown(void); 25 | /* General help functions */ 26 | void Tfailed(const char *why); 27 | void Toutputerr(void); 28 | void Tnomem(void); 29 | void Tfsyscallr(const char *fmt, ...) PRINTFFORMAT(1,2); 30 | void Tensurerecordfile(void); 31 | void Tmust(const char *call, const char *arg, int cond); 32 | void Tvbf(const char *fmt, ...) PRINTFFORMAT(1,2); 33 | void Tvbvf(const char *fmt, va_list al); 34 | void Tvbfdset(int max, const fd_set *set); 35 | void Tvbpollfds(const struct pollfd *fds, int nfds); 36 | void Tvbaddr(const struct sockaddr *addr, int addrlen); 37 | void Tvbbytes(const void *buf, int len); 38 | void Tvberrno(int e); 39 | void Tvba(const char *str); 40 | /* Shared globals */ 41 | extern vbuf vb; 42 | extern struct timeval currenttime; 43 | extern const struct Terrno { const char *n; int v; } Terrnos[]; 44 | #endif 45 | -------------------------------------------------------------------------------- /regress/harness.h.m4: -------------------------------------------------------------------------------- 1 | m4_dnl harness.h.m4 2 | m4_dnl (part of complex test harness, not of the library) 3 | m4_dnl - function and other declarations 4 | 5 | m4_dnl This file is part of adns, which is 6 | m4_dnl Copyright (C) 1997-2000,2003,2006 Ian Jackson 7 | m4_dnl Copyright (C) 1999-2000,2003,2006 Tony Finch 8 | m4_dnl Copyright (C) 1991 Massachusetts Institute of Technology 9 | m4_dnl (See the file INSTALL for full details.) 10 | m4_dnl 11 | m4_dnl This program is free software; you can redistribute it and/or modify 12 | m4_dnl it under the terms of the GNU General Public License as published by 13 | m4_dnl the Free Software Foundation; either version 2, or (at your option) 14 | m4_dnl any later version. 15 | m4_dnl 16 | m4_dnl This program is distributed in the hope that it will be useful, 17 | m4_dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | m4_dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | m4_dnl GNU General Public License for more details. 20 | m4_dnl 21 | m4_dnl You should have received a copy of the GNU General Public License 22 | m4_dnl along with this program; if not, write to the Free Software Foundation, 23 | m4_dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 24 | 25 | m4_include(hmacros.i4) 26 | 27 | #ifndef HARNESS_H_INCLUDED 28 | #define HARNESS_H_INCLUDED 29 | 30 | #include "internal.h" 31 | #include "hsyscalls.h" 32 | 33 | /* There is a Q function (Q for Question) for each such syscall; 34 | * it constructs a string representing the call, and calls Q_str 35 | * on it, or constructs it in vb and calls Q_vb; 36 | */ 37 | 38 | hm_create_proto_q 39 | m4_define(`hm_syscall', `void Q$1(hm_args_massage($3,void));') 40 | m4_define(`hm_specsyscall', `') 41 | m4_include(`hsyscalls.i4') 42 | 43 | void Q_vb(void); 44 | 45 | extern void Tshutdown(void); 46 | 47 | /* General help functions */ 48 | 49 | void Tfailed(const char *why); 50 | void Toutputerr(void); 51 | void Tnomem(void); 52 | void Tfsyscallr(const char *fmt, ...) PRINTFFORMAT(1,2); 53 | void Tensurerecordfile(void); 54 | void Tmust(const char *call, const char *arg, int cond); 55 | 56 | void Tvbf(const char *fmt, ...) PRINTFFORMAT(1,2); 57 | void Tvbvf(const char *fmt, va_list al); 58 | void Tvbfdset(int max, const fd_set *set); 59 | void Tvbpollfds(const struct pollfd *fds, int nfds); 60 | void Tvbaddr(const struct sockaddr *addr, int addrlen); 61 | void Tvbbytes(const void *buf, int len); 62 | void Tvberrno(int e); 63 | void Tvba(const char *str); 64 | 65 | /* Shared globals */ 66 | 67 | extern vbuf vb; 68 | extern struct timeval currenttime; 69 | extern const struct Terrno { const char *n; int v; } Terrnos[]; 70 | 71 | #endif 72 | -------------------------------------------------------------------------------- /regress/hredirect.h: -------------------------------------------------------------------------------- 1 | #ifndef HREDIRECT_H_INCLUDED 2 | #define HREDIRECT_H_INCLUDED 3 | #include "hsyscalls.h" 4 | #undef select 5 | #define select Hselect 6 | #ifdef HAVE_POLL 7 | #undef poll 8 | #define poll Hpoll 9 | #endif 10 | #undef socket 11 | #define socket Hsocket 12 | #undef fcntl 13 | #define fcntl Hfcntl 14 | #undef connect 15 | #define connect Hconnect 16 | #undef bind 17 | #define bind Hbind 18 | #undef listen 19 | #define listen Hlisten 20 | #undef close 21 | #define close Hclose 22 | #undef sendto 23 | #define sendto Hsendto 24 | #undef recvfrom 25 | #define recvfrom Hrecvfrom 26 | #undef read 27 | #define read Hread 28 | #undef write 29 | #define write Hwrite 30 | #undef writev 31 | #define writev Hwritev 32 | #undef gettimeofday 33 | #define gettimeofday Hgettimeofday 34 | #undef getpid 35 | #define getpid Hgetpid 36 | #undef malloc 37 | #define malloc Hmalloc 38 | #undef free 39 | #define free Hfree 40 | #undef realloc 41 | #define realloc Hrealloc 42 | #undef exit 43 | #define exit Hexit 44 | #endif 45 | -------------------------------------------------------------------------------- /regress/hredirect.h.m4: -------------------------------------------------------------------------------- 1 | m4_dnl hredirect.h.m4 2 | m4_dnl (part of complex test harness, not of the library) 3 | m4_dnl - redefinitions of system calls 4 | 5 | m4_dnl This file is part of adns, which is 6 | m4_dnl Copyright (C) 1997-2000,2003,2006 Ian Jackson 7 | m4_dnl Copyright (C) 1999-2000,2003,2006 Tony Finch 8 | m4_dnl Copyright (C) 1991 Massachusetts Institute of Technology 9 | m4_dnl (See the file INSTALL for full details.) 10 | m4_dnl 11 | m4_dnl This program is free software; you can redistribute it and/or modify 12 | m4_dnl it under the terms of the GNU General Public License as published by 13 | m4_dnl the Free Software Foundation; either version 2, or (at your option) 14 | m4_dnl any later version. 15 | m4_dnl 16 | m4_dnl This program is distributed in the hope that it will be useful, 17 | m4_dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | m4_dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | m4_dnl GNU General Public License for more details. 20 | m4_dnl 21 | m4_dnl You should have received a copy of the GNU General Public License 22 | m4_dnl along with this program; if not, write to the Free Software Foundation, 23 | m4_dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 24 | 25 | m4_include(hmacros.i4) 26 | 27 | #ifndef HREDIRECT_H_INCLUDED 28 | #define HREDIRECT_H_INCLUDED 29 | 30 | #include "hsyscalls.h" 31 | 32 | hm_create_nothing 33 | m4_define(`hm_syscall', `#undef $1 34 | #define $1 H$1') 35 | m4_define(`hm_specsyscall',`#undef $2 36 | #define $2 H$2') 37 | m4_include(`hsyscalls.i4') 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /regress/hsyscalls.h: -------------------------------------------------------------------------------- 1 | #ifndef HSYSCALLS_H_INCLUDED 2 | #define HSYSCALLS_H_INCLUDED 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #ifdef HAVE_POLL 9 | #include 10 | #endif 11 | int Hselect( int max , fd_set *rfds , fd_set *wfds , fd_set *efds , struct timeval *to ); 12 | #ifdef HAVE_POLL 13 | int Hpoll( struct pollfd *fds , int nfds , int timeout ); 14 | #endif 15 | int Hsocket( int domain , int type , int protocol ); 16 | int Hfcntl( int fd , int cmd , ... ); 17 | int Hconnect( int fd , const struct sockaddr *addr , int addrlen ); 18 | int Hbind( int fd , const struct sockaddr *addr , int addrlen ); 19 | int Hlisten( int fd , int backlog ); 20 | int Hclose( int fd ); 21 | int Hsendto( int fd , const void *msg , int msglen , unsigned int flags , const struct sockaddr *addr , int addrlen ); 22 | int Hrecvfrom( int fd , void *buf , int buflen , unsigned int flags , struct sockaddr *addr , int *addrlen ); 23 | int Hread( int fd , void *buf , size_t buflen ); 24 | int Hwrite( int fd , const void *buf , size_t len ); 25 | int Hwritev(int fd, const struct iovec *vector, size_t count); 26 | int Hgettimeofday(struct timeval *tv, struct timezone *tz); 27 | pid_t Hgetpid(void); 28 | void* Hmalloc(size_t sz); 29 | void Hfree(void *ptr); 30 | void* Hrealloc(void *op, size_t nsz); 31 | void Hexit(int rv)NONRETURNING; 32 | #endif 33 | -------------------------------------------------------------------------------- /regress/hsyscalls.h.m4: -------------------------------------------------------------------------------- 1 | m4_dnl hsyscalls.h.m4 2 | m4_dnl (part of complex test harness, not of the library) 3 | m4_dnl - prototypes of redefinitions of system calls 4 | 5 | m4_dnl This file is part of adns, which is 6 | m4_dnl Copyright (C) 1997-2000,2003,2006 Ian Jackson 7 | m4_dnl Copyright (C) 1999-2000,2003,2006 Tony Finch 8 | m4_dnl Copyright (C) 1991 Massachusetts Institute of Technology 9 | m4_dnl (See the file INSTALL for full details.) 10 | m4_dnl 11 | m4_dnl This program is free software; you can redistribute it and/or modify 12 | m4_dnl it under the terms of the GNU General Public License as published by 13 | m4_dnl the Free Software Foundation; either version 2, or (at your option) 14 | m4_dnl any later version. 15 | m4_dnl 16 | m4_dnl This program is distributed in the hope that it will be useful, 17 | m4_dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | m4_dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | m4_dnl GNU General Public License for more details. 20 | m4_dnl 21 | m4_dnl You should have received a copy of the GNU General Public License 22 | m4_dnl along with this program; if not, write to the Free Software Foundation, 23 | m4_dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 24 | 25 | m4_include(hmacros.i4) 26 | 27 | #ifndef HSYSCALLS_H_INCLUDED 28 | #define HSYSCALLS_H_INCLUDED 29 | 30 | #include 31 | #include 32 | #include 33 | #include 34 | #include 35 | 36 | #ifdef HAVE_POLL 37 | #include 38 | #endif 39 | 40 | hm_create_proto_h 41 | m4_define(`hm_syscall', `int H$1(hm_args_massage($3,void));') 42 | m4_define(`hm_specsyscall', `$1 H$2($3)$4;') 43 | m4_include(`hsyscalls.i4') 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /regress/init-1stservbroken.text: -------------------------------------------------------------------------------- 1 | nameserver 172.18.45.2 2 | nameserver 172.18.45.6 3 | sortlist 127.0.0.1/32 172.18.45.0/28 172.18.45.0/24 4 | -------------------------------------------------------------------------------- /regress/init-1stservto.text: -------------------------------------------------------------------------------- 1 | nameserver 10.0.0.1 2 | nameserver 172.18.45.6 3 | sortlist 127.0.0.1/32 172.18.45.0/28 172.18.45.0/24 4 | -------------------------------------------------------------------------------- /regress/init-2ndserver.text: -------------------------------------------------------------------------------- 1 | nameserver 172.18.45.36 2 | nameserver 172.18.45.6 3 | sortlist 127.0.0.1/32 172.18.45.0/28 172.18.45.0/24 4 | -------------------------------------------------------------------------------- /regress/init-anarres.text: -------------------------------------------------------------------------------- 1 | nameserver 172.18.45.2 2 | search davenant.greenend.org.uk 3 | -------------------------------------------------------------------------------- /regress/init-default.text: -------------------------------------------------------------------------------- 1 | nameserver 172.18.45.6 2 | sortlist 127.0.0.1/32 172.18.45.0/28 172.18.45.0/24 3 | search davenant.greenend.org.uk greenend.org.uk 4 | -------------------------------------------------------------------------------- /regress/init-manyptrwrong.text: -------------------------------------------------------------------------------- 1 | nameserver 140.200.128.13 2 | -------------------------------------------------------------------------------- /regress/init-ncipher.text: -------------------------------------------------------------------------------- 1 | nameserver 195.224.55.129 2 | sortlist 127.0.0.1/32 195.224.55.128/25 195.224.55.0/24 3 | search ncipher.com 4 | -------------------------------------------------------------------------------- /regress/init-ndots.text: -------------------------------------------------------------------------------- 1 | nameserver 172.18.45.6 2 | sortlist 127.0.0.1/32 172.18.45.0/28 172.18.45.0/24 3 | search davenant.greenend.org.uk greenend.org.uk 4 | options ndots:3 5 | -------------------------------------------------------------------------------- /regress/init-ndots100.text: -------------------------------------------------------------------------------- 1 | nameserver 172.18.45.6 2 | sortlist 127.0.0.1/32 172.18.45.0/28 172.18.45.0/24 3 | search davenant.greenend.org.uk greenend.org.uk 4 | options ndots:100 5 | -------------------------------------------------------------------------------- /regress/init-ndotsbad.text: -------------------------------------------------------------------------------- 1 | nameserver 172.18.45.6 2 | sortlist 127.0.0.1/32 172.18.45.0/28 172.18.45.0/24 3 | search davenant.greenend.org.uk greenend.org.uk 4 | options ndots:X 5 | -------------------------------------------------------------------------------- /regress/init-noserver.text: -------------------------------------------------------------------------------- 1 | nameserver 172.18.45.36 2 | sortlist 127.0.0.1/32 172.18.45.0/28 172.18.45.0/24 3 | -------------------------------------------------------------------------------- /regress/init-tunnel.text: -------------------------------------------------------------------------------- 1 | nameserver 172.31.80.9 2 | sortlist 127.0.0.1/32 172.18.45.0/24 172.31.80.0/28 3 | search davenant.greenend.org.uk greenend.org.uk 4 | -------------------------------------------------------------------------------- /regress/m1test: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # usage: m1test [] ' 3 | # test recording script 4 | # 5 | # This file is part of adns, which is 6 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 7 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 8 | # Copyright (C) 1991 Massachusetts Institute of Technology 9 | # (See the file INSTALL for full details.) 10 | # 11 | # This program is free software; you can redistribute it and/or modify 12 | # it under the terms of the GNU General Public License as published by 13 | # the Free Software Foundation; either version 2, or (at your option) 14 | # any later version. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program; if not, write to the Free Software Foundation, 23 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 24 | 25 | set -e 26 | 27 | if [ $# -lt 3 ] 28 | then 29 | echo >&2 \ 30 | 'usage: m1test [-] ["<"] 31 | [=] 32 | ("<" means read input from case-.in)' 33 | exit 1 34 | fi 35 | 36 | case="case-$1"; shift 37 | initfile="$1"; shift 38 | 39 | hrecord="./adnstest_record" 40 | 41 | case "$1" in 42 | -*) initflags="$1"; shift 43 | esac 44 | 45 | if test "x$1" = "x<" 46 | then 47 | shift; exec <"$case.in" 48 | fi 49 | 50 | case "$1" in 51 | =*) hrecord="`echo \"$1\" | sed -e 's/^=//'`"; shift 52 | esac 53 | 54 | if test ! -f "$hrecord" -a -f "${hrecord}_record" 55 | then 56 | case "$hrecord" in 57 | /*) program="$hrecord" ;; 58 | *) program="./$hrecord" ;; 59 | esac 60 | hrecord="${program}_record" 61 | else 62 | program="$(echo "$hrecord" | sed -e 's/ .*//; s/_record$//')" 63 | fi 64 | 65 | queryargs="$*" 66 | 67 | initstring="`cat init-$initfile.text`" 68 | xinitflagsf=$program-xinitflags.text 69 | if test -f $xinitflagsf 70 | then 71 | useinitflags="$initflags $(cat $xinitflagsf)"; 72 | else 73 | useinitflags="$initflags /" 74 | fi 75 | 76 | echo $program $initfile $initflags >"$case.sys" 77 | echo "$queryargs" >>"$case.sys" 78 | 79 | EF_DISABLE_BANNER=1 80 | export EF_DISABLE_BANNER 81 | 82 | rm -f pipe.out pipe.err 83 | mknod pipe.out p 84 | mknod pipe.err p 85 | tee pipe.out 90 | exec 5>pipe.err 91 | 92 | echo running hrecord $initflags "... $queryargs" 93 | set +e 94 | ADNS_TEST_OUT_FD=3 3>>"$case.sys" >&4 2>&5 \ 95 | $hrecord $useinitflags"$initstring" $queryargs 96 | rc=$? 97 | set -e 98 | 99 | echo "rc=$rc" >&4 100 | exec 4>&- 101 | exec 5>&- 102 | 103 | wait $tee_out 104 | wait $tee_err 105 | 106 | echo "exit status: $rc" 107 | -------------------------------------------------------------------------------- /regress/r1test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # usage: r1test 3 | # test execution script, for running one test 4 | # 5 | # This file is part of adns, which is 6 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 7 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 8 | # Copyright (C) 1991 Massachusetts Institute of Technology 9 | # (See the file INSTALL for full details.) 10 | # 11 | # This program is free software; you can redistribute it and/or modify 12 | # it under the terms of the GNU General Public License as published by 13 | # the Free Software Foundation; either version 2, or (at your option) 14 | # any later version. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program; if not, write to the Free Software Foundation, 23 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 24 | 25 | set -e 26 | mrc=1 27 | trap 'exit $mrc' 0 28 | 29 | casename="$1" 30 | case="case-$casename" 31 | ocase="output-$casename" 32 | 33 | exec 4<"$case.sys" 34 | read <&4 program initfile initflags 35 | read <&4 queryargs 36 | 37 | initstring="`cat init-$initfile.text`" 38 | xinitflagsf=$program-xinitflags.text 39 | if test -f $xinitflagsf 40 | then 41 | initflags="$initflags `cat $xinitflagsf`"; 42 | else 43 | initflags="$initflags /" 44 | fi 45 | 46 | rm -f $ocase.* 47 | 48 | EF_DISABLE_BANNER=1 49 | export EF_DISABLE_BANNER 50 | 51 | if test -f "$case.in" 52 | then 53 | exec <"$case.in" 54 | else 55 | exec >"$ocase.report" 4<&4 >"$ocase.out" 2>"$ocase.err" \ 69 | $playback $initflags"$initstring" $queryargs 70 | rc=$? 71 | set -e 72 | 73 | if [ "$rc" = 5 ] 74 | then 75 | printf "SKIPPED-$casename " 76 | mrc=5 77 | exit 78 | fi 79 | 80 | echo "rc=$rc" >>$ocase.out 81 | 82 | failed=false 83 | for part in err out 84 | do 85 | if diff -u -- "$case.$part" "$ocase.$part" 86 | then 87 | : 88 | else 89 | failwhy="$failwhy WRONG OUTPUT" 90 | fi 91 | done 92 | 93 | cat <&4 >"$ocase.leftover" 94 | if egrep . /dev/null "$ocase.leftover" 95 | then 96 | failwhy="$failwhy EXITED EARLY" 97 | fi 98 | 99 | if [ "x$failwhy" != x ] 100 | then 101 | scremain="`wc -l <\"$ocase.leftover\"`" 102 | echo >&2 "FAILED $case -$failwhy - lines of syscall remaining $scremain" 103 | mrc=2 104 | exit 105 | fi 106 | 107 | printf "$casename " 108 | mrc=0 109 | -------------------------------------------------------------------------------- /settings.make.in: -------------------------------------------------------------------------------- 1 | # settings.make[.in] - main configuration settings for Makefiles, 2 | # used by autoconf/configure to generate settings.make 3 | # 4 | # This file is part of adns, which is 5 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 6 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 7 | # Copyright (C) 1991 Massachusetts Institute of Technology 8 | # (See the file INSTALL for full details.) 9 | # 10 | # This program is free software; you can redistribute it and/or modify 11 | # it under the terms of the GNU General Public License as published by 12 | # the Free Software Foundation; either version 2, or (at your option) 13 | # any later version. 14 | # 15 | # This program is distributed in the hope that it will be useful, 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | # GNU General Public License for more details. 19 | # 20 | # You should have received a copy of the GNU General Public License 21 | # along with this program; if not, write to the Free Software Foundation, 22 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 23 | 24 | MAJOR= 1 25 | MINOR= 3 26 | SHLIBFILE= @SHLIBFILE@ 27 | SHLIBSONAME= @SHLIBSONAME@ 28 | SHLIBFORLINK= @SHLIBFORLINK@ 29 | 30 | CC= @CC@ 31 | CFLAGS= $(AUTOCFLAGS) $(WARNS) $(WERROR) $(DIRCFLAGS) $(XCFLAGS) 32 | LDFLAGS= $(AUTOLDFLAGS) $(DIRLDFLAGS) $(XLDFLAGS) 33 | LDLIBS= @LIBS@ $(XLIBS) 34 | AUTOCFLAGS= @CFLAGS@ 35 | AUTOLDFLAGS= @LDFLAGS@ 36 | WARNS= @WARNS@ 37 | #WERROR= -Werror 38 | 39 | M4= m4 40 | RANLIB= @RANLIB@ 41 | 42 | SHLIBCC= @SHLIBCC@ 43 | 44 | MKSHLIB_1= @MKSHLIB_1@ 45 | MKSHLIB_2= @MKSHLIB_2@ 46 | MKSHLIB_3= @MKSHLIB_3@ 47 | 48 | prefix= @prefix@ 49 | exec_prefix= @exec_prefix@ 50 | bindir= @bindir@ 51 | libdir= @libdir@ 52 | includedir= @includedir@ 53 | 54 | AC_INSTALL= @INSTALL@ 55 | ifeq ($(AC_INSTALL),./install-sh -c) 56 | INSTALL= $(srcdir)/../$(AC_INSTALL) 57 | else 58 | INSTALL= $(AC_INSTALL) 59 | endif 60 | 61 | INSTALL_PROGRAM= $(INSTALL) -m 755 $(INSTALL_PROGRAM_FLAGS) 62 | INSTALL_DATA= $(INSTALL) -m 644 63 | 64 | all: $(TARGETS) 65 | 66 | clean mostlyclean: 67 | rm -f *.o *.tmp* *.so *.so.* 68 | 69 | distclean: clean 70 | rm -f $(TARGETS) *~ ./#*# core *.orig *.rej Makefile 71 | 72 | distprep: $(AUTOCSRCS) $(AUTOCHDRS) 73 | 74 | maintainer-clean: distclean 75 | -rm -f $(AUTOCSRCS) $(AUTOCHDRS) 76 | -------------------------------------------------------------------------------- /src/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | config.h 3 | -------------------------------------------------------------------------------- /src/Makefile.in: -------------------------------------------------------------------------------- 1 | # src/Makefile[.in] - library main Makefile 2 | # 3 | # This file is part of adns, which is 4 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 5 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 6 | # Copyright (C) 1991 Massachusetts Institute of Technology 7 | # (See the file INSTALL for full details.) 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation; either version 2, or (at your option) 12 | # any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program; if not, write to the Free Software Foundation, 21 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 | 23 | srcdir= @srcdir@ 24 | VPATH= @srcdir@ 25 | 26 | TARGETS= libadns.a 27 | include $(srcdir)/../settings.make 28 | include adns.make 29 | 30 | install: 31 | mkdir -p $(libdir) $(includedir) 32 | set -xe; for f in $(TARGETS); \ 33 | do $(INSTALL_DATA) $$f $(libdir)/$$f; done 34 | $(INSTALL_DATA) $(srcdir)/../src/adns.h $(includedir)/adns.h 35 | 36 | uninstall: 37 | for f in $(TARGETS); do rm -f $(libdir)/$$f; done 38 | rm -f $(includedir)/adns.h 39 | 40 | ALLOBJS= $(LIBOBJS) 41 | 42 | libadns.a: $(LIBOBJS) 43 | rm -f $@ 44 | $(AR) cqv $@.new $(LIBOBJS) 45 | $(RANLIB) $@.new 46 | mv -f $@.new $@ 47 | 48 | $(LIBOBJS): adns.h internal.h config.h 49 | -------------------------------------------------------------------------------- /src/adns.make: -------------------------------------------------------------------------------- 1 | # src/adns.make - library definitions, including list of object files 2 | # 3 | # This file is part of adns, which is 4 | # Copyright (C) 1997-2000,2003,2006 Ian Jackson 5 | # Copyright (C) 1999-2000,2003,2006 Tony Finch 6 | # Copyright (C) 1991 Massachusetts Institute of Technology 7 | # (See the file INSTALL for full details.) 8 | # 9 | # This program is free software; you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation; either version 2, or (at your option) 12 | # any later version. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program; if not, write to the Free Software Foundation, 21 | # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 | 23 | LIBOBJS= types.o event.o query.o reply.o general.o setup.o transmit.o \ 24 | parse.o poll.o check.o 25 | -------------------------------------------------------------------------------- /src/config.h: -------------------------------------------------------------------------------- 1 | /* src/config.h. Generated automatically by configure. */ 2 | /* src/config.h.in. Generated automatically from configure.in by autoheader 2.13. */ 3 | 4 | /* Define if inline functions a la GCC are available. */ 5 | #define HAVE_INLINE 1 6 | 7 | /* Define if function attributes a la GCC 2.5 and higher are available. */ 8 | #define HAVE_GNUC25_ATTRIB 1 9 | 10 | /* Define if constant functions a la GCC 2.5 and higher are available. */ 11 | #define HAVE_GNUC25_CONST 1 12 | 13 | /* Define if nonreturning functions a la GCC 2.5 and higher are available. */ 14 | #define HAVE_GNUC25_NORETURN 1 15 | 16 | /* Define if printf-format argument lists a la GCC are available. */ 17 | #define HAVE_GNUC25_PRINTFFORMAT 1 18 | 19 | /* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */ 20 | /* #undef HAVEUSE_RPCTYPES_H */ 21 | 22 | /* Define if you have the poll function. */ 23 | #define HAVE_POLL 1 24 | 25 | /* Define if you have the nsl library (-lnsl). */ 26 | /* #undef HAVE_LIBNSL */ 27 | 28 | /* Define if you have the socket library (-lsocket). */ 29 | /* #undef HAVE_LIBSOCKET */ 30 | 31 | /* Use the definitions: */ 32 | 33 | #ifndef HAVE_INLINE 34 | #define inline 35 | #endif 36 | 37 | #ifdef HAVE_POLL 38 | #include 39 | #else 40 | /* kludge it up */ 41 | struct pollfd { int fd; short events; short revents; }; 42 | #define POLLIN 1 43 | #define POLLPRI 2 44 | #define POLLOUT 4 45 | #endif 46 | 47 | /* GNU C attributes. */ 48 | #ifndef FUNCATTR 49 | #ifdef HAVE_GNUC25_ATTRIB 50 | #define FUNCATTR(x) __attribute__(x) 51 | #else 52 | #define FUNCATTR(x) 53 | #endif 54 | #endif 55 | 56 | /* GNU C printf formats, or null. */ 57 | #ifndef ATTRPRINTF 58 | #ifdef HAVE_GNUC25_PRINTFFORMAT 59 | #define ATTRPRINTF(si,tc) format(printf,si,tc) 60 | #else 61 | #define ATTRPRINTF(si,tc) 62 | #endif 63 | #endif 64 | #ifndef PRINTFFORMAT 65 | #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc))) 66 | #endif 67 | 68 | /* GNU C nonreturning functions, or null. */ 69 | #ifndef ATTRNORETURN 70 | #ifdef HAVE_GNUC25_NORETURN 71 | #define ATTRNORETURN noreturn 72 | #else 73 | #define ATTRNORETURN 74 | #endif 75 | #endif 76 | #ifndef NONRETURNING 77 | #define NONRETURNING FUNCATTR((ATTRNORETURN)) 78 | #endif 79 | 80 | /* Combination of both the above. */ 81 | #ifndef NONRETURNPRINTFFORMAT 82 | #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN)) 83 | #endif 84 | 85 | /* GNU C constant functions, or null. */ 86 | #ifndef ATTRCONST 87 | #ifdef HAVE_GNUC25_CONST 88 | #define ATTRCONST const 89 | #else 90 | #define ATTRCONST 91 | #endif 92 | #endif 93 | #ifndef CONSTANT 94 | #define CONSTANT FUNCATTR((ATTRCONST)) 95 | #endif 96 | 97 | #ifdef HAVEUSE_RPCTYPES_H 98 | #include 99 | #endif 100 | -------------------------------------------------------------------------------- /src/config.h.in: -------------------------------------------------------------------------------- 1 | /* src/config.h.in. Generated automatically from configure.in by autoheader 2.13. */ 2 | 3 | /* Define if inline functions a la GCC are available. */ 4 | #undef HAVE_INLINE 5 | 6 | /* Define if function attributes a la GCC 2.5 and higher are available. */ 7 | #undef HAVE_GNUC25_ATTRIB 8 | 9 | /* Define if constant functions a la GCC 2.5 and higher are available. */ 10 | #undef HAVE_GNUC25_CONST 11 | 12 | /* Define if nonreturning functions a la GCC 2.5 and higher are available. */ 13 | #undef HAVE_GNUC25_NORETURN 14 | 15 | /* Define if printf-format argument lists a la GCC are available. */ 16 | #undef HAVE_GNUC25_PRINTFFORMAT 17 | 18 | /* Define if we want to include rpc/types.h. Crap BSDs put INADDR_LOOPBACK there. */ 19 | #undef HAVEUSE_RPCTYPES_H 20 | 21 | /* Define if you have the poll function. */ 22 | #undef HAVE_POLL 23 | 24 | /* Define if you have the nsl library (-lnsl). */ 25 | #undef HAVE_LIBNSL 26 | 27 | /* Define if you have the socket library (-lsocket). */ 28 | #undef HAVE_LIBSOCKET 29 | 30 | /* Use the definitions: */ 31 | 32 | #ifndef HAVE_INLINE 33 | #define inline 34 | #endif 35 | 36 | #ifdef HAVE_POLL 37 | #include 38 | #else 39 | /* kludge it up */ 40 | struct pollfd { int fd; short events; short revents; }; 41 | #define POLLIN 1 42 | #define POLLPRI 2 43 | #define POLLOUT 4 44 | #endif 45 | 46 | /* GNU C attributes. */ 47 | #ifndef FUNCATTR 48 | #ifdef HAVE_GNUC25_ATTRIB 49 | #define FUNCATTR(x) __attribute__(x) 50 | #else 51 | #define FUNCATTR(x) 52 | #endif 53 | #endif 54 | 55 | /* GNU C printf formats, or null. */ 56 | #ifndef ATTRPRINTF 57 | #ifdef HAVE_GNUC25_PRINTFFORMAT 58 | #define ATTRPRINTF(si,tc) format(printf,si,tc) 59 | #else 60 | #define ATTRPRINTF(si,tc) 61 | #endif 62 | #endif 63 | #ifndef PRINTFFORMAT 64 | #define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc))) 65 | #endif 66 | 67 | /* GNU C nonreturning functions, or null. */ 68 | #ifndef ATTRNORETURN 69 | #ifdef HAVE_GNUC25_NORETURN 70 | #define ATTRNORETURN noreturn 71 | #else 72 | #define ATTRNORETURN 73 | #endif 74 | #endif 75 | #ifndef NONRETURNING 76 | #define NONRETURNING FUNCATTR((ATTRNORETURN)) 77 | #endif 78 | 79 | /* Combination of both the above. */ 80 | #ifndef NONRETURNPRINTFFORMAT 81 | #define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN)) 82 | #endif 83 | 84 | /* GNU C constant functions, or null. */ 85 | #ifndef ATTRCONST 86 | #ifdef HAVE_GNUC25_CONST 87 | #define ATTRCONST const 88 | #else 89 | #define ATTRCONST 90 | #endif 91 | #endif 92 | #ifndef CONSTANT 93 | #define CONSTANT FUNCATTR((ATTRCONST)) 94 | #endif 95 | 96 | #ifdef HAVEUSE_RPCTYPES_H 97 | #include 98 | #endif 99 | -------------------------------------------------------------------------------- /src/dlist.h: -------------------------------------------------------------------------------- 1 | /* 2 | * dlist.h 3 | * - macros for handling doubly linked lists 4 | */ 5 | /* 6 | * This file is part of adns, which is 7 | * Copyright (C) 1997-2000,2003,2006 Ian Jackson 8 | * Copyright (C) 1999-2000,2003,2006 Tony Finch 9 | * Copyright (C) 1991 Massachusetts Institute of Technology 10 | * (See the file INSTALL for full details.) 11 | * 12 | * This program is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License as published by 14 | * the Free Software Foundation; either version 2, or (at your option) 15 | * any later version. 16 | * 17 | * This program is distributed in the hope that it will be useful, 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 | * GNU General Public License for more details. 21 | * 22 | * You should have received a copy of the GNU General Public License 23 | * along with this program; if not, write to the Free Software Foundation, 24 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 25 | */ 26 | 27 | #ifndef ADNS_DLIST_H_INCLUDED 28 | #define ADNS_DLIST_H_INCLUDED 29 | 30 | #define LIST_INIT(list) ((list).head= (list).tail= 0) 31 | #define LINK_INIT(link) ((link).next= (link).back= 0) 32 | 33 | #define LIST_UNLINK_PART(list,node,part) \ 34 | do { \ 35 | if ((node)->part back) (node)->part back->part next= (node)->part next; \ 36 | else (list).head= (node)->part next; \ 37 | if ((node)->part next) (node)->part next->part back= (node)->part back; \ 38 | else (list).tail= (node)->part back; \ 39 | } while(0) 40 | 41 | #define LIST_LINK_TAIL_PART(list,node,part) \ 42 | do { \ 43 | (node)->part next= 0; \ 44 | (node)->part back= (list).tail; \ 45 | if ((list).tail) (list).tail->part next= (node); \ 46 | else (list).head= (node); \ 47 | (list).tail= (node); \ 48 | } while(0) 49 | 50 | #define LIST_UNLINK(list,node) LIST_UNLINK_PART(list,node,) 51 | #define LIST_LINK_TAIL(list,node) LIST_LINK_TAIL_PART(list,node,) 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /src/tvarith.h: -------------------------------------------------------------------------------- 1 | /* 2 | * tvarith.h 3 | * - static inline functions for doing arithmetic on timevals 4 | */ 5 | /* 6 | * This file is part of adns, which is 7 | * Copyright (C) 1997-2000,2003,2006 Ian Jackson 8 | * Copyright (C) 1999-2000,2003,2006 Tony Finch 9 | * Copyright (C) 1991 Massachusetts Institute of Technology 10 | * (See the file INSTALL for full details.) 11 | * 12 | * This program is free software; you can redistribute it and/or modify 13 | * it under the terms of the GNU General Public License as published by 14 | * the Free Software Foundation; either version 2, or (at your option) 15 | * any later version. 16 | * 17 | * This program is distributed in the hope that it will be useful, 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 | * GNU General Public License for more details. 21 | * 22 | * You should have received a copy of the GNU General Public License 23 | * along with this program; if not, write to the Free Software Foundation, 24 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 25 | */ 26 | 27 | #ifndef ADNS_TVARITH_H_INCLUDED 28 | #define ADNS_TVARITH_H_INCLUDED 29 | 30 | static inline void timevaladd(struct timeval *tv_io, long ms) { 31 | struct timeval tmp; 32 | assert(ms>=0); 33 | tmp= *tv_io; 34 | tmp.tv_usec += (ms%1000)*1000; 35 | tmp.tv_sec += ms/1000; 36 | if (tmp.tv_usec >= 1000000) { tmp.tv_sec++; tmp.tv_usec -= 1000000; } 37 | *tv_io= tmp; 38 | } 39 | 40 | #endif 41 | --------------------------------------------------------------------------------