fix: update ip of example.com

This commit is contained in:
situ2001
2024-04-20 00:35:41 +08:00
committed by Benjamin Fry
parent eb79382a36
commit cad6eed6b4
2 changed files with 2 additions and 2 deletions

View File

@@ -295,7 +295,7 @@ example:
$ resolve www.example.com.
Querying for www.example.com. A from udp:8.8.8.8:53, tcp:8.8.8.8:53, udp:8.8.4.4:53, tcp:8.8.4.4:53, udp:[2001:4860:4860::8888]:53, tcp:[2001:4860:4860::8888]:53, udp:[2001:4860:4860::8844]:53, tcp:[2001:4860:4860::8844]:53
Success for query name: www.example.com. type: A class: IN
www.example.com. 21063 IN A 93.184.216.34
www.example.com. 21063 IN A 93.184.215.14
```
## Using as a dependency and custom features

View File

@@ -1281,7 +1281,7 @@ mod tests {
0x00, 0x01, 0x00, 0x01, // RecordType = A, Class = IN
0x00, 0x00, 0x00, 0x02, // TTL = 2 seconds
0x00, 0x04, // record length = 4 (ipv4 address)
0x5D, 0xB8, 0xD8, 0x22, // address = 93.184.216.34
0x5D, 0xB8, 0xD7, 0x0E, // address = 93.184.215.14
];
let mut decoder = BinDecoder::new(&buf);