FQDN check in hostname Relevance Code

Hello,

I want to add relevance code in Fixlet so that Fixlet should be applicable to those machines only whose Hostname does not contain FQDN.

I am trying below relevance which is not working, Kindly guide.

not (name of it as string contains (dns suffix of it as string) of computer)

I think what you’re after is this:

not (computer name = dns name)

The object computer is only valid on Mac operating systems, and the object dns suffix is only valid for Windows operating systems.

In general, the name of a windows computer in BigFix is the NetBIOS name and doesn’t include the DNS information. The name of a UNIX computer in BigFix genrally includes the fully qualified domain name.

Given that, I’m not sure what you are trying to accomplish.

1 Like

I am working on one of the UNIX Fixlet which does not work on the machine whose hostname contains FQDN name for an example hello.test.com or hello.com

So I want to add a relevance so that it should be applicable to those machines whose hostname not included with FQDN name. Hope i have cleared the query.

So you want a Relevance statement which will return TRUE on machines whose the hostname does not contains DNS suffixes , for example:
TEST will return True
TEST.com will return False
TEST.example.com will return False

What about the following:
(hostname does not contain “.”) and unix of operating system

3 Likes

Thanks it worked for me.

2 Likes