Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
socrateslee committed Aug 11, 2021
1 parent dea5205 commit e161f2f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ Example:
sudo hostsed remove 192.168.1.1 gateway
hostsed --file hosts.exmaple rm ::1 localhost

### Drop lines with specified ip or hostname

sudo hostsed drop <ip or hostname>

Example:

sudo hostsed drop 192.168.1.1
sudo hostsed drop www.example.com
hostsed --file hosts.exmaple drop ::1

### Get the ip address of a docker container

sudo hostsed docker <docker-container-name>
Expand Down

0 comments on commit e161f2f

Please sign in to comment.