Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 56 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dns.toys is a DNS server that takes creative liberties with the DNS protocol to

For docs, visit [**www.dns.toys**](https://www.dns.toys)

## Sample commands
## Sample commands for Linux

```shell
dig help @dns.toys
Expand Down Expand Up @@ -32,6 +32,61 @@ dig fun.dict @dns.toys
dig A12.9352,77.6245/12.9698,77.7500.aerial @dns.toys
```

## Using @dns-toys on Windows

### Using PowerShell (Recomended)

You can use Resolve-DnsName cmdlet in Windows PowerShell to interact with @dns-toys:

* **Open PowerShell**
- Press `Win + X` and select **Windows PowerShell**.

* **Use `Resolve-DnsName`**
- **Get the current time in a city**:
```powershell
Resolve-DnsName -Name mumbai.time -Server dns.toys
```
- **Check the weather**:
```powershell
Resolve-DnsName -Name newyork.weather -Server dns.toys
```
- **Convert units**:
```powershell
Resolve-DnsName -Name 42km-mi.unit -Server dns.toys
```
- **Currency conversion**:
```powershell
Resolve-DnsName -Name 100USD-INR.fx -Server dns.toys
```

* **Format the Output**:
- To make the output more readable, you can format it using `Format-List`:
```powershell
Resolve-DnsName -Name mumbai.time -Server dns.toys | Format-List
```


### Using dig

* **Install `dig` Utility**:
- You can install the `dig` utility, which is part of the BIND tools, using a package manager like Chocolatey:
```powershell
choco install bind-toolsonly
```

* **Using `dig` with @dns-toys**

Once `dig` is installed, you can use it to query @dns-toys. Here are some examples:

- **Get the current time in a city**:
```powershell
dig mumbai.time @dns.toys
```
- **Currency conversion**:
```powershell
dig 100USD-INR.fx @dns.toys
```

## Running locally

- Clone the repo
Expand Down
24 changes: 24 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,31 @@ <h3>Zsh</h3>
</code>
</div>
</section>
<section>
<h1>Windows</h1>
<div class="box">
<h3>PowerShell</h3>
<p>
You can use <code>Resolve-DnsName</code> cmdlet in Windows PowerShell to interact with <code>@dns-toys</code>.
</p>
<code class="block">
<p>Resolve-DnsName -Name mumbai.time -Server dns.toys</p>
</code>

<p>
Alternatively, you can install <code>dig</code> utility utility, which is part of the <a href="https://community.chocolatey.org/packages/bind-toolsonly">BIND tools package</a>.
</p>
<code class="block">
<p>choco install bind-toolsonly</p>
</code>
<p>
Once <code>dig</code> is installed, you can use it to query <code>@dns-toys</code>. Here are some examples:
</p>
<code class="block">
dig mumbai.time @dns.toys
</code>
</div>
</section>
<section>
<h1>Why?</h1>
Why not? For fun. I spend a lot of time on the terminal and doing quick unit
Expand Down