4
0

json.toml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. # A records
  2. [[cmd]]
  3. name = "Look up an existing A record formatted as JSON"
  4. shell = "dog a-example.lookup.dog @1.1.1.1 --json"
  5. stdout = { string = '10.20.30.40' }
  6. stderr = { empty = true }
  7. status = 0
  8. tags = [ "live", "cloudflare", "json", "a" ]
  9. [[cmd]]
  10. name = "Look up a missing A record formatted as JSON"
  11. shell = "dog non.existent @1.1.1.1 --json"
  12. stdout = { string = '[]' }
  13. stderr = { empty = true }
  14. status = 0
  15. tags = [ "live", "cloudflare", "json", "a" ]
  16. # AAAA records
  17. [[cmd]]
  18. name = "Look up an existing AAAA record formatted as JSON"
  19. shell = "dog AAAA aaaa-example.lookup.dog @1.1.1.1 --json"
  20. stdout = { string = '::1' }
  21. stderr = { empty = true }
  22. status = 0
  23. tags = [ "live", "cloudflare", "json", "aaaa" ]
  24. [[cmd]]
  25. name = "Look up a missing AAAA record formatted as JSON"
  26. shell = "dog AAAA non.existent @1.1.1.1 --json"
  27. stdout = { string = '[]' }
  28. stderr = { empty = true }
  29. status = 0
  30. tags = [ "live", "cloudflare", "json", "aaaa" ]
  31. # CAA records
  32. [[cmd]]
  33. name = "Look up an existing CAA record formatted as JSON"
  34. shell = "dog CAA caa-example.lookup.dog @1.1.1.1 --json"
  35. stdout = { string = '"some.certificate.authority"' }
  36. stderr = { empty = true }
  37. status = 0
  38. tags = [ "live", "cloudflare", "json", "caa" ]
  39. [[cmd]]
  40. name = "Look up a missing CAA record formatted as JSON"
  41. shell = "dog CAA non.existent @1.1.1.1 --json"
  42. stdout = { string = '[]' }
  43. stderr = { empty = true }
  44. status = 0
  45. tags = [ "live", "cloudflare", "json", "caa" ]
  46. # CNAME records
  47. [[cmd]]
  48. name = "Look up an existing CNAME record formatted as JSON"
  49. shell = "dog CNAME cname-example.lookup.dog @1.1.1.1 --json"
  50. stdout = { string = '"dns.lookup.dog."' }
  51. stderr = { empty = true }
  52. status = 0
  53. tags = [ "live", "cloudflare", "json", "cname" ]
  54. [[cmd]]
  55. name = "Look up a missing CNAME record formatted as JSON"
  56. shell = "dog CNAME non.existent @1.1.1.1 --json"
  57. stdout = { string = '[]' }
  58. stderr = { empty = true }
  59. status = 0
  60. tags = [ "live", "cloudflare", "json", "cname" ]
  61. # HINFO records
  62. [[cmd]]
  63. name = "Look up an existing HINFO record formatted as JSON"
  64. shell = "dog HINFO hinfo-example.lookup.dog @1.1.1.1 --json"
  65. stdout = { string = '"some-kinda-os"' }
  66. stderr = { empty = true }
  67. status = 0
  68. tags = [ "live", "cloudflare", "json", "hinfo" ]
  69. [[cmd]]
  70. name = "Look up a missing HINFO record formatted as JSON"
  71. shell = "dog HINFO non.existent @1.1.1.1 --json"
  72. stdout = { string = '[]' }
  73. stderr = { empty = true }
  74. status = 0
  75. tags = [ "live", "cloudflare", "json", "hinfo" ]
  76. # MX records
  77. [[cmd]]
  78. name = "Look up an existing MX record formatted as JSON"
  79. shell = "dog MX mx-example.lookup.dog @1.1.1.1 --json"
  80. stdout = { string = 'some.mail.server.' }
  81. stderr = { empty = true }
  82. status = 0
  83. tags = [ "live", "cloudflare", "json", "mx" ]
  84. [[cmd]]
  85. name = "Look up a missing MX record formatted as JSON"
  86. shell = "dog MX non.existent @1.1.1.1 --json"
  87. stdout = { string = '[]' }
  88. stderr = { empty = true }
  89. status = 0
  90. tags = [ "live", "cloudflare", "json", "mx" ]
  91. # NS records
  92. [[cmd]]
  93. name = "Look up an existing NS record formatted as JSON"
  94. shell = "dog NS lookup.dog @1.1.1.1 --json"
  95. stdout = { string = 'ns1' }
  96. stderr = { empty = true }
  97. status = 0
  98. tags = [ "live", "cloudflare", "json", "ns" ]
  99. [[cmd]]
  100. name = "Look up a missing NS record formatted as JSON"
  101. shell = "dog NS non.existent @1.1.1.1 --json"
  102. stdout = { string = '[]' }
  103. stderr = { empty = true }
  104. status = 0
  105. tags = [ "live", "cloudflare", "json", "ns" ]
  106. # SOA records
  107. [[cmd]]
  108. name = "Look up an existing SOA record formatted as JSON"
  109. shell = "dog SOA lookup.dog @1.1.1.1 --json"
  110. stdout = { string = 'ns1' }
  111. stderr = { empty = true }
  112. status = 0
  113. tags = [ "live", "cloudflare", "json", "soa" ]
  114. [[cmd]]
  115. name = "Look up a missing SOA record formatted as JSON"
  116. shell = "dog MX non.existent @1.1.1.1 --json"
  117. stdout = { string = '[]' }
  118. stderr = { empty = true }
  119. status = 0
  120. tags = [ "live", "cloudflare", "json", "soa" ]
  121. # SRV records
  122. [[cmd]]
  123. name = "Look up an existing SRV record formatted as JSON"
  124. shell = "dog SRV srv-example.lookup.dog @1.1.1.1 --json"
  125. stdout = { string = 'dns.lookup.dog.' }
  126. stderr = { empty = true }
  127. status = 0
  128. tags = [ "live", "cloudflare", "json", "srv" ]
  129. [[cmd]]
  130. name = "Look up a missing SRV record formatted as JSON"
  131. shell = "dog SRV non.existent @1.1.1.1 --json"
  132. stdout = { string = '[]' }
  133. stderr = { empty = true }
  134. status = 0
  135. tags = [ "live", "cloudflare", "json", "srv" ]
  136. # TXT records
  137. [[cmd]]
  138. name = "Look up an existing TXT record formatted as JSON"
  139. shell = "dog TXT txt-example.lookup.dog @1.1.1.1 --json"
  140. stdout = { string = '"Cache Invalidation and Naming Things"' }
  141. stderr = { empty = true }
  142. status = 0
  143. tags = [ "live", "cloudflare", "json", "txt" ]
  144. [[cmd]]
  145. name = "Look up a missing TXT record formatted as JSON"
  146. shell = "dog TXT non.existent @1.1.1.1 --json"
  147. stdout = { string = '[]' }
  148. stderr = { empty = true }
  149. status = 0
  150. tags = [ "live", "cloudflare", "json", "txt" ]