Browse Source

link to local files

master
Anthony Fadly 1 year ago
parent
commit
2b5fffd7ca
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      oct22-dns2.md

+ 12
- 2
oct22-dns2.md View File

@@ -2,7 +2,7 @@

## Overview

- Local files
- [Local Files](#local-files)
- `/etc/services`
- `/etc/resolv.conf`
- `/etc/nsswitch.conf`
@@ -19,8 +19,18 @@
- tmp - temporary files (wiped on boot up)
- var - writable, non-sharable files

## Local files
## Local Files

- `/etc/resolve.conf` lists the current dns server for resolving dns requests
- `/etc/hosts` is a local list of dns entries
- `/etc/nsswitch.conf` is the config of the GNU Name Service Switch

```
# /etc/hosts can be used to block websites:
$ echo '0.0.0.0 example.com' >> /etc/hosts
```

A socket contains a source and destination ip and port, it lists every
connection.

Ports 0-1024 are "privilege ports" and require root to use.

Loading…
Cancel
Save