DEV Community

GOLDEN KUMAR
GOLDEN KUMAR

Posted on

3 3 4 3 2

AI-Powered DNS for TXT Queries!

This is a submission for the GitHub Copilot Challenge : New Beginnings

What I Built

It is a DNS server that can use the LM model to answer user queries.

Feature:

  1. Save bandwidth as it is just a DNS call.
  2. Directly call the LLM model using the terminal.

To use it

dig @dns.auenkr.me -p 9005 +short TXT write.query.with.periods

How does it work?

Send a TXT record to the DNS server. The subdomain contains the question to be asked by LLM. LLM answers the query the result is sent back to the user.

Demo

Image description

Repo

https://github.com/AuenKr/dns-ai

Copilot Experience

I normally use JavaScript for development purposes. But to know more about Copilot I decide to write this project in Golang.

I prompt the Copilot on what I want to create, the logic part. It converts it into the go-lang language.

I was amazed that I was able to create this project even though I didn't know Go Lang.

GitHub Models

  1. Generating code based on Comments I write.
  2. While debugging the code. When some error occurs, to better understand why it occurs.

Conclusion

This is a fun project for me.
I was thinking of doing this project for a long time. This project is inspired by https://github.com/knadh/dns.toys.

API Trace View

Struggling with slow API calls?

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay