Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/magicteamc/dnslm
dnsLM: Where AI meets DNS—because even domains deserve a little intelligence!
https://github.com/magicteamc/dnslm
dns dns-over-https dns-record dns-server groq-api llama llama3 llm prompt-engineering python python3
Last synced: 20 days ago
JSON representation
dnsLM: Where AI meets DNS—because even domains deserve a little intelligence!
- Host: GitHub
- URL: https://github.com/magicteamc/dnslm
- Owner: MagicTeaMC
- License: gpl-3.0
- Created: 2025-01-20T13:19:29.000Z (22 days ago)
- Default Branch: main
- Last Pushed: 2025-01-20T15:23:33.000Z (21 days ago)
- Last Synced: 2025-01-20T15:27:53.823Z (21 days ago)
- Topics: dns, dns-over-https, dns-record, dns-server, groq-api, llama, llama3, llm, prompt-engineering, python, python3
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dnsLM
dnsLM: Where AI meets DNS—because even domains deserve a little intelligence!
## About
This project uses Llama 3.3 and Groq's super-fast infrastructure to create a DNS server that's almost as quick as the real thing. I designed a prompt to help the LLM guess the correct IP address for a given domain. However, since the LLM is basically guessing based on what it already knows, it only gets the IP right about 10% of the time.
## Setup
1. Generating self-signed certificate
```
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
```
2. Run server
```
python3 main.py
```
3. Test it with [dnslookup](https://github.com/ameshkov/dnslookup)
```
VERIFY=0 dnslookup google.com https://127.0.0.1/dns-query
```