Skip to content
/ ldns Public

Simple DNS management script for your ubuntu machine

License

Notifications You must be signed in to change notification settings

coderhs/ldns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LDNS (Local DNS)

LDNS is a simple yet powerful shell script designed to streamline server management by eliminating the need to manually look up IP addresses for servers without public DNS configurations. If you've ever found yourself frustrated with managing server connections by IP addresses alone, LDNS provides an efficient solution by allowing you to easily add or remove entries in your system's hosts file.

With LDNS, you can reference a server's IP address using a hostname on your local machine.

Key Features:

  • Add or remove hostnames for quick local reference.
  • Simplify SSH or other network connections by using hostnames instead of IP addresses.

For example, running the following command:

sudo ldns add richclient.server 42.x.x.x

will enable you to replace:

ssh user@42.x.x.x

with:

ssh user@richclient.server

Usage

Add a Host

To add a hostname to your system's hosts file, use the following command:

sudo ldns add <hostname> <IP>

Example:

sudo ldns add richclient.server 42.x.x.x

Remove a Host

To remove a previously added hostname from the hosts file, run:

sudo ldns delete <hostname>

Example:

sudo ldns delete richclient.server

How It Works

LDNS modifies your system's /etc/hosts file by adding or removing entries that map hostnames to IP addresses. Since the /etc/hosts file requires elevated privileges to modify, the script must be executed with sudo.


LDNS is a simple but effective tool that saves you time and effort when managing server connections locally.

About

Simple DNS management script for your ubuntu machine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages