ipconfig
ip address info
ipconfig /all
ip address info more in depth includes MAC/Connection/physical
ipconfig /all | findstr DNS
find string - followed by search pattern (this case DNS). findstr can be used with any command (not just ipconfig)
findstr
options:Option | Description |
---|---|
/b |
Matches the pattern at the beginning of a line |
/e |
Matches the pattern at the end of a line |
/l |
Processes search strings literally |
/r |
Processes search strings as regular expressions |
/s |
Searches the current directory and all subdirectories |
/i |
Ignores case when searching |
/x |
Prints lines that match exactly |
/v |
Prints only lines that don't contain a match |
/n |
Prints the line number of each matching line |
/m |
Prints only the file name if a file contains a match |
/o |
Prints the character offset before each matching line |
/p |
Skips files with non-printable characters |
ipconfig /release
used to release current ip address. Utilized to facilitate assigning a new ip address.
ipconfig /renew
following the release the renew reaching out to DCHP server and acquires a new ip address and assigns it to machine. This will affect all interfaces on computer unless you specify which interface.
ipconfig /renew "Wi-Fi"
ipconfig /displaydns