get ip from dns cmd code example Example 1: how to know the ip address of my pc using cmd ipconfig/all Example 2: command line ip ipconfig -a