/build/static/layout/Breadcrumb_cap_w.png

Possible to Identify Static DNS Entry Using K1000

Looking to see, if either by scripting or Custom Inventory Rule, if it is possible to find out if a system has a static IP in either it's primary or secondary DNS entries. 

Note...do not need to know what DNS the system is using; rather only if there is a static entry actually listed.

Thank you as always!


1 Comment   [ + ] Show comment
  • are these machine dhcp enabled? are you just trying to see if they have different numbers then what you want? - SMal.tmcc 9 years ago

Answers (3)

Answer Summary:
Posted by: SMal.tmcc 9 years ago
Red Belt
1

you can do a wmic query and see the numbers assigned also

I think this is what you are looking for.

You can create a custom software inventory and then do a report where that item contains part of your ip string

ShellCommandTextReturn(cmd /c reg query HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces /s /v nameserver)

the report will look like this

 

 

Posted by: dtobias_keenan 9 years ago
Third Degree Green Belt
0

Perfect. This is exactly what I needed! Thank you so much for your help as always.

Posted by: Fantomas2501 8 years ago
White Belt
0
Hi,

how can you make this work on Windows XP clients?

ShellCommandTextReturn(cmd /c reg query "HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces /s /v NameServer")

Does not work.

Thanks,

UPDATE:
should work like this:

ShellCommandTextReturn(cmd /c reg query "HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces" /s | FIND "NameServer")

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