2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 23:25:38 +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: dig.c,v 1.157 2001/08/23 04:39:31 marka Exp $ */
/* $Id: dig.c,v 1.158 2001/08/29 18:57:06 gson Exp $ */
#include <config.h>
#include <stdlib.h>
@@ -1027,7 +1027,9 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
return (value_from_next);
case 'x':
*lookup = clone_lookup(default_lookup, ISC_TRUE);
if (get_reverse(textname, value, nibble) == ISC_R_SUCCESS) {
if (get_reverse(textname, value, nibble, ISC_FALSE)
== ISC_R_SUCCESS)
{
strncpy((*lookup)->textname, textname,
sizeof((*lookup)->textname));
debug("looking up %s", (*lookup)->textname);