Where could I get my networks domain name? I am trying to determine domain name of my network.
I tried some programming methods, commands but i could not
get domain name of my network.I got ip address using cat /etc/resolv.conf

I was doing program to get domain name but i dont know even
where it is actually stored?

Can you tell me location where domain name is stored?
Try executing the scutil --dns command.