2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

969. [func] dig now supports the undocumented dig 8 feature

of allowing arbitrary labels, not just dotted
                        decimal quads, with the -x option.  This can be
                        used to conveniently look up RFC2317 names as in
                        "dig -x 10.0.0.0-127". [RT #827, #1576, #1598]
This commit is contained in:
Andreas Gustafsson
2001-08-29 18:57:28 +00:00
parent f462b9aed2
commit cad3210bb9
6 changed files with 96 additions and 44 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: nslookup.c,v 1.90 2001/07/30 01:09:14 marka Exp $ */
/* $Id: nslookup.c,v 1.91 2001/08/29 18:57:10 gson Exp $ */
#include <config.h>
@@ -624,7 +624,9 @@ addlookup(char *opt) {
rdclass = dns_rdataclass_in;
}
lookup = make_empty_lookup();
if (get_reverse(store, opt, lookup->nibble) == ISC_R_SUCCESS) {
if (get_reverse(store, opt, lookup->nibble, ISC_TRUE)
== ISC_R_SUCCESS)
{
safecpy(lookup->textname, store, sizeof(lookup->textname));
lookup->rdtype = dns_rdatatype_ptr;
lookup->rdtypeset = ISC_TRUE;