From cad6eed6b41b9acb046f3733bc3b21f7e196e071 Mon Sep 17 00:00:00 2001 From: situ2001 Date: Sat, 20 Apr 2024 00:35:41 +0800 Subject: [PATCH] fix: update ip of `example.com` --- README.md | 2 +- crates/proto/src/op/message.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2899c94c3..a223df0f1 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/crates/proto/src/op/message.rs b/crates/proto/src/op/message.rs index c89cf78bc..9af68fab0 100644 --- a/crates/proto/src/op/message.rs +++ b/crates/proto/src/op/message.rs @@ -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);