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 getnet hosts add myhostname 192.168.11.107net hosts remove myhostnamenet hosts update