Configures hosts on the local domain. You can also delete hosts from the local domain using this command.
setdnslocalhost -h host_name -a IP_address [-r]
-h | Host name to be added (or removed). |
-a | IP address of the host. |
-r | Optional. If specified, the given host is removed from the local domain. |
setdnslocalhost -h mycomputer -a 205.15.3.4
This command will add a new host to the local DNS domain, with the host name being mycomputer and its IP address being 205.15.3.4.
setdnslocalhost -h mycomputer -a 205.15.3.4 -r
This command will remove a host from the local DNS domain, with the host name being mycomputer and its IP address being 205.15.3.4.