delete old bind

This commit is contained in:
christos 2009-04-18 13:01:19 +00:00
parent 736e89e40b
commit 2eded15942
28 changed files with 0 additions and 6040 deletions

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.16 2007/11/04 23:28:20 tls Exp $
SUBDIR= html dig host named nslookup nsupdate rndc rndc-confgen dnssec check
.include "Makefile.inc"
.include <bsd.subdir.mk>

View File

@ -1,89 +0,0 @@
# $NetBSD: Makefile.inc,v 1.32 2008/08/29 00:02:24 gmcgarry Exp $
.if !defined(BIND9_MAKEFILE_INC)
BIND9_MAKEFILE_INC=yes
USE_FORT?= yes # network client/server
WARNS?= 1
.include <bsd.own.mk>
.if ${MKCRYPTO} == "no"
NAMED_USE_OPENSSL?=no
.endif
NAMED_USE_PTHREADS?=yes
NAMED_USE_OPENSSL?=yes
IDIST= ${NETBSDSRCDIR}/dist/bind
BIND_SRCDIR= ${NETBSDSRCDIR}/usr.sbin/bind
BIND_HTMLDIR= /usr/share/doc/html/bind9
.include "${IDIST}/version"
VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
SYSCONFDIR=/etc
LOCALSTATEDIR=/var
CPPFLAGS+=-I${BIND_SRCDIR}/include \
-I${IDIST} \
-I${IDIST}/lib/dns/include -I${IDIST}/lib/dns/unix/include \
-I${IDIST}/lib/isc/include -I${IDIST}/lib/isc/unix/include \
-I${IDIST}/lib/bind9/include \
-I${IDIST}/lib/isccfg/include \
-I${IDIST}/lib/isccc/include \
-I${IDIST}/lib/lwres/include -I${IDIST}/lib/lwres/unix/include \
-I${IDIST}/lib/dns/sec/dst/include \
-DNS_LOCALSTATEDIR=\"${LOCALSTATEDIR}\" \
-DNS_SYSCONFDIR=\"${SYSCONFDIR}\" \
-DVERSION=\"${VERSION}\"
.if (${USE_INET6} != "no")
CPPFLAGS+= -DWANT_IPV6
.endif
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
COPTS+= -Wno-pointer-sign
.endif
.if !defined(LIB) || empty(LIB)
# NOTE: the order of these libraries is important...
LDADD+= -lbind9 -ldns -llwres -lisccfg -lisccc -lisc
DPADD+= ${LIBBIND9} ${LIBDNS} ${LIBLWRES}
DPADD+= ${LIBISCCFG} ${LIBISCCC} ${LIBISC}
.else
CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
-DLIBREVISION=${LIBREVISION} -DLIBAGE=${LIBAGE}
.endif
.if ${NAMED_USE_PTHREADS} == "yes"
.if !defined (LIB) || empty(LIB)
LDADD+= -lpthread
DPADD+= ${LIBPTHREAD}
.else
LIBDPLIBS+= pthread ${.CURDIR}/../libpthread
.endif
.endif
.if ${NAMED_USE_OPENSSL} == "yes"
CPPFLAGS+=-DOPENSSL
.if !defined (LIB) || empty(LIB)
LDADD+= -lcrypto
DPADD+= ${LIBCRYPTO}
.else
LIBDPLIBS+= crypto ${.CURDIR}/../libcrypto
.endif
.endif
.if ${NAMED_USE_PTHREADS} == "yes"
CPPFLAGS+=-DISC_PLATFORM_USETHREADS -I${IDIST}/lib/isc/pthreads/include
.else
CPPFLAGS+=-I${IDIST}/lib/isc/nothreads/include
.endif
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
.endif

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.1 2005/11/19 02:09:27 christos Exp $
SUBDIR= named-checkconf named-checkzone
.include "Makefile.inc"
.include <bsd.subdir.mk>

View File

@ -1,15 +0,0 @@
# $NetBSD: Makefile.inc,v 1.1 2005/11/19 02:09:27 christos Exp $
.include <bsd.own.mk>
.include "${.CURDIR}/../../Makefile.inc"
CPPFLAGS+=-DNAMED_CONFFILE=\"${SYSCONFDIR}/named.conf\"
BINDIR=/usr/sbin
CHECK=${IDIST}/bin/check
.PATH: ${CHECK}
PROG=${BASE}
SRCS=${BASE}.c check-tool.c
MAN=${BASE}.8

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.1 2005/11/19 02:09:27 christos Exp $
BASE= ${.CURDIR:T}
.include "${.CURDIR}/../Makefile.inc"
.include <bsd.prog.mk>

View File

@ -1,10 +0,0 @@
# $NetBSD: Makefile,v 1.3 2009/04/10 03:50:38 reed Exp $
BASE= ${.CURDIR:T}
.include "${.CURDIR}/../Makefile.inc"
SYMLINKS= /usr/sbin/named-checkzone /usr/sbin/named-compilezone
MLINKS= named-checkzone.8 named-compilezone.8
.include <bsd.prog.mk>

View File

@ -1,16 +0,0 @@
# $NetBSD: Makefile,v 1.4 2004/05/18 00:10:39 christos Exp $
.include <bsd.own.mk>
PROG= dig
SRCS= dig.c dighost.c
BINDIR= /usr/bin
.include "${.CURDIR}/../Makefile.inc"
DIST=${IDIST}/bin/dig
CPPFLAGS+= -I${DIST}/include
.PATH: ${DIST}
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.2 2005/12/22 00:27:23 christos Exp $
SUBDIR= dnssec-keygen dnssec-signzone
.include "Makefile.inc"
.include <bsd.subdir.mk>

View File

@ -1,14 +0,0 @@
# $NetBSD: Makefile.inc,v 1.1 2005/11/19 02:09:28 christos Exp $
.include <bsd.own.mk>
.include "${.CURDIR}/../../Makefile.inc"
BINDIR=/usr/sbin
DNSSEC=${IDIST}/bin/dnssec
.PATH: ${DNSSEC}
PROG=${BASE}
SRCS=${BASE}.c dnssectool.c
MAN=${BASE}.8

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.1 2005/11/19 02:09:28 christos Exp $
BASE= ${.CURDIR:T}
.include "${.CURDIR}/../Makefile.inc"
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.1 2005/11/19 02:09:28 christos Exp $
BASE= ${.CURDIR:T}
.include "${.CURDIR}/../Makefile.inc"
.include <bsd.prog.mk>

View File

@ -1,16 +0,0 @@
# $NetBSD: Makefile,v 1.5 2004/05/18 00:10:39 christos Exp $
.include <bsd.own.mk>
PROG= host
SRCS= host.c dighost.c
BINDIR= /usr/bin
.include "${.CURDIR}/../Makefile.inc"
DIST=${IDIST}/bin/dig
CPPFLAGS+= -I${DIST}/include
.PATH: ${DIST}
.include <bsd.prog.mk>

View File

@ -1,22 +0,0 @@
# $NetBSD: Makefile,v 1.1 2005/10/10 13:21:43 rpaulo Exp $
.include <bsd.own.mk>
.include "${.CURDIR}/../Makefile.inc"
.if ${MKDOC} != "no"
DIST= ${IDIST}/doc ${IDIST}/doc/arm
.PATH: ${DIST}
BINDIR= ${BIND_HTMLDIR}/arm
BIND_ARM= Bv9ARM.ch01.html Bv9ARM.ch01.html Bv9ARM.ch02.html \
Bv9ARM.ch03.html Bv9ARM.ch04.html Bv9ARM.ch05.html \
Bv9ARM.ch06.html Bv9ARM.ch07.html Bv9ARM.ch08.html \
Bv9ARM.ch09.html Bv9ARM.html
FILES= ${BIND_ARM}
.endif
.include <bsd.prog.mk>

View File

