modules/deploy/dsc/ext/PsOrg/rchaganti/DSCResources/HostsFile/en-US/about_HostsFile_Resource.txt

Syntax

HostsFile [string] #ResourceName
{
    HostName = [string]

    IPAddress = [string]

    [ Ensure = [string] { Absent | Present } ]
}

Properties

HostName - Name of the server or computer

IPAddress - IPv4 or IPv6 address of the server or computer

Ensure - Set this property to "Present" add the hosts file entry. Using "Absent" will remove the hosts entry, if it exists.