Recent Posts


Collecting Network Information via the OS X Terminal


Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

Using the Windows “command line” (DOS, or in XP “not DOS”), you can get a nicely formated printout of your Network configuration by typing the following command.

ipconfig /all

OS X, surprisingly, lacks a similar command. This thread over at OS X hints lists the several different commands you need to run in order to collect the desired information. I am archiving the useful bits here in case the OS X hints thread vanishes.

IP Address:      ifconfig -a
DNS Server:      cat /etc/resolv.conf
Default Gateway: netstat -r

The most important of those is the DNS server. For some reason, when you’re using DHCP the Network preference pane doesn’t list this important bit of information.

Copyright © Alan Storm 1975 – 2021 All Rights Reserved

Originally Posted: 30th May 2005