Hosts File
1 Votes |
Description
This analysis pulls back entries in a system's hosts file. This file can be used to manually override DNS. This analysis will not return results on machines that do not have entries within their hosts file.
This analysis is derrived from this one: http://bigfix.me/cdb/Analysis/2994560
This Analysis works for Windows, Mac, and Linux.Property Details
Properties
# of Entries
Period
2 days
* Results in a true/false |
number of lines whose (it does not start with "#" AND it as trimmed string does not equal "") of file "hosts" of (if windows of operating system then folder "drivers\etc" of system x64 folder else if mac of operating system then folder "/private/etc" else folder "/etc")
Entries
Period
2 days
* Results in a true/false |
lines whose (it does not start with "#" AND it as trimmed string does not equal "") of file "hosts" of (if windows of operating system then folder "drivers\etc" of system x64 folder else if mac of operating system then folder "/private/etc" else folder "/etc")
# of Entries (localhost removed)
Period
2 days
* Results in a true/false |
number of lines whose (it does not start with "#" AND it as trimmed string does not equal "" AND it as trimmed string as lowercase does not contain " localhost") of file "hosts" of (if windows of operating system then folder "drivers\etc" of system x64 folder else if mac of operating system then folder "/private/etc" else folder "/etc")
Relevance
Used in 1 analsis | * Results in a true/false |
exists (if windows of operating system then folder "drivers\etc" of system x64 folder else if mac of operating system then folder "/private/etc" else folder "/etc") whose(exists file "hosts" of it)
Used in 1 analsis | * Results in a true/false |
0 < (number of lines whose (it does not start with "#" AND it as trimmed string does not equal "") of file "hosts" of (if windows of operating system then folder "drivers\etc" of system x64 folder else if mac of operating system then folder "/private/etc" else folder "/etc"))
Sharing
Social Media: |
Comments
|
|
Working fine for Windows, Unix OS. Much appreciated. |
|
|
number of lines whose (it does not start with "#" AND it as trimmed string does not equal "") of files "hosts" of (folders "/etc"; folders "/private/etc"; folders "/Windows/Sysnative/drivers/etc"; folders "/Windows/System32/drivers/etc") |