Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a074b0

Browse files
committed
Basic README details
Signed-off-by: Harisankar P S <[email protected]>
1 parent 4970933 commit 1a074b0

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# LDNS (Local DNS)
2+
3+
Ever wanted to stop looking IPs of the server you are managing? ldns is a simple shell script that was created
4+
out of the frustration of having to manage servers with no public DNS configured. This simple program will you to add/remove
5+
entry from the hosts file.
6+
7+
`sudo ldns add <hostname> <IP>` allows you to reference the ip as <hostname> in your local machine.
8+
9+
Doing `sudo ldns add richclient.server 42.x.x.x` would make `ssh [email protected]` to `ssh [email protected]`
10+
11+
## Usage
12+
13+
### Add
14+
15+
You can add an ip to hosts file using the following command
16+
`sudo ldns add <hostname> <IP>`
17+
18+
```sh
19+
sudo ldns add richclient.server 42.x.x.x
20+
```
21+
22+
### Remove
23+
24+
To delete an entry
25+
26+
`sudo ldns delete <hostname>`
27+
28+
```sh
29+
sudo ldns delete richclient.server
30+
```
31+
32+
## How does it work?
33+
34+
We add an entry to the hosts file in your local machine. This is the reason why we need sudo permission as well.

0 commit comments

Comments
 (0)