@ -1,344 +0,0 @@
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* Id: config.h.in,v 1.90.60.8 2008/05/06 01:32:51 each Exp */
/*! \file */
/***
*** This file is not to be included by any public header files, because
*** it does not get installed.
***/
/** define to `int' if <sys/types.h> doesn't define. */
/* #undef ssize_t */
/** define on DEC OSF to enable 4.4BSD style sa_len support */
/* #undef _SOCKADDR_LEN */
/** define if your system needs pthread_init() before using pthreads */
/* #undef NEED_PTHREAD_INIT */
/*
* Apparently, the combination of "no threads" but HAVE_SIGWAIT
* has not been well tested. Applications end up killing themselves
* instead of exiting gracefully.
*/
#ifdef ISC_PLATFORM_USETHREADS
/** define if your system has sigwait() */
#define HAVE_SIGWAIT 1
#endif /* ISC_PLATFORM_USETHREADS */
/** define if sigwait() is the UnixWare flavor */
/* #undef HAVE_UNIXWARE_SIGWAIT */
/** define on Solaris to get sigwait() to work using pthreads semantics */
/* #undef _POSIX_PTHREAD_SEMANTICS */
/** define if LinuxThreads is in use */
/* #undef HAVE_LINUXTHREADS */
/** define if sysconf() is available */
#define HAVE_SYSCONF 1
/** define if sysctlbyname() is available */
#define HAVE_SYSCTLBYNAME 1
/** define if catgets() is available */
#define HAVE_CATGETS 1
/** define if getifaddrs() exists */
#define HAVE_GETIFADDRS 1
/** define if you have the NET_RT_IFLIST sysctl variable and sys/sysctl.h */
#define HAVE_IFLIST_SYSCTL 1
/** define if chroot() is available */
#define HAVE_CHROOT 1
/** define if tzset() is available */
#define HAVE_TZSET 1
/** define if struct addrinfo exists */
#define HAVE_ADDRINFO 1
/** define if getaddrinfo() exists */
#define HAVE_GETADDRINFO 1
/** define if gai_strerror() exists */
#define HAVE_GAISTRERROR 1
/** define if arc4random() exists */
#define HAVE_ARC4RANDOM 1
/**
* define if pthread_setconcurrency() should be called to tell the
* OS how many threads we might want to run.
*/
/* #undef CALL_PTHREAD_SETCONCURRENCY */
#if 0 /* We'll define this in each Makefile as necessary */
/** define if IPv6 is not disabled */
#define WANT_IPV6 1
#endif
/** define if flockfile() is available */
#define HAVE_FLOCKFILE 1
/** define if getc_unlocked() is available */
#define HAVE_GETCUNLOCKED 1
/** Shut up warnings about sputaux in stdio.h on BSD/OS pre-4.1 */
/* #undef SHUTUP_SPUTAUX */
#ifdef SHUTUP_SPUTAUX
struct __sFILE;
extern __inline int __sputaux(int _c, struct __sFILE *_p);
#endif
/** Shut up warnings about missing sigwait prototype on BSD/OS 4.0* */
/* #undef SHUTUP_SIGWAIT */
#ifdef SHUTUP_SIGWAIT
int sigwait(const unsigned int *set, int *sig);
#endif
/** Shut up warnings from gcc -Wcast-qual on BSD/OS 4.1. */
/* #undef SHUTUP_STDARG_CAST */
#if defined(SHUTUP_STDARG_CAST) && defined(__GNUC__)
#include <stdarg.h> /** Grr. Must be included *every time*. */
/**
* The silly continuation line is to keep configure from
* commenting out the #undef.
*/
#undef \
va_start
#define va_start(ap, last) \
do { \
union { const void *konst; long *var; } _u; \
_u.konst = &(last); \
ap = (va_list)(_u.var + __va_words(__typeof(last))); \
} while (0)
#endif /** SHUTUP_STDARG_CAST && __GNUC__ */
/** define if the system has a random number generating device */
#define PATH_RANDOMDEV "/dev/random"
/** define if pthread_attr_getstacksize() is available */
#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
/** define if pthread_attr_setstacksize() is available */
#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
/** define if you have strerror in the C library. */
#define HAVE_STRERROR 1
/** Define if you are running under Compaq TruCluster. */
/* #undef HAVE_TRUCLUSTER */
/* Define if OpenSSL includes DSA support */
#define HAVE_OPENSSL_DSA 1
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
#define ISC_SOCKADDR_LEN_T socklen_t
/* Define if threads need PTHREAD_SCOPE_SYSTEM */
/* #undef NEED_PTHREAD_SCOPE_SYSTEM */
/* Define if recvmsg() does not meet all of the BSD socket API specifications.
*/
/* #undef BROKEN_RECVMSG */
/* Define if you cannot bind() before connect() for TCP sockets. */
/* #undef BROKEN_TCP_BIND_BEFORE_CONNECT */
/* Define to enable "rrset-order fixed" syntax. */
#define DNS_RDATASET_FIXED 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the <gssapi/gssapi.h> header file. */
#define HAVE_GSSAPI_GSSAPI_H 1
/* Define to 1 if you have the <gssapi.h> header file. */
#define HAVE_GSSAPI_H 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `c' library (-lc). */
/* #undef HAVE_LIBC */
/* Define to 1 if you have the `cap' library (-lcap). */
/* #undef HAVE_LIBCAP */
/* Define to 1 if you have the `c_r' library (-lc_r). */
/* #undef HAVE_LIBC_R */
/* Define to 1 if you have the `nsl' library (-lnsl). */
/* #undef HAVE_LIBNSL */
/* Define to 1 if you have the `pthread' library (-lpthread). */
/* #undef HAVE_LIBPTHREAD */
/* Define to 1 if you have the `scf' library (-lscf). */
/* #undef HAVE_LIBSCF */
/* Define to 1 if you have the `socket' library (-lsocket). */
/* #undef HAVE_LIBSOCKET */
/* Define to 1 if you have the `thr' library (-lthr). */
/* #undef HAVE_LIBTHR */
/* Define if libxml2 was found */
/* #undef HAVE_LIBXML2 */
/* Define to 1 if you have the <linux/capability.h> header file. */
/* #undef HAVE_LINUX_CAPABILITY_H */
/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the <net/if6.h> header file. */
/* #undef HAVE_NET_IF6_H */
/* Define to 1 if you have the `setlocale' function. */
#define HAVE_SETLOCALE 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have the <sys/capability.h> header file. */
/* #undef HAVE_SYS_CAPABILITY_H */
/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/prctl.h> header file. */
/* #undef HAVE_SYS_PRCTL_H */
/* Define to 1 if you have the <sys/select.h> header file. */
#define HAVE_SYS_SELECT_H 1
/* Define to 1 if you have the <sys/sockio.h> header file. */
#define HAVE_SYS_SOCKIO_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/sysctl.h> header file. */
#define HAVE_SYS_SYSCTL_H 1
/* Define to 1 if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <sys/un.h> header file. */
#define HAVE_SYS_UN_H 1
/* Define if running under Compaq TruCluster */
/* #undef HAVE_TRUCLUSTER */
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Defined if extern char *optarg is not declared. */
/* #undef NEED_OPTARG */
/* Define if connect does not honour the permission on the UNIX domain socket.
*/
/* #undef NEED_SECURE_DIRECTORY */
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""
/* Define to the full name of this package. */
#define PACKAGE_NAME ""
/* Define to the full name and version of this package. */
#define PACKAGE_STRING ""
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME ""
/* Define to the version of this package. */
#define PACKAGE_VERSION ""
/* Sets which flag to pass to open/fcntl to make non-blocking
(O_NDELAY/O_NONBLOCK). */
#define PORT_NONBLOCK O_NONBLOCK
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
/* Defined if you need to use ioctl(FIONBIO) instead a fcntl call to make
non-blocking. */
/* #undef USE_FIONBIO_IOCTL */
/* define if idnkit support is to be included. */
/* #undef WITH_IDN */
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#include <sys/endian.h>
#if _BYTE_ORDER == _BIG_ENDIAN
#define WORDS_BIGENDIAN
#endif
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `__inline__' or `__inline' if that's what the C compiler
calls it, or to nothing if 'inline' is not supported under any name. */
#ifndef __cplusplus
/* #undef inline */
#endif
/* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */
/* Define to `int' if <sys/types.h> does not define. */
/* #undef ssize_t */
/* Define to `unsigned long' if <sys/types.h> does not define. */
/* #undef uintptr_t */
/* Define to empty if the keyword `volatile' does not work. Warning: valid
code using `volatile' can become incorrect without. Disable with care. */
/* #undef volatile */

File diff suppressed because it is too large Load Diff

View File

@ -1,48 +0,0 @@
/*
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/***************
***************
*************** THIS FILE IS AUTOMATICALLY GENERATED BY gen.c.
*************** DO NOT EDIT!
***************
***************/
/*! \file */
#ifndef DNS_ENUMCLASS_H
#define DNS_ENUMCLASS_H 1
enum {
dns_rdataclass_reserved0 = 0,
#define dns_rdataclass_reserved0 \
((dns_rdataclass_t)dns_rdataclass_reserved0)
dns_rdataclass_in = 1,
#define dns_rdataclass_in ((dns_rdataclass_t)dns_rdataclass_in)
dns_rdataclass_chaos = 3,
#define dns_rdataclass_chaos ((dns_rdataclass_t)dns_rdataclass_chaos)
dns_rdataclass_ch = 3,
#define dns_rdataclass_ch ((dns_rdataclass_t)dns_rdataclass_ch)
dns_rdataclass_hs = 4,
#define dns_rdataclass_hs ((dns_rdataclass_t)dns_rdataclass_hs)
dns_rdataclass_none = 254,
#define dns_rdataclass_none ((dns_rdataclass_t)dns_rdataclass_none)
dns_rdataclass_any = 255
#define dns_rdataclass_any ((dns_rdataclass_t)dns_rdataclass_any)
};
#endif /* DNS_ENUMCLASS_H */

View File

