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:
220.127.116.11 shorthostname.myexampledomain.com shorthostname
In /etc/sysconfig/network you need to have a line with the following format:
18.104.22.168 shorthostname shorthostname.myexampledomain.com
Now fixed that and 'hostname -d' works fine.
|All times are GMT -5. The time now is 01:17 AM.|