@@ -8,55 +8,75 @@ These examples showcase how to combine different features for powerful DNS query
8
8
## Basic Queries
9
9
10
10
1 . Simple A record lookup:
11
+
11
12
``` bash
12
13
doggo example.com
13
14
```
14
15
15
16
2 . Query for a specific record type:
17
+
16
18
``` bash
17
19
doggo AAAA example.com
18
20
```
19
21
20
22
3 . Query multiple record types simultaneously:
23
+
21
24
``` bash
22
25
doggo A AAAA MX example.com
23
26
```
24
27
28
+ 4 . Query using Globalping API from a specific location:
29
+ ``` bash
30
+ doggo example.com --from Germany
31
+ ```
32
+
25
33
### Using Different Resolvers
26
34
27
35
4 . Query using a specific DNS resolver:
36
+
28
37
``` bash
29
38
doggo example.com @1.1.1.1
30
39
```
31
40
32
41
5 . Use DNS-over-HTTPS (DoH):
42
+
33
43
``` bash
34
44
doggo example.com @https://cloudflare-dns.com/dns-query
35
45
```
36
46
37
47
6 . Use DNS-over-TLS (DoT):
48
+
38
49
``` bash
39
50
doggo example.com @tls://1.1.1.1
40
51
```
41
52
42
53
7 . Query multiple resolvers and compare results:
54
+
43
55
``` bash
44
56
doggo example.com @1.1.1.1 @8.8.8.8 @9.9.9.9
45
57
```
46
58
59
+ 8 . Using Globalping API
60
+ ``` bash
61
+ doggo example.com @1.1.1.1 --from Germany
62
+ ```
63
+
47
64
### Advanced Queries
48
65
49
66
8 . Perform a reverse DNS lookup:
67
+
50
68
``` bash
51
69
doggo --reverse 8.8.8.8
52
70
```
53
71
54
72
9 . Set query flags for DNSSEC validation:
73
+
55
74
``` bash
56
75
doggo example.com --do --cd
57
76
```
58
77
59
78
10 . Use the short output format for concise results:
79
+
60
80
``` bash
61
81
doggo example.com --short
62
82
```
@@ -69,11 +89,13 @@ These examples showcase how to combine different features for powerful DNS query
69
89
# ## Combining Flags
70
90
71
91
12. Perform a reverse lookup with short output and custom resolver:
92
+
72
93
` ` ` bash
73
94
doggo --reverse 8.8.8.8 --short @1.1.1.1
74
95
` ` `
75
96
76
97
13. Query for MX records using DoH with JSON output:
98
+
77
99
` ` ` bash
78
100
doggo MX example.com @https://dns.google/dns-query --json
79
101
` ` `
@@ -83,7 +105,6 @@ These examples showcase how to combine different features for powerful DNS query
83
105
doggo AAAA example.com -6 --timeout 3s --do
84
106
` ` `
85
107
86
-
87
108
# # Scripting and Automation
88
109
89
110
16. Use JSON output for easy parsing in scripts:
@@ -93,16 +114,19 @@ These examples showcase how to combine different features for powerful DNS query
93
114
` ` `
94
115
95
116
17. Batch query multiple domains from a file:
117
+
96
118
` ` ` bash
97
119
cat domains.txt | xargs -I {} doggo {} --short
98
120
` ` `
99
121
100
122
18. Find all nameservers for a domain and its parent domains:
123
+
101
124
` ` ` bash
102
125
doggo NS example.com example.com. com. . --short
103
126
` ` `
104
127
105
128
19. Extract all MX records and their priorities:
129
+
106
130
` ` ` bash
107
131
doggo MX gmail.com --json | jq -r ' .responses[0].answers[] | "\(.address) \(.preference)"'
108
132
` ` `
@@ -115,36 +139,43 @@ These examples showcase how to combine different features for powerful DNS query
115
139
# # Troubleshooting and Debugging
116
140
117
141
21. Enable debug logging for verbose output:
142
+
118
143
` ` ` bash
119
144
doggo example.com --debug
120
145
` ` `
121
146
122
147
22. Compare responses with and without EDNS Client Subnet:
148
+
123
149
` ` ` bash
124
150
doggo example.com @8.8.8.8
125
151
doggo example.com @8.8.8.8 --z
126
152
` ` `
127
153
128
154
23. Test DNSSEC validation:
155
+
129
156
` ` ` bash
130
157
doggo rsasecured.net --do @8.8.8.8
131
158
` ` `
159
+
132
160
This example uses a domain known to be DNSSEC-signed. The ` --do` flag sets the DNSSEC OK bit.
133
161
134
162
Note: DNSSEC validation can be complex and depends on various factors:
163
+
135
164
- The domain must be properly DNSSEC-signed
136
165
- The resolver must support DNSSEC
137
166
- The resolver must be configured to perform DNSSEC validation
138
167
139
168
If you don' t see DNSSEC-related information in the output, try using a resolver known to support DNSSEC, like 8.8.8.8 (Google) or 9.9.9.9 (Quad9).
140
169
141
170
24. Compare responses with and without EDNS Client Subnet:
171
+
142
172
```bash
143
173
doggo example.com @8.8.8.8
144
174
doggo example.com @8.8.8.8 --z
145
175
```
146
176
147
177
25. Check for DNSSEC records (DNSKEY, DS, RRSIG):
178
+
148
179
```bash
149
180
doggo DNSKEY example.com @8.8.8.8
150
181
doggo DS example.com @8.8.8.8
0 commit comments