@ -1,146 +0,0 @@
/*
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1998-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/***************
***************
*************** THIS FILE IS AUTOMATICALLY GENERATED BY gen.c.
*************** DO NOT EDIT!
***************
***************/
/*! \file */
#ifndef DNS_ENUMTYPE_H
#define DNS_ENUMTYPE_H 1
enum {
dns_rdatatype_none = 0,
dns_rdatatype_a = 1,
dns_rdatatype_ns = 2,
dns_rdatatype_md = 3,
dns_rdatatype_mf = 4,
dns_rdatatype_cname = 5,
dns_rdatatype_soa = 6,
dns_rdatatype_mb = 7,
dns_rdatatype_mg = 8,
dns_rdatatype_mr = 9,
dns_rdatatype_null = 10,
dns_rdatatype_wks = 11,
dns_rdatatype_ptr = 12,
dns_rdatatype_hinfo = 13,
dns_rdatatype_minfo = 14,
dns_rdatatype_mx = 15,
dns_rdatatype_txt = 16,
dns_rdatatype_rp = 17,
dns_rdatatype_afsdb = 18,
dns_rdatatype_x25 = 19,
dns_rdatatype_isdn = 20,
dns_rdatatype_rt = 21,
dns_rdatatype_nsap = 22,
dns_rdatatype_nsap_ptr = 23,
dns_rdatatype_sig = 24,
dns_rdatatype_key = 25,
dns_rdatatype_px = 26,
dns_rdatatype_gpos = 27,
dns_rdatatype_aaaa = 28,
dns_rdatatype_loc = 29,
dns_rdatatype_nxt = 30,
dns_rdatatype_srv = 33,
dns_rdatatype_naptr = 35,
dns_rdatatype_kx = 36,
dns_rdatatype_cert = 37,
dns_rdatatype_a6 = 38,
dns_rdatatype_dname = 39,
dns_rdatatype_opt = 41,
dns_rdatatype_apl = 42,
dns_rdatatype_ds = 43,
dns_rdatatype_sshfp = 44,
dns_rdatatype_ipseckey = 45,
dns_rdatatype_rrsig = 46,
dns_rdatatype_nsec = 47,
dns_rdatatype_dnskey = 48,
dns_rdatatype_dhcid = 49,
dns_rdatatype_spf = 99,
dns_rdatatype_unspec = 103,
dns_rdatatype_tkey = 249,
dns_rdatatype_tsig = 250,
dns_rdatatype_dlv = 32769,
dns_rdatatype_ixfr = 251,
dns_rdatatype_axfr = 252,
dns_rdatatype_mailb = 253,
dns_rdatatype_maila = 254,
dns_rdatatype_any = 255
};
#define dns_rdatatype_none ((dns_rdatatype_t)dns_rdatatype_none)
#define dns_rdatatype_a ((dns_rdatatype_t)dns_rdatatype_a)
#define dns_rdatatype_ns ((dns_rdatatype_t)dns_rdatatype_ns)
#define dns_rdatatype_md ((dns_rdatatype_t)dns_rdatatype_md)
#define dns_rdatatype_mf ((dns_rdatatype_t)dns_rdatatype_mf)
#define dns_rdatatype_cname ((dns_rdatatype_t)dns_rdatatype_cname)
#define dns_rdatatype_soa ((dns_rdatatype_t)dns_rdatatype_soa)
#define dns_rdatatype_mb ((dns_rdatatype_t)dns_rdatatype_mb)
#define dns_rdatatype_mg ((dns_rdatatype_t)dns_rdatatype_mg)
#define dns_rdatatype_mr ((dns_rdatatype_t)dns_rdatatype_mr)
#define dns_rdatatype_null ((dns_rdatatype_t)dns_rdatatype_null)
#define dns_rdatatype_wks ((dns_rdatatype_t)dns_rdatatype_wks)
#define dns_rdatatype_ptr ((dns_rdatatype_t)dns_rdatatype_ptr)
#define dns_rdatatype_hinfo ((dns_rdatatype_t)dns_rdatatype_hinfo)
#define dns_rdatatype_minfo ((dns_rdatatype_t)dns_rdatatype_minfo)
#define dns_rdatatype_mx ((dns_rdatatype_t)dns_rdatatype_mx)
#define dns_rdatatype_txt ((dns_rdatatype_t)dns_rdatatype_txt)
#define dns_rdatatype_rp ((dns_rdatatype_t)dns_rdatatype_rp)
#define dns_rdatatype_afsdb ((dns_rdatatype_t)dns_rdatatype_afsdb)
#define dns_rdatatype_x25 ((dns_rdatatype_t)dns_rdatatype_x25)
#define dns_rdatatype_isdn ((dns_rdatatype_t)dns_rdatatype_isdn)
#define dns_rdatatype_rt ((dns_rdatatype_t)dns_rdatatype_rt)
#define dns_rdatatype_nsap ((dns_rdatatype_t)dns_rdatatype_nsap)
#define dns_rdatatype_nsap_ptr ((dns_rdatatype_t)dns_rdatatype_nsap_ptr)
#define dns_rdatatype_sig ((dns_rdatatype_t)dns_rdatatype_sig)
#define dns_rdatatype_key ((dns_rdatatype_t)dns_rdatatype_key)
#define dns_rdatatype_px ((dns_rdatatype_t)dns_rdatatype_px)
#define dns_rdatatype_gpos ((dns_rdatatype_t)dns_rdatatype_gpos)
#define dns_rdatatype_aaaa ((dns_rdatatype_t)dns_rdatatype_aaaa)
#define dns_rdatatype_loc ((dns_rdatatype_t)dns_rdatatype_loc)
#define dns_rdatatype_nxt ((dns_rdatatype_t)dns_rdatatype_nxt)
#define dns_rdatatype_srv ((dns_rdatatype_t)dns_rdatatype_srv)
#define dns_rdatatype_naptr ((dns_rdatatype_t)dns_rdatatype_naptr)
#define dns_rdatatype_kx ((dns_rdatatype_t)dns_rdatatype_kx)
#define dns_rdatatype_cert ((dns_rdatatype_t)dns_rdatatype_cert)
#define dns_rdatatype_a6 ((dns_rdatatype_t)dns_rdatatype_a6)
#define dns_rdatatype_dname ((dns_rdatatype_t)dns_rdatatype_dname)
#define dns_rdatatype_opt ((dns_rdatatype_t)dns_rdatatype_opt)
#define dns_rdatatype_apl ((dns_rdatatype_t)dns_rdatatype_apl)
#define dns_rdatatype_ds ((dns_rdatatype_t)dns_rdatatype_ds)
#define dns_rdatatype_sshfp ((dns_rdatatype_t)dns_rdatatype_sshfp)
#define dns_rdatatype_ipseckey ((dns_rdatatype_t)dns_rdatatype_ipseckey)
#define dns_rdatatype_rrsig ((dns_rdatatype_t)dns_rdatatype_rrsig)
#define dns_rdatatype_nsec ((dns_rdatatype_t)dns_rdatatype_nsec)
#define dns_rdatatype_dnskey ((dns_rdatatype_t)dns_rdatatype_dnskey)
#define dns_rdatatype_dhcid ((dns_rdatatype_t)dns_rdatatype_dhcid)
#define dns_rdatatype_spf ((dns_rdatatype_t)dns_rdatatype_spf)
#define dns_rdatatype_unspec ((dns_rdatatype_t)dns_rdatatype_unspec)
#define dns_rdatatype_tkey ((dns_rdatatype_t)dns_rdatatype_tkey)
#define dns_rdatatype_tsig ((dns_rdatatype_t)dns_rdatatype_tsig)
#define dns_rdatatype_dlv ((dns_rdatatype_t)dns_rdatatype_dlv)
#define dns_rdatatype_ixfr ((dns_rdatatype_t)dns_rdatatype_ixfr)
#define dns_rdatatype_axfr ((dns_rdatatype_t)dns_rdatatype_axfr)
#define dns_rdatatype_mailb ((dns_rdatatype_t)dns_rdatatype_mailb)
#define dns_rdatatype_maila ((dns_rdatatype_t)dns_rdatatype_maila)
#define dns_rdatatype_any ((dns_rdatatype_t)dns_rdatatype_any)
#endif /* DNS_ENUMTYPE_H */

File diff suppressed because it is too large Load Diff

View File

@ -1,46 +0,0 @@
/* $NetBSD: atomic.h,v 1.9 2008/06/22 13:23:05 christos Exp $ */
#ifndef ISC_ATOMIC_H
#define ISC_ATOMIC_H 1
#include <sys/atomic.h>
#include <isc/types.h>
/*
* This routine atomically increments the value stored in 'p' by 'val', and
* returns the previous value.
*/
static __inline isc_int32_t
isc_atomic_xadd(isc_int32_t *p, isc_int32_t val) {
return (isc_int32_t)atomic_add_32_nv((volatile uint32_t *)p,
(uint32_t)val) - val;
}
#ifdef ISC_PLATFORM_HAVEXADDQ
static __inline isc_int64_t
isc_atomic_xaddq(isc_int64_t *p, isc_int64_t val) {
return (isc_int64_t)atomic_add_64_nv((volatile uint64_t *)p,
(uint64_t)val) - val;
}
#endif
/*
* This routine atomically stores the value 'val' in 'p'.
*/
static __inline void
isc_atomic_store(isc_int32_t *p, isc_int32_t val) {
(void)atomic_swap_32((volatile uint32_t *)p, (uint32_t)val);
}
/*
* This routine atomically replaces the value in 'p' with 'val', if the
* original value is equal to 'cmpval'. The original value is returned in any
* case.
*/
static __inline__ isc_int32_t
isc_atomic_cmpxchg(isc_int32_t *p, isc_int32_t cmpval, isc_int32_t val) {
return (isc_int32_t) atomic_cas_32((volatile uint32_t *)p,
(uint32_t)cmpval, (uint32_t)val);
}
#endif /* ISC_ATOMIC_H */

View File

@ -1,335 +0,0 @@
/* $NetBSD: platform.h,v 1.9 2008/06/23 09:19:34 ad Exp $ */
/*
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* Id: platform.h.in,v 1.45.60.2 2008/01/24 23:46:26 tbox Exp */
#ifndef ISC_PLATFORM_H
#define ISC_PLATFORM_H 1
/*! \file */
/*****
***** Platform-dependent defines.
*****/
/***
*** Network.
***/
/*! \brief
* Define if this system needs the <netinet/in6.h> header file included
* for full IPv6 support (pretty much only UnixWare).
*/
#undef ISC_PLATFORM_NEEDNETINETIN6H
/*! \brief
* Define if this system needs the <netinet6/in6.h> header file included
* to support in6_pkinfo (pretty much only BSD/OS).
*/
#undef ISC_PLATFORM_NEEDNETINET6IN6H
/*! \brief
* If sockaddrs on this system have an sa_len field, ISC_PLATFORM_HAVESALEN
* will be defined.
*/
#define ISC_PLATFORM_HAVESALEN 1
/*! \brief
* If this system has the IPv6 structure definitions, ISC_PLATFORM_HAVEIPV6
* will be defined.
*/
#define ISC_PLATFORM_HAVEIPV6 1
/*! \brief
* If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will
* be defined.
*/
#undef ISC_PLATFORM_NEEDIN6ADDRANY
/*! \brief
* If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
* will be defined.
*/
#undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
/*! \brief
* If this system has in6_pktinfo, ISC_PLATFORM_HAVEIN6PKTINFO will be
* defined.
*/
#define ISC_PLATFORM_HAVEIN6PKTINFO 1
/*! \brief
* If this system has in_addr6, rather than in6_addr, ISC_PLATFORM_HAVEINADDR6
* will be defined.
*/
#undef ISC_PLATFORM_HAVEINADDR6
/*! \brief
* If this system has sin6_scope_id, ISC_PLATFORM_HAVESCOPEID will be defined.
*/
#define ISC_PLATFORM_HAVESCOPEID 1
/*! \brief
* If this system needs inet_ntop(), ISC_PLATFORM_NEEDNTOP will be defined.
*/
#undef ISC_PLATFORM_NEEDNTOP
/*! \brief
* If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined.
*/
#undef ISC_PLATFORM_NEEDPTON
/*! \brief
* If this system needs inet_aton(), ISC_PLATFORM_NEEDATON will be defined.
*/
#undef ISC_PLATFORM_NEEDATON
/*! \brief
* If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined.
*/
#undef ISC_PLATFORM_NEEDPORTT
/*! \brief
* Define if the system has struct lifconf which is a extended struct ifconf
* for IPv6.
*/
#undef ISC_PLATFORM_HAVELIFCONF
/*! \brief
* Define if the system has struct if_laddrconf which is a extended struct
* ifconf for IPv6.
*/
#undef ISC_PLATFORM_HAVEIF_LADDRCONF
/*! \brief
* Define if the system has struct if_laddrreq.
*/
#undef ISC_PLATFORM_HAVEIF_LADDRREQ
/*! \brief
* Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR.
*/
#define ISC_NET_BSD44MSGHDR 1
/*! \brief
* Define if the system supports if_nametoindex.
*/
#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1
/*! \brief
* Define on some UnixWare systems to fix erroneous definitions of various
* IN6_IS_ADDR_* macros.
*/
#undef ISC_PLATFORM_FIXIN6ISADDR
/*
*** Printing.
***/
/*! \brief
* If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF
* will be defined.
*/
#undef ISC_PLATFORM_NEEDVSNPRINTF
/*! \brief
* If this system need a modern sprintf() that returns (int) not (char*).
*/
#undef ISC_PLATFORM_NEEDSPRINTF
/*! \brief
* The printf format string modifier to use with isc_uint64_t values.
*/
#define ISC_PLATFORM_QUADFORMAT "ll"
/***
*** String functions.
***/
/*
* If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
*/
#undef ISC_PLATFORM_NEEDSTRSEP
/*
* If the system needs strlcpy(), ISC_PLATFORM_NEEDSTRLCPY will be defined.
*/
#undef ISC_PLATFORM_NEEDSTRLCPY
/*
* If the system needs strlcat(), ISC_PLATFORM_NEEDSTRLCAT will be defined.
*/
#undef ISC_PLATFORM_NEEDSTRLCAT
/*
* Define if this system needs strtoul.
*/
#undef ISC_PLATFORM_NEEDSTRTOUL
/*
* Define if this system needs memmove.
*/
#undef ISC_PLATFORM_NEEDMEMMOVE
/***
*** Miscellaneous.
***/
/*
* Defined if we are using threads.
*/
#if 0 /* We will deal with this in the Makefile */
#define ISC_PLATFORM_USETHREADS 1
#endif
/*
* Defined if unistd.h does not cause fd_set to be delared.
*/
#undef ISC_PLATFORM_NEEDSYSSELECTH
/*
* Defined to <gssapi.h> or <gssapi/gssapi.h> for how to include
* the GSSAPI header.
*/
/*
* Type used for resource limits.
*/
#define ISC_PLATFORM_RLIMITTYPE rlim_t
/*
* Define if your compiler supports "long long int".
*/
#define ISC_PLATFORM_HAVELONGLONG 1
/*
* Define if PTHREAD_ONCE_INIT should be surrounded by braces to
* prevent compiler warnings (such as with gcc on Solaris 2.8).
*/
#undef ISC_PLATFORM_BRACEPTHREADONCEINIT
/*
* Used to control how extern data is linked; needed for Win32 platforms.
*/
#undef ISC_PLATFORM_USEDECLSPEC
/*
* Define if the platform has <sys/un.h>.
*/
#define ISC_PLATFORM_HAVESYSUNH 1
/*
* If the "xadd" operation is available on this architecture,
* ISC_PLATFORM_HAVEXADD will be defined.
*/
#define ISC_PLATFORM_HAVEXADD 1
/*
* If the "xaddq" operation (64bit xadd) is available on this architecture,
* ISC_PLATFORM_HAVEXADDQ will be defined.
*/
#if defined(_LP64)
#define ISC_PLATFORM_HAVEXADDQ 1
#endif
/*
* If the "atomic swap" operation is available on this architecture,
* ISC_PLATFORM_HAVEATOMICSTORE" will be defined.
*/
#define ISC_PLATFORM_HAVEATOMICSTORE 1
/*
* If the "compare-and-exchange" operation is available on this architecture,
* ISC_PLATFORM_HAVECMPXCHG will be defined.
*/
#define ISC_PLATFORM_HAVECMPXCHG 1
/*
* Define if gcc ASM extension is available
*/
#define ISC_PLATFORM_USEGCCASM 1
/*
* Define if Tru64 style ASM syntax must be used.
*/
#undef ISC_PLATFORM_USEOSFASM
/*
* Define if the standard __asm function must be used.
*/
/*
* Define if the platform has <strings.h>.
*/
#define ISC_PLATFORM_HAVESTRINGSH 1
/***
*** Windows dll support.
***/
/*
* Define if MacOS style of PPC assembly must be used.
* e.g. "r6", not "6", for register six.
*/
#ifndef ISC_PLATFORM_USEDECLSPEC
#define LIBISC_EXTERNAL_DATA
#define LIBDNS_EXTERNAL_DATA
#define LIBISCCC_EXTERNAL_DATA
#define LIBISCCFG_EXTERNAL_DATA
#define LIBBIND9_EXTERNAL_DATA
#else /*! \brief ISC_PLATFORM_USEDECLSPEC */
#ifdef LIBISC_EXPORTS
#define LIBISC_EXTERNAL_DATA __declspec(dllexport)
#else
#define LIBISC_EXTERNAL_DATA __declspec(dllimport)
#endif
#ifdef LIBDNS_EXPORTS
#define LIBDNS_EXTERNAL_DATA __declspec(dllexport)
#else
#define LIBDNS_EXTERNAL_DATA __declspec(dllimport)
#endif
#ifdef LIBISCCC_EXPORTS
#define LIBISCCC_EXTERNAL_DATA __declspec(dllexport)
#else
#define LIBISCCC_EXTERNAL_DATA __declspec(dllimport)
#endif
#ifdef LIBISCCFG_EXPORTS
#define LIBISCCFG_EXTERNAL_DATA __declspec(dllexport)
#else
#define LIBISCCFG_EXTERNAL_DATA __declspec(dllimport)
#endif
#ifdef LIBBIND9_EXPORTS
#define LIBBIND9_EXTERNAL_DATA __declspec(dllexport)
#else
#define LIBBIND9_EXTERNAL_DATA __declspec(dllimport)
#endif
#endif /*! \brief ISC_PLATFORM_USEDECLSPEC */
/*
* Tell emacs to use C mode for this file.
*
* Local Variables:
* mode: c
* End:
*/
#endif /* ISC_PLATFORM_H */

