what is used for knowing its own ip address
for windows "ipconfig" "ipconfig/all" means it will show the mac address and also show the dns value of the particular machine, if not means their is a problem in your dns.