table of contents
other versions
- wheezy 1.6.13-1+deb7u1
- wheezy-backports 1.6.17-5~bpo70+1
- jessie 1.6.17-5+b1
- testing 1.7.0-1
- unstable 1.7.0-1
ldns-testns(1) | General Commands Manual | ldns-testns(1) |
NAME¶
ldns-testns - simple fake nameserver toolSYNOPSYS¶
ldns-testns [ OPTION ] datafileDESCRIPTION¶
ldns-testns can be used to provide answers to DNS queries for testing. The answers are premade, and can be tailored to testing needs. The answers can be wildly invalid or unparseable.OPTIONS¶
- -r
- Listens to a random port. The port number is printed to
stdout.
- -p port
- Listens to the specified port.
- -f num
- Forks this number of additional instances that serve the
same ports and same datafile. They do not exit; printed is 'forked pid:
<num>' and you have to kill them yourself.
- -v
- Outputs more debug information. It is possible to give this
option multiple times to increase verbosity level.
- -6
- Bind to IP6 address instead of IP4. Use together with -p.
- datafile
- The data file is read on start up. It contains queries and
the packets that should be sent in answer to those queries. The data file
format is explained below.
DATA FILE FORMAT¶
The data file format has ';' to denote comment. A number of entries are processed first to last. The first matching entry is used to answer the query with. This is a line based format. DNS resource records are entered in zone-file format.(opcode) QUERY IQUERY STATUS NOTIFY UPDATE
(rcode) NOERROR FORMERR SERVFAIL NXDOMAIN NOTIMPL YXDOMAIN
YXRRSET NXRRSET NOTAUTH NOTZONE
(flags) QR AA TC RD CD RA AD
; this replaces any answer packet constructed
; with the SECTION keywords (only SECTION QUERY
; is used to match queries). If the data cannot
; be parsed, ADJUST rules for the answer packet
; are ignored
AUTHOR¶
Written by the ldns team as an example for ldns usage, and for testing purposes.REPORTING BUGS¶
Report bugs to <ldns-team@nlnetlabs.nl>.COPYRIGHT¶
Copyright (C) 2006-2008 NLnet Labs. This is free software. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.14 Dec 2006 |