View File

@ -1,520 +0,0 @@
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* Id: netdb.h.in,v 1.39 2007/06/19 23:47:23 tbox Exp */
/*! \file */
#ifndef LWRES_NETDB_H
#define LWRES_NETDB_H 1
#include <stddef.h> /* Required on FreeBSD (and others?) for size_t. */
#include <netdb.h> /* Contractual provision. */
#include <lwres/lang.h>
/*
* Define if <netdb.h> does not declare struct addrinfo.
*/
#undef ISC_LWRES_NEEDADDRINFO
#ifdef ISC_LWRES_NEEDADDRINFO
struct addrinfo {
int ai_flags; /* AI_PASSIVE, AI_CANONNAME */
int ai_family; /* PF_xxx */
int ai_socktype; /* SOCK_xxx */
int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
size_t ai_addrlen; /* Length of ai_addr */
char *ai_canonname; /* Canonical name for hostname */
struct sockaddr *ai_addr; /* Binary address */
struct addrinfo *ai_next; /* Next structure in linked list */
};
#endif
/*
* Undefine all #defines we are interested in as <netdb.h> may or may not have
* defined them.
*/
/*
* Error return codes from gethostbyname() and gethostbyaddr()
* (left in extern int h_errno).
*/
#undef NETDB_INTERNAL
#undef NETDB_SUCCESS
#undef HOST_NOT_FOUND
#undef TRY_AGAIN
#undef NO_RECOVERY
#undef NO_DATA
#undef NO_ADDRESS
#define NETDB_INTERNAL -1 /* see errno */
#define NETDB_SUCCESS 0 /* no problem */
#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */
#define TRY_AGAIN 2 /* Non-Authoritive Host not found, or SERVERFAIL */
#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
#define NO_DATA 4 /* Valid name, no data record of requested type */
#define NO_ADDRESS NO_DATA /* no address, look for MX record */
/*
* Error return codes from getaddrinfo()
*/
#undef EAI_ADDRFAMILY
#undef EAI_AGAIN
#undef EAI_BADFLAGS
#undef EAI_FAIL
#undef EAI_FAMILY
#undef EAI_MEMORY
#undef EAI_NODATA
#undef EAI_NONAME
#undef EAI_SERVICE
#undef EAI_SOCKTYPE
#undef EAI_SYSTEM
#undef EAI_BADHINTS
#undef EAI_PROTOCOL
#undef EAI_MAX
#define EAI_ADDRFAMILY 1 /* address family for hostname not supported */
#define EAI_AGAIN 2 /* temporary failure in name resolution */
#define EAI_BADFLAGS 3 /* invalid value for ai_flags */
#define EAI_FAIL 4 /* non-recoverable failure in name resolution */
#define EAI_FAMILY 5 /* ai_family not supported */
#define EAI_MEMORY 6 /* memory allocation failure */
#define EAI_NODATA 7 /* no address associated with hostname */
#define EAI_NONAME 8 /* hostname nor servname provided, or not known */
#define EAI_SERVICE 9 /* servname not supported for ai_socktype */
#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
#define EAI_SYSTEM 11 /* system error returned in errno */
#define EAI_BADHINTS 12
#define EAI_PROTOCOL 13
#define EAI_MAX 14
/*
* Flag values for getaddrinfo()
*/
#undef AI_PASSIVE
#undef AI_CANONNAME
#undef AI_NUMERICHOST
#define AI_PASSIVE 0x00000001
#define AI_CANONNAME 0x00000002
#define AI_NUMERICHOST 0x00000004
/*
* Flag values for getipnodebyname()
*/
#undef AI_V4MAPPED
#undef AI_ALL
#undef AI_ADDRCONFIG
#undef AI_DEFAULT
#define AI_V4MAPPED 0x00000008
#define AI_ALL 0x00000010
#define AI_ADDRCONFIG 0x00000020
#define AI_DEFAULT (AI_V4MAPPED|AI_ADDRCONFIG)
/*
* Constants for lwres_getnameinfo()
*/
#undef NI_MAXHOST
#undef NI_MAXSERV
#define NI_MAXHOST 1025
#define NI_MAXSERV 32
/*
* Flag values for lwres_getnameinfo()
*/
#undef NI_NOFQDN
#undef NI_NUMERICHOST
#undef NI_NAMEREQD
#undef NI_NUMERICSERV
#undef NI_DGRAM
#undef NI_NUMERICSCOPE
#define NI_NOFQDN 0x00000001
#define NI_NUMERICHOST 0x00000002
#define NI_NAMEREQD 0x00000004
#define NI_NUMERICSERV 0x00000008
#define NI_DGRAM 0x00000010
#define NI_NUMERICSCOPE 0x00000020 /*2553bis-00*/
/*
* Define if <netdb.h> does not declare struct rrsetinfo.
*/
#define ISC_LWRES_NEEDRRSETINFO 1
#ifdef ISC_LWRES_NEEDRRSETINFO
/*
* Structures for getrrsetbyname()
*/
struct rdatainfo {
unsigned int rdi_length;
unsigned char *rdi_data;
};
struct rrsetinfo {
unsigned int rri_flags;
int rri_rdclass;
int rri_rdtype;
unsigned int rri_ttl;
unsigned int rri_nrdatas;
unsigned int rri_nsigs;
char *rri_name;
struct rdatainfo *rri_rdatas;
struct rdatainfo *rri_sigs;
};
/*
* Flags for getrrsetbyname()
*/
#define RRSET_VALIDATED 0x00000001
/* Set was dnssec validated */
/*
* Return codes for getrrsetbyname()
*/
#define ERRSET_SUCCESS 0
#define ERRSET_NOMEMORY 1
#define ERRSET_FAIL 2
#define ERRSET_INVAL 3
#define ERRSET_NONAME 4
#define ERRSET_NODATA 5
#endif
/*
* Define to map into lwres_ namespace.
*/
#define LWRES_NAMESPACE
#ifdef LWRES_NAMESPACE
/*
* Use our versions not the ones from the C library.
*/
#ifdef getnameinfo
#undef getnameinfo
#endif
#define getnameinfo lwres_getnameinfo
#ifdef getaddrinfo
#undef getaddrinfo
#endif
#define getaddrinfo lwres_getaddrinfo
#ifdef freeaddrinfo
#undef freeaddrinfo
#endif
#define freeaddrinfo lwres_freeaddrinfo
#ifdef gai_strerror
#undef gai_strerror
#endif
#define gai_strerror lwres_gai_strerror
#ifdef herror
#undef herror
#endif
#define herror lwres_herror
#ifdef hstrerror
#undef hstrerror
#endif
#define hstrerror lwres_hstrerror
#ifdef getipnodebyname
#undef getipnodebyname
#endif
#define getipnodebyname lwres_getipnodebyname
#ifdef getipnodebyaddr
#undef getipnodebyaddr
#endif
#define getipnodebyaddr lwres_getipnodebyaddr
#ifdef freehostent
#undef freehostent
#endif
#define freehostent lwres_freehostent
#ifdef gethostbyname
#undef gethostbyname
#endif
#define gethostbyname lwres_gethostbyname
#ifdef gethostbyname2
#undef gethostbyname2
#endif
#define gethostbyname2 lwres_gethostbyname2
#ifdef gethostbyaddr
#undef gethostbyaddr
#endif
#define gethostbyaddr lwres_gethostbyaddr
#ifdef gethostent
#undef gethostent
#endif
#define gethostent lwres_gethostent
#ifdef sethostent
#undef sethostent
#endif
#define sethostent lwres_sethostent
#ifdef endhostent
#undef endhostent
#endif
#define endhostent lwres_endhostent
/* #define sethostfile lwres_sethostfile */
#ifdef gethostbyname_r
#undef gethostbyname_r
#endif
#define gethostbyname_r lwres_gethostbyname_r
#ifdef gethostbyaddr_r
#undef gethostbyaddr_r
#endif
#define gethostbyaddr_r lwres_gethostbyaddr_r
#ifdef gethostent_r
#undef gethostent_r
#endif
#define gethostent_r lwres_gethostent_r
#ifdef sethostent_r
#undef sethostent_r
#endif
#define sethostent_r lwres_sethostent_r
#ifdef endhostent_r
#undef endhostent_r
#endif
#define endhostent_r lwres_endhostent_r
#ifdef getrrsetbyname
#undef getrrsetbyname
#endif
#define getrrsetbyname lwres_getrrsetbyname
#ifdef freerrset
#undef freerrset
#endif
#define freerrset lwres_freerrset
#ifdef notyet
#define getservbyname lwres_getservbyname
#define getservbyport lwres_getservbyport
#define getservent lwres_getservent
#define setservent lwres_setservent
#define endservent lwres_endservent
#define getservbyname_r lwres_getservbyname_r
#define getservbyport_r lwres_getservbyport_r
#define getservent_r lwres_getservent_r
#define setservent_r lwres_setservent_r
#define endservent_r lwres_endservent_r
#define getprotobyname lwres_getprotobyname
#define getprotobynumber lwres_getprotobynumber
#define getprotoent lwres_getprotoent
#define setprotoent lwres_setprotoent
#define endprotoent lwres_endprotoent
#define getprotobyname_r lwres_getprotobyname_r
#define getprotobynumber_r lwres_getprotobynumber_r
#define getprotoent_r lwres_getprotoent_r
#define setprotoent_r lwres_setprotoent_r
#define endprotoent_r lwres_endprotoent_r
#ifdef getnetbyname
#undef getnetbyname
#endif
#define getnetbyname lwres_getnetbyname
#ifdef getnetbyaddr
#undef getnetbyaddr
#endif
#define getnetbyaddr lwres_getnetbyaddr
#ifdef getnetent
#undef getnetent
#endif
#define getnetent lwres_getnetent
#ifdef setnetent
#undef setnetent
#endif
#define setnetent lwres_setnetent
#ifdef endnetent
#undef endnetent
#endif
#define endnetent lwres_endnetent
#ifdef getnetbyname_r
#undef getnetbyname_r
#endif
#define getnetbyname_r lwres_getnetbyname_r
#ifdef getnetbyaddr_r
#undef getnetbyaddr_r
#endif
#define getnetbyaddr_r lwres_getnetbyaddr_r
#ifdef getnetent_r
#undef getnetent_r
#endif
#define getnetent_r lwres_getnetent_r
#ifdef setnetent_r
#undef setnetent_r
#endif
#define setnetent_r lwres_setnetent_r
#ifdef endnetent_r
#undef endnetent_r
#endif
#define endnetent_r lwres_endnetent_r
#endif /* notyet */
#ifdef h_errno
#undef h_errno
#endif
#define h_errno lwres_h_errno
#endif /* LWRES_NAMESPACE */
LWRES_LANG_BEGINDECLS
extern int lwres_h_errno;
int lwres_getaddrinfo(const char *, const char *,
const struct addrinfo *, struct addrinfo **);
int lwres_getnameinfo(const struct sockaddr *, size_t, char *,
size_t, char *, size_t, int);
void lwres_freeaddrinfo(struct addrinfo *);
char *lwres_gai_strerror(int);
struct hostent *lwres_gethostbyaddr(const char *, int, int);
struct hostent *lwres_gethostbyname(const char *);
struct hostent *lwres_gethostbyname2(const char *, int);
struct hostent *lwres_gethostent(void);
struct hostent *lwres_getipnodebyname(const char *, int, int, int *);
struct hostent *lwres_getipnodebyaddr(const void *, size_t, int, int *);
void lwres_endhostent(void);
void lwres_sethostent(int);
/* void lwres_sethostfile(const char *); */
void lwres_freehostent(struct hostent *);
int lwres_getrrsetbyname(const char *, unsigned int, unsigned int,
unsigned int, struct rrsetinfo **);
void lwres_freerrset(struct rrsetinfo *);
#ifdef notyet
struct netent *lwres_getnetbyaddr(unsigned long, int);
struct netent *lwres_getnetbyname(const char *);
struct netent *lwres_getnetent(void);
void lwres_endnetent(void);
void lwres_setnetent(int);
struct protoent *lwres_getprotobyname(const char *);
struct protoent *lwres_getprotobynumber(int);
struct protoent *lwres_getprotoent(void);
void lwres_endprotoent(void);
void lwres_setprotoent(int);
struct servent *lwres_getservbyname(const char *, const char *);
struct servent *lwres_getservbyport(int, const char *);
struct servent *lwres_getservent(void);
void lwres_endservent(void);
void lwres_setservent(int);
#endif /* notyet */
void lwres_herror(const char *);
const char *lwres_hstrerror(int);
struct hostent *lwres_gethostbyaddr_r(const char *, int, int, struct hostent *,
char *, int, int *);
struct hostent *lwres_gethostbyname_r(const char *, struct hostent *,
char *, int, int *);
struct hostent *lwres_gethostent_r(struct hostent *, char *, int, int *);
void lwres_sethostent_r(int);
void lwres_endhostent_r(void);
#ifdef notyet
struct netent *lwres_getnetbyname_r(const char *, struct netent *,
char *, int);
struct netent *lwres_getnetbyaddr_r(long, int, struct netent *,
char *, int);
struct netent *lwres_getnetent_r(struct netent *, char *, int);
void lwres_setnetent_r(int);
void lwres_endnetent_r(void);
struct protoent *lwres_getprotobyname_r(const char *,
struct protoent *, char *, int);
struct protoent *lwres_getprotobynumber_r(int,
struct protoent *, char *, int);
struct protoent *lwres_getprotoent_r(struct protoent *, char *, int);
void lwres_setprotoent_r(int);
void lwres_endprotoent_r(void);
struct servent *lwres_getservbyname_r(const char *name, const char *,
struct servent *, char *, int);
struct servent *lwres_getservbyport_r(int port, const char *,
struct servent *, char *, int);
struct servent *lwres_getservent_r(struct servent *, char *, int);
void lwres_setservent_r(int);
void lwres_endservent_r(void);
#endif /* notyet */
LWRES_LANG_ENDDECLS
#ifdef notyet
/* This is nec'y to make this include file properly replace the sun version. */
#ifdef sun
#ifdef __GNU_LIBRARY__
#include <rpc/netdb.h> /* Required. */
#else /* !__GNU_LIBRARY__ */
struct rpcent {
char *r_name; /* name of server for this rpc program */
char **r_aliases; /* alias list */
int r_number; /* rpc program number */
};
struct rpcent *lwres_getrpcbyname();
struct rpcent *lwres_getrpcbynumber(),
struct rpcent *lwres_getrpcent();
#endif /* __GNU_LIBRARY__ */
#endif /* sun */
#endif /* notyet */
/*
* Tell Emacs to use C mode on this file.
* Local variables:
* mode: c
* End:
*/
#endif /* LWRES_NETDB_H */

