From 433ddd11ae014d0cc11cea39fed36c46fd5c6014 Mon Sep 17 00:00:00 2001
From: puglieri
Date: Mon, 9 Dec 2024 09:07:45 -0300
Subject: [PATCH] Update linux.md
---
.../mobile-and-desktop/linux.md | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/docs/private-dns/connect-devices/mobile-and-desktop/linux.md b/docs/private-dns/connect-devices/mobile-and-desktop/linux.md
index 00fbeb573..e81779faa 100644
--- a/docs/private-dns/connect-devices/mobile-and-desktop/linux.md
+++ b/docs/private-dns/connect-devices/mobile-and-desktop/linux.md
@@ -106,16 +106,23 @@ If you see a notification that you are not connected to AdGuard DNS, most likely
EDNS extends the DNS protocol, enabling larger UDP packets to carry additional data. In AdGuard DNS, it allows passing the DeviceID in plain DNS using an extra parameter.
-DeviceID, an eight-digit hexadecimal identifier (e.g., `1a2b3c4d`), helps link DNS requests to specific devices. For encrypted DNS, this ID is part of the domain (e.g., `1a2b3c4d.d.adguard-dns.com`). For unencrypted DNS, EDNS is required to localize this identifier.
+DeviceID, an eight-digit hexadecimal identifier (e.g., `1a2b3c4d`), helps link DNS requests to specific devices. For encrypted DNS, this ID is part of the domain (e.g., `1a2b3c4d.d.adguard-dns.com`). For unencrypted DNS, EDNS is required to transfer this identifier.
-AdGuard DNS uses EDNS to retrieve the DeviceID. All you have to do is look for option number 65074 and, if such an option exists, read the DeviceID from there. For this, we need to use the command `dig` on the terminal:
+AdGuard DNS uses EDNS to retrieve the DeviceID by looking for option number 65074. If such an option exists, it will read the DeviceID from there. For this, you can use the command `dig` on the terminal:
-`dig @94.140.14.49 'www.example.com' A IN +ednsopt=65074:3031323334353637
-`
+```sh
+dig @94.140.14.49 'www.example.com' A IN +ednsopt=65074:3031323334353637
+```
-Here, `65074` is the option ID, and `3031323334353637` is its value in hex format (DeviceID: 01234567)
+Here, `65074` is the option ID, and `3031323334353637` is its value in hex format (DeviceID: `01234567`).
-All done! The device ID will be displayed.
+All done! The device ID should be displayed.
+
+:::note
+
+The `dig` command is merely an example, you can use any DNS software with an ability to add EDNS options to perform this action.
+
+:::
## Use plain DNS