Skip to content

Commit

Permalink
Update linux.md
Browse files Browse the repository at this point in the history
  • Loading branch information
puglieri committed Dec 9, 2024
1 parent e4cc9be commit 433ddd1
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/private-dns/connect-devices/mobile-and-desktop/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 433ddd1

Please sign in to comment.