hosts
Использование
net hosts [-h] [--to_file] {get,update,add,remove} ...
Описание
Управление /etc/hosts.
Аргументы
get
- read /etc/hostsupdate
- update /etc/hostsadd
- add record to /etc/hostsremove
- remove record from /etc/hosts--to_file
- Redirect output to file (/tmp/cli-stdout.txt).
Примеры использования
net hosts get
net hosts add myhostname 192.168.11.107
net hosts remove myhostname
net hosts update