hostname -d returns <blank> - how to set domain name, CentOS 6.3
While having provblems with getting Samba server to work, different thread, I have noticed that 'hostname -d' returns blank. Is this correct or should I be setting this domain name somewhere?
The two places where you need to have your hostname present are /etc/hosts and /etc/sysconfig/network files.
In /etc/hosts you need to have a line with the following format:
184.108.40.206 shorthostname.myexampledomain.com shorthostname
In /etc/sysconfig/network you need to have a line with the following format:
220.127.116.11 shorthostname shorthostname.myexampledomain.com
Now fixed that and 'hostname -d' works fine.
|All times are GMT -5. The time now is 07:00 AM.|