View File

@ -1,120 +0,0 @@
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
/* Id: platform.h.in,v 1.21 2007/06/19 23:47:23 tbox Exp */
/*! \file */
#ifndef LWRES_PLATFORM_H
#define LWRES_PLATFORM_H 1
/*****
***** Platform-dependent defines.
*****/
/***
*** Network.
***/
/*
* Define if this system needs the <netinet/in6.h> header file for IPv6.
*/
#undef LWRES_PLATFORM_NEEDNETINETIN6H
/*
* Define if this system needs the <netinet6/in6.h> header file for IPv6.
*/
#undef LWRES_PLATFORM_NEEDNETINET6IN6H
/*
* If sockaddrs on this system have an sa_len field, LWRES_PLATFORM_HAVESALEN
* will be defined.
*/
#define LWRES_PLATFORM_HAVESALEN 1
/*
* If this system has the IPv6 structure definitions, LWRES_PLATFORM_HAVEIPV6
* will be defined.
*/
#define LWRES_PLATFORM_HAVEIPV6 1
/*
* If this system is missing in6addr_any, LWRES_PLATFORM_NEEDIN6ADDRANY will
* be defined.
*/
#undef LWRES_PLATFORM_NEEDIN6ADDRANY
/*
* If this system is missing in6addr_loopback,
* LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK will be defined.
*/
#undef LWRES_PLATFORM_NEEDIN6ADDRLOOPBACK
/*
* If this system has in_addr6, rather than in6_addr,
* LWRES_PLATFORM_HAVEINADDR6 will be defined.
*/
#undef LWRES_PLATFORM_HAVEINADDR6
/*
* Defined if unistd.h does not cause fd_set to be delared.
*/
#undef LWRES_PLATFORM_NEEDSYSSELECTH
/*
* Used to control how extern data is linked; needed for Win32 platforms.
*/
#undef LWRES_PLATFORM_USEDECLSPEC
/*
* Defined this system needs vsnprintf() and snprintf().
*/
#undef LWRES_PLATFORM_NEEDVSNPRINTF
/*
* If this system need a modern sprintf() that returns (int) not (char*).
*/
#undef LWRES_PLATFORM_NEEDSPRINTF
/*
* The printf format string modifier to use with lwres_uint64_t values.
*/
#define LWRES_PLATFORM_QUADFORMAT "ll"
/*! \brief
* Define if this system needs strtoul.
*/
#undef LWRES_PLATFORM_NEEDSTRTOUL
#ifndef LWRES_PLATFORM_USEDECLSPEC
#define LIBLWRES_EXTERNAL_DATA
#else
#ifdef LIBLWRES_EXPORTS
#define LIBLWRES_EXTERNAL_DATA __declspec(dllexport)
#else
#define LIBLWRES_EXTERNAL_DATA __declspec(dllimport)
#endif
#endif
/*
* Tell Emacs to use C mode on this file.
* Local Variables:
* mode: c
* End:
*/
#endif /* LWRES_PLATFORM_H */

