Until 10.6 you can grab the domain name you are on using cat /etc/resolv.conf It returns the domain you are on, search domains and nameservers. I am working on a script that I want to ONLY run if the user is on their home domain...
Under 10.7 cat /etc/resolv.conf doesn't return the domain you are on. Only gives you search domains and nameservers.
Does anyone know a call that will bring you the domain name you are on under 10.7?
Thanks in advance.
Lenny
