Default query type of dig

Scott Bertilson ssb at umn.edu
Wed Jun 25 16:30:09 UTC 2014


Don't know if you can control the default query type, but this is a RTFM
(see "man dig"):

It is possible to set per-user defaults for dig via ${HOME}/.digrc. This
file is read and any options in it are applied before the command line
arguments.


On Wed, Jun 25, 2014 at 10:10 AM, Barry Margolin <barmar at alum.mit.edu>
wrote:

> In article <mailman.432.1403708745.26362.bind-users at lists.isc.org>,
>  "Dominik Mahrer (Teddy)" <teddy at teddy.ch> wrote:
>
> > Hi all,
> >
> > By default dig has a query type of A-records. Because I more and more
> > work with IPv6 I would like to change the default behaver of dig to a
> > query type of AAAA-records. Can this easily be done (I did not find a
> > switch for .digrc nor another option) or is there a source code change
> > needed?
>
> Dig isn't customizable, AFAIK. Use an alias/shell function.
>
> --
> Barry Margolin
> Arlington, MA
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to
> unsubscribe from this list
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20140625/e15fbc27/attachment.html>


More information about the bind-users mailing list