Append a Hard-coded Text Tuple into Additional Section of "dig" Feature

Jun Xiang X Tee jtee at purdue.edu
Wed Jun 15 18:43:21 UTC 2016


Dear members,


  This is my first time posting a question to the mailing list. I am not sure whether I should post my technical question to this list or not. If it is not, I apologize for any inconvenience caused.


  When I query for "google.com", the additional section returned is:



  ;; ADDITIONAL SECTION:
  ns1.google.com.         200487  IN      A       216.239.32.10
  ns2.google.com.         197774  IN      A       216.239.34.10
  ns3.google.com.         246981  IN      A       216.239.36.10
  ns4.google.com.         193728  IN      A       216.239.38.10

  I wish to append a hard-coded text tuple into end of the section. An example after the change is:

  ;; ADDITIONAL SECTION:
  ns1.google.com.         200487  IN      A       216.239.32.10
  ns2.google.com.         197774  IN      A       216.239.34.10
  ns3.google.com.         246981  IN      A       216.239.36.10
  ns4.google.com.         193728  IN      A       216.239.38.10
  google.com                  123456  IN     TXT   "some information that I want to include"

  I have searched through the code base for several days, but do not find a good place to start with. Any suggestion? I am currently examining "resolver.c" and "lookup.c" files. Thanks!

Regards,
Jun Xiang Tee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20160615/78e5af7a/attachment.html>


More information about the bind-users mailing list