Skip to content

Commit 5f67377

Browse files
Update System_Configuration.md
1 parent b48996f commit 5f67377

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

DFIR/Digital Forensics/Linux/System_Configuration.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,27 @@ iface eth0 inet static
3131
- The auto lo and subsequent lines configure the loopback interface, which is used for local communication within the system.
3232
- The auto eth0 and subsequent lines configure the primary network interface, eth0, with a static IP address (192.168.1.100), netmask (255.255.255.0), and gateway (192.168.1.1).
3333

34+
# DNS Information
35+
It serves as a local DNS (Domain Name System) resolver, mapping hostnames to IP addresses. Essentially, it allows you to manually define hostname-to-IP address mappings without relying on a DNS server. Here's a typical example of what you might find in an /etc/hosts file:
36+
37+
```bash
38+
127.0.0.1 localhost
39+
::1 localhost ip6-localhost ip6-loopback
40+
192.168.1.100 myhost.example.com myhost
41+
```
42+
43+
**In this example:**
44+
45+
- The first two lines specify mappings for the loopback interface (localhost) for both IPv4 and IPv6.
46+
- The third line maps the IP address 192.168.1.100 to the hostname myhost.example.com, with an additional alias myhost.
47+
48+
### The /etc/hosts file is commonly used for various purposes, including:
49+
50+
**Local hostname resolution:** Mapping local hostnames to IP addresses, enabling applications to communicate with services running on the same system.
51+
**DNS override:** Providing manual DNS entries that override DNS server resolution for specific hostnames. This can be useful for testing or accessing internal services without relying on public DNS servers.
52+
**Blocking or redirecting:** Redirecting certain hostnames to alternative IP addresses, such as blocking access to certain websites by redirecting them to localhost.
53+
54+
3455
## ip addr show
3556
The command "ip address show" (or its shorthand "ip a") is a powerful tool used in Linux systems to display information about network interfaces and their associated IP addresses. It provides detailed information about the networking configuration of the system.
3657

0 commit comments

Comments
 (0)