Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
/ ns-ip Public archive

A toy Rust project that clones the dynamic DNS function of nip.io.

License

Notifications You must be signed in to change notification settings

AH-dark/ns-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NS IP

This is a toy project that built a simple dynamic domain dns server that can be used to resolve domain names to IP addresses. The server is built using Rust and the trust-dns library.

Features

  • Resolve domain names like app.1.2.3.4.ip.local to 1.2.3.4
  • Resolve domain names like app-1-2-3-4.ip.local to 1.2.3.4
  • Resolve domain names like 4-3-2-1-app.ip.local to 1.2.3.4
  • Resolve domain names like a.b.c.1-2-3-4.ip.local to 1.2.3.4
  • Resolve IPv6 domain names
  • Auto response CNAME records
  • More localhost domain names support

Usage

  1. Clone the repository
  2. Fill or change the .env file
  3. Run the server using cargo run

License

This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.