View File

@ -1,32 +0,0 @@
# $NetBSD: Makefile,v 1.20 2008/08/29 00:02:24 gmcgarry Exp $
.include <bsd.own.mk>
PROG= named
MAN= named.8 lwresd.8 named.conf.5
BINDIR= /usr/sbin
LINKS= ${BINDIR}/named ${BINDIR}/lwresd
.include "${.CURDIR}/../Makefile.inc"
DIST=${IDIST}/bin/named
CPPFLAGS+=-I${DIST}/include -I${DIST}/unix/include
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
.for f in client
COPTS.${f}.c+= -fno-strict-aliasing
.endfor
.endif
.PATH: ${DIST}/unix ${DIST}
SRCS_UNIX= os.c
SRCS= builtin.c client.c config.c control.c controlconf.c \
interfacemgr.c listenlist.c log.c logconf.c \
lwaddr.c lwdclient.c lwderror.c \
lwdgabn.c lwdgnba.c lwdgrbn.c lwdnoop.c lwresd.c lwsearch.c \
main.c notify.c query.c server.c sortlist.c statschannel.c \
tkeyconf.c tsigconf.c \
update.c xfrout.c zoneconf.c ${SRCS_UNIX}
.include <bsd.prog.mk>

View File

@ -1,17 +0,0 @@
# $NetBSD: Makefile,v 1.7 2004/05/18 00:10:39 christos Exp $
.include <bsd.own.mk>
PROG= nslookup
SRCS= nslookup.c dighost.c
MAN= nslookup.8
BINDIR= /usr/bin
.include "${.CURDIR}/../Makefile.inc"
DIST=${IDIST}/bin/dig
CPPFLAGS+= -I${DIST}/include
.PATH: ${DIST}
.include <bsd.prog.mk>

View File

@ -1,518 +0,0 @@
.\" $NetBSD: nslookup.8,v 1.4 2009/04/09 04:10:40 joerg Exp $
.\"
.\"
.\" ++Copyright++ 1985, 1989
.\" -
.\" Copyright (c) 1985, 1989
.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\" -
.\" Portions Copyright (c) 1993 by Digital Equipment Corporation.
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies, and that
.\" the name of Digital Equipment Corporation not be used in advertising or
.\" publicity pertaining to distribution of the document or software without
.\" specific, written prior permission.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
.\" WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
.\" CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
.\" DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
.\" PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
.\" ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
.\" SOFTWARE.
.\" -
.\" --Copyright--
.\"
.\" @(#)nslookup.8 5.3 (Berkeley) 6/24/90
.\"
.Dd June 24, 1990
.Dt NSLOOKUP 8
.Os
.Sh NAME
.Nm nslookup
.Nd query Internet name servers interactively
.Sh SYNOPSIS
.Nm nslookup
.Op Fl option Ar ...
.Op Ar host-to-find | Fl Op Ar server
.Sh DESCRIPTION
.Nm
is a program to query Internet domain name servers.
.Nm
has two modes: interactive and non-interactive.
Interactive mode allows the user to query name servers for
information about various hosts and domains or to print a list of hosts
in a domain.
Non-interactive mode is used to print just the name and requested information
for a host or domain.
.Sh ARGUMENTS
Interactive mode is entered in the following cases:
.Bl -enum
.It
when no arguments are given (the default name server will be used),
.It
when the first argument is a hyphen
.Pq Sq \&-
and the second argument
is the host name or Internet address of a name server.
.El
.Pp
Non-interactive mode is used when the name or Internet address
of the host to be looked up
is given as the first argument.
The optional second argument specifies
the host name or address of a name server.
.Pp
The options listed under the
.Dq Li set
command below can be specified in
the
.Pa .nslookuprc
file in the user's home directory if they are listed
one per line.
Options can also be specified on the command line if they precede
the arguments and are prefixed with a hyphen.
For example, to change the default query type to host information,
and the initial timeout to 10 seconds, type:
.Bd -literal -offset indent
nslookup -query=hinfo -timeout=10
.Ed
.Sh INTERACTIVE COMMANDS
Commands may be interrupted at any time by typing a control-C.
To exit, type a control-D
.Pq Dv EOF
or type
.Li exit .
The command line length must be less than 256 characters.
To treat a built-in command as a host name,
precede it with an escape character
.Pq Sq \e .
.Em N.B.: \&An unrecognized command will be interpreted as a host name.
.Bl -tag -width "lserver"
.It Ar host Op Ar server
Look up information for
.Ar host
using the current default server or using
.Ar server ,
if specified.
If
.Ar host
is an Internet address and the query type is
.Dv A
or
.Dv PTR ,
the name of the host is returned.
If
.Ar host
is a name and does not have a trailing period, the default
domain name is appended to the name.
(This behavior depends on the state of the
.Ic set
options
.Ic domain , srchlist , defname ,
and
.Ic search . )
.Pp
To look up a host not in the current domain, append a period to
the name.
.It Ic server Ar domain
.It Ic lserver Ar domain
Change the default server to
.Ar domain ;
.Ic lserver
uses the initial server to look up information about
.Ar domain ,
while
.Ic server
uses the current default server.
If an authoritative answer can't be found, the names of servers
that might have the answer are returned.
.It Ic root
Changes the default server to the server for the root of the domain name space.
Currently, the host
.Li ns.internic.net
is used.
(This command is a synonym for
.Dq Ic lserver ns.internic.net . )
The name of the root server can be changed with the
.Dq Ic set root
command.
.It Ic finger Oo Ar name Oc Op Ic \*[Gt] Ar filename
.It Ic finger Oo Ar name Oc Op Ic \*[Gt]\*[Gt] Ar filename
Connects with the finger server on the current host.
The current host is defined when a previous lookup for a host
was successful and returned address information (see the
.Dq Ic set querytype Ns = Ns Dv A
command).
The
.Ar name
is optional.
.Ic \*[Gt]
and
.Ic \*[Gt]\*[Gt]
can be used to redirect output in the usual manner.
.It Ic ls Oo Ar option Oc Ar domain Op Ic \*[Gt] Ar filename
.It Ic ls Oo Ar option Oc Ar domain Op Ic \*[Gt]\*[Gt] Ar filename
List the information available for
.Ar domain ,
optionally creating or appending to
.Ar filename .
The default output contains host names and their Internet addresses.
.Ar Option
can be one of the following:
.Bl -tag -width "-a "
.It Fl t Ar querytype
lists all records of the specified type (see
.Ar querytype
below).
.It Fl a
lists aliases of hosts in the domain;
synonym for
.Dq Fl t Dv CNAME .
.It Fl d
lists all records for the domain;
synonym for
.Dq Fl t Dv ANY .
.It Fl h
lists CPU and operating system information for the domain;
synonym for
.Dq Fl t Dv HINFO .
.It Fl s
lists well-known services of hosts in the domain;
synonym for
.Dq Fl t Dv WKS .
.El
.Pp
When output is directed to a file, hash marks are printed for every
50 records received from the server.
.It Ic view Ar filename
Sorts and lists the output of previous
.Ic ls
command(s) with
.Xr more 1 .
.It Ic help
.It Ic ?\&
Prints a brief summary of commands.
.It Ic exit
Exits the program.
.It Ic set Ar keyword Ns Op = Ns Ar value
This command is used to change state information that affects the lookups.
Valid keywords are:
.Bl -tag -width "class=v"
.It Ic all
Prints the current values of the frequently-used options to
.Ic set .
Information about the current default server and host is also printed.
.It Ic class Ns = Ns Ar value
Change the query class to one of:
.Bl -tag -width "HESIOD "
.It Dv IN
the Internet class
.It Dv CHAOS
the Chaos class
.It Dv HESIOD
the MIT Athena Hesiod class
.It Dv ANY
wildcard (any of the above)
.El
.Pp
The class specifies the protocol group of the information.
.Pp
(Default =
.Dv IN ;
abbreviation =
.Ic cl )
.It Oo Ic no Oc Ns Ic debug
Turn debugging mode on.
A lot more information is printed about the
packet sent to the server and the resulting answer.
.Pp
(Default =
.Ic nodebug ;
abbreviation =
.Oo Ic no Oc Ns Ic deb )
.It Oo Ic no Oc Ns Ic d2
Turn exhaustive debugging mode on.
Essentially all fields of every packet are printed.
.Pp
(Default =
.Ic nod2 )
.It Ic domain Ns = Ns Ar name
Change the default domain name to
.Ar name .
The default domain name is appended to a lookup request depending on the
state of the
.Ic defname
and
.Ic search
options.
The domain search list contains the parents of the default domain if it has
at least two components in its name.
For example, if the default domain
is CC.Berkeley.EDU, the search list is CC.Berkeley.EDU and Berkeley.EDU.
Use the
.Dq Ic set srchlist
command to specify a different list.
Use the
.Dq Ic set all
command to display the list.
.Pp
(Default = value from
.Xr hostname 1 ,
.Pa /etc/resolv.conf ,
or
.Ev LOCALDOMAIN ;
abbreviation =
.Ic do )
.It Ic srchlist Ns No = Ns Ar name1 Ns No / Ns Ar name2 Ns No / Ns Ar ...
Change the default domain name to
.Ar name1
and the domain search list
to
.Ar name1 , name2 ,
etc.
A maximum of 6 names separated by slashes
.Pq Sq /
can be specified.
For example,
.Bd -literal -offset indent
set srchlist=lcs.MIT.EDU/ai.MIT.EDU/MIT.EDU
.Ed
.Pp
sets the domain to lcs.MIT.EDU and the search list to the three names.
This command overrides the
default domain name and search list of the
.Dq Ic set domain
command.
Use the
.Dq Ic set all
command to display the list.
.Pp
(Default = value based on
.Xr hostname 1 ,
.Pa /etc/resolv.conf ,
or
.Ev LOCALDOMAIN ;
abbreviation =
.Ic srchl )
.It Oo Ic no Oc Ns Ic defname
If set, append the default domain name to a single-component lookup request
(i.e., one that does not contain a period).
.Pp
(Default =
.Ic defname ;
abbreviation =
.Oo Ic no Oc Ns Ic defname )
.It Oo Ic no Oc Ns Ic search
If the lookup request contains at least one period but
.Em doesn't
end with a trailing period, append the domain names in the domain search list
to the request until an answer is received.
.Pp
(Default =
.Ic search ;
abbreviation =
.Oo Ic no Oc Ns Ic sea )
.It Ic port Ns = Ns Ar value
Change the default TCP/UDP name server port to
.Ar value .
.Pp
(Default = 53;
abbreviation =
.Ic \&po )
.It Ic querytype Ns = Ns Ar value
.It Ic type Ns = Ns Ar value
Change the type of information query to one of:
.Bl -tag -width "HINFO "
.It Dv A
the host's Internet address.
.It Dv CNAME
the canonical name for an alias.
.It Dv HINFO
the host CPU and operating system type.
.It Dv MINFO
the mailbox or mail list information.
.It Dv MX
the mail exchanger.
.It Dv NS
the name server for the named zone.
.It Dv PTR
the host name if the query is an Internet address;
otherwise, the pointer to other information.
.It Dv SOA
the domain's
.Dq start-of-authority
information.
.It Dv TXT
the text information.
.It Dv UINFO
the user information.
.It Dv WKS
the supported well-known services.
.El
.Pp
Other types
.Dv ( ANY , AXFR , MB ,
.Dv MD , MF , NULL )
are described in the RFC-1035 document.
.Pp
(Default =
.Dv A ;
abbreviations =
.Ic q , ty )
.It Oo Ic no Oc Ns Ic recurse
Tell the name server to query other servers if it does not have the
information.
.Pp
(Default =
.Ic recurse ;
abbreviation =
.Oo Ic no Oc Ns Ic rec )
.It Ic retry Ns = Ns Ar number
Set the number of retries to
.Ar number .
When a reply to a request is not received within a certain
amount of time (changed with
.Dq Ic set timeout ) ,
the timeout period is doubled and the request is resent.
The retry value controls how many times a request is resent before giving up.
.Pp
(Default = 4, abbreviation =
.Ic ret )
.It Ic root Ns = Ns Ar host
Change the name of the root server to
.Ar host .
This affects the
.Dq Ic root
command.
.Pp
(Default =
.Ic ns.internic.net. ;
abbreviation =
.Ic ro )
.It Ic timeout Ns = Ns Ar number
Change the initial timeout interval for waiting for a reply to
.Ar number
seconds.
Each retry doubles the timeout period.
.Pp
(Default = 5 seconds; abbreviation =
.Ic ti )
.It Oo Ic no Oc Ns Ic vc
Always use a virtual circuit when sending requests to the server.
.Pp
(Default =
.Ic novc ;
abbreviation =
.Oo Ic no Oc Ns Ic v )
.It Oo Ic no Oc Ns Ic ignoretc
Ignore packet truncation errors.
.Pp
(Default =
.Ic noignoretc ;
abbreviation =
.Oo Ic no Oc Ns Ic ig )
.El
.El
.Sh ENVIRONMENT
.Bl -tag -width "HOSTALIASESXXXX" -compact
.It Ev HOSTALIASES
file containing host aliases
.It Ev LOCALDOMAIN
overrides default domain
.El
.Sh FILES
.Bl -tag -width "/usr/share/misc/nslookup.helpXXX" -compact
.It Pa /etc/resolv.conf
initial domain name and name server addresses
.It Pa $HOME/.nslookuprc
user's initial options
.It Pa /usr/share/misc/nslookup.help
summary of commands
.El
.Sh DIAGNOSTICS
If the lookup request was not successful, an error message is printed.
Possible errors are:
.Bl -tag -width "Timed"
.It Li Timed out
The server did not respond to a request after a certain amount of
time (changed with
.Dq Ic set timeout Ns = Ns Ar value )
and a certain number of retries (changed with
.Do
.Ic set retry Ns = Ns Ar value
.Dc ) .
.It Li \&No response from server
No name server is running on the server machine.
.It Li \&No records
The server does not have resource records of the current query type for the
host, although the host name is valid.
The query type is specified with the
.Dq Ic set querytype
command.
.It Li Non-existent domain
The host or domain name does not exist.
.It Li Connection refused
.It Li Network is unreachable
The connection to the name or finger server could not be made
at the current time.
This error commonly occurs with
.Ic ls
and
.Ic finger
requests.
.It Li Server failure
The name server found an internal inconsistency in its database
and could not return a valid answer.
.It Li Refused
The name server refused to service the request.
.It Li Format error
The name server found that the request packet was not in the proper format.
It may indicate an error in
.Nm nslookup .
.El
.Sh SEE ALSO
.Xr resolver 3 ,
.Xr resolv.conf 5 ,
.Xr named 8
.Rs
.%A P.V. Mockapetris
.%T Domain Names - Concepts and Facilities
.%R RFC 1034
.%D Nov 1, 1987
.Re
.Rs
.%A P.V. Mockapetris
.%T Domain Names - Implementation and Specification
.%R RFC 1035
.%D Nov 1, 1987
.Re
.Sh AUTHORS
Andrew Cherenson

View File

@ -1,15 +0,0 @@
# $NetBSD: Makefile,v 1.5 2004/05/18 00:10:39 christos Exp $
.include <bsd.own.mk>
PROG= nsupdate
MAN= nsupdate.8
BINDIR= /usr/bin
.include "${.CURDIR}/../Makefile.inc"
DIST=${IDIST}/bin/nsupdate
.PATH: ${DIST}
.include <bsd.prog.mk>

View File

@ -1,20 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2004/05/18 00:06:58 christos Exp $
.include <bsd.own.mk>
PROG= rndc-confgen
SRCS= rndc-confgen.c util.c os.c
MAN= rndc-confgen.8
BINDIR= /usr/sbin
.include "${.CURDIR}/../Makefile.inc"
DIST=${IDIST}/bin/rndc
CPPFLAGS+= -I${DIST}/include \
-DRNDC_CONFFILE=\"${SYSCONFDIR}/rndc.conf\" \
-DRNDC_KEYFILE=\"${SYSCONFDIR}/rndc.key\" \
.PATH: ${DIST}/unix ${DIST}
.include <bsd.prog.mk>

View File

@ -1,20 +0,0 @@
# $NetBSD: Makefile,v 1.1.1.1 2004/05/18 00:06:58 christos Exp $
.include <bsd.own.mk>
PROG= rndc
SRCS= rndc.c util.c
MAN= rndc.8 rndc.conf.5
BINDIR= /usr/sbin
.include "${.CURDIR}/../Makefile.inc"
DIST=${IDIST}/bin/rndc
CPPFLAGS+= -I${DIST}/include \
-DRNDC_CONFFILE=\"${SYSCONFDIR}/rndc.conf\" \
-DRNDC_KEYFILE=\"${SYSCONFDIR}/rndc.key\" \
.PATH: ${DIST}
.include <bsd.prog.mk>