Category: Networking

PowerShell: Quickly Test Connectivity from a List of Sources toward a Destination on a Specific Port

# testRemotePort.ps1 $connectFrom=@' windows1 windows2 '@ $connectTo=@' \\servername\sharename '@ $testPort=445 $sources=@($connectFrom -split "`n")|%{$_.Trim()} $destinations=@($connectTo -split…

Hyper-V Dependency on Docker’s Networking Bridge Drivers

Background: Some naive systems engineer (yours truly) has provisioned a buck load of Hyper-V servers…

PowerShell: Set DNS Records on Remote Computers

# setDnsEntries.ps1 $computernames=@( "$env:computername" ) $dnsServers=@( "8.8.8.8", "4.4.2.2" ) $results=[hashtable]@{} foreach ($computername in $computernames){ $psSession=new-pssession…

How To Clear ARP Table in Windows?

Answer: Nothing fancy, just use this simple legacy command: netsh interface ip delete arpcache Done.

Issue: A-Host Records Disappear in an Active Directory Integrated DNS Environment with Windows DHCP Server

Issue: Certain virtual machines would loose their a-host records after a period of time. That…

How to Add New Lookup Domains into Windows DNS Suffixes

Error message: [server005.intranet.kimconnect.com]: PS E:\Users\kimconnect\Documents> add-localgroupmember -Group 'remote desktop users' -Member 'DMZ/testUser'add-localgroupmember : Principal DMZ/testUser…

PowerShell: Check IP Conflicts of Computers in Active Directory

We have ran into issues where a group of virtual machines living on a DHCP…

IpConfig Shows Static IP Address Status as Duplicate

Just the other night, I'd received a call from the guys about NetApps changes affecting…

Linux: How To Use Dig

Checking Name Server(s) kim@kim-linux:~$ dig @8.8.8.8 microsoft.com ; <<>> DiG 9.16.1-Ubuntu <<>> @8.8.8.8 microsoft.com ;…

How to Cramp For a Test

From my experience, the trick to memorizing 10,000+ questions and answers at the 90% accuracy…

Domain Name Records Overview: A-record, MX, DKIM, SPF, SRV

A RECORD (A-host): - What: address record (A-record) specifies the IP address(es) of a given…

How to List All DNS Servers in a Domain

CMD Method: PS C:\Windows\system32> nslookup Default Server: dc02.intranet.kimconnect.com Address: 10.20.10.10 > set type=ns > intranet.kimconnect.com…

PowerShell: Remove A-record in Bluecat

$bluecatUri='https://bluecat.kimconnect.com/Services/API' $bluecatUsername='bluecat-service-api' $bluecatPassword='SOMECOMPLEXPASSWORD' $hostRecord='testrecord.kimconnect.com' function loginBluecat{ param( $username, $password, $uri ) $proxy = New-WebServiceProxy -Uri…

PowerShell: Remove IP Address Assignment Using Bluecat API

$bluecatUri='http://bluecat.kimconnect.com/Services/API' $bluecatUsername='svc-bluecat-api' $bluecatPassword='PASSWORD' $configId=17 $ipv4Address='10.10.162.54' $marker='toBeDeleted-' function confirmation($content,$testValue="I confirm",$maxAttempts=3){ $confirmed=$false; $attempts=0; $content|write-host write-host "Please review…

Ping Command’s First Packet Toward LDAP Server(s) Takes 2 Seconds to Start

Case 1: Are DNS servers working? dig returns results right away => defined dns servers…

How to configure Ubiquiti EdgeRouter to send logs to a Syslog Server

Method 1: using text editor # Edit the syslog config sudo vi /etc/rsyslog.d/vyatta-log.conf # Change…

PowerShell: Initiate Tests on Certain Ports

This appears to be a duplicate of another post. function initTestPort($portNumber=5985,$maxTests=3){ function getIndexDifference { param(…

PowerShell: How To Test A Server Ephemeral Port

# Setup a listening port on server # This session will automatically terminates after a…

Some Useful Windows Networking Commands

# Checking WinRM connections PS C:\Windows\system32> netstat -ano|select-string ":5985" TCP 0.0.0.0:5985 0.0.0.0:0 LISTENING 4 TCP…