File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments