Skip to main content

Posts

Showing posts from January, 2023

ipv4 cheat sheet

 

CNAME record dns

  What is cname record in dns? Say your server name is local92.avi.com and it resolves a public ip of say 103.23.24.25 Now you want the same server should be used for another purpose and also should resolve the same public ip address.  Say you want to call your server using this name  smsplus.avi.com , then the same ip should resolve. In that case you need to configure cname record in your dns server forward lookup zone configuration file.  Create a new cname record there.  Alias : smsplus FQDN : local92.avi.com It will take some time to propagate in the internet. Now when you call smsplus.avi.com then  103.23.24.25 this ip should resolve.  Use cases: Say in your server have some more resources to utilize. Instead of purchasing another server for another purpose, you can use the same server to do so.  Avi

WMI cheat sheet

WMI cheat sheet: To see powershell version: $psversiontable To see commands with wmi & cim keyword: Get-Command -CommandType cmdlet *wmi* Get-Command -CommandType cmdlet *cim* If you want to go to powershell version 2: powershell -version 2 If you want to take help from a powershell cmdlets: help get-wmiobject   or  help get-wmiobject -full or help get-wmiobject -example How to know all the namespaces name: Get-WmiObject -Namespace "root" -Class "__Namespace" | select Name Get-CimInstance -Namespace "root" -Class "__Namespace" | select Name To see nested namespace: https://www.youtube.com/watch?v=Nkxj4leucdM&list=PLDWrevYFyjcpH12DrlS3KPK5HOMihQzUz&index=2&ab_channel=FuturisticHacker https://powershellmagazine.com/2013/10/18/pstip-list-all-wmi-namespaces-on-a-system/ To know all the nested namespace of current namespace or default namespace which is cimv2: Get-WmiObject -Class __NAMESPACE | select Name To know all the  nested names