module documentation
Utility functions for manipulating /etc/hosts.
| Function | |
Wrapper around SetEtcHostsEntry. |
| Function | |
Removes a hostname from /etc/hosts. |
| Function | |
Wrapper around RemoveEtcHostsEntry. |
| Function | |
Sets the name of an IP address and hostname in /etc/hosts. |
Wrapper around SetEtcHostsEntry.
| Parameters | |
| hostname:str | a hostname that will be resolved and added to pathutils.ETC_HOSTS |
| ip:str | The ip address of the host |
Removes a hostname from /etc/hosts.
IP addresses without names are removed from the file.
| Parameters | |
| file | path to the file to modify (usually /etc/hosts) |
| hostname:str | the hostname to be removed |
Wrapper around RemoveEtcHostsEntry.
| Parameters | |
| hostname:str | hostname that will be resolved and its full and shot name will be removed from pathutils.ETC_HOSTS |