linux - CentOS 7 hostname netbios/fqdn output -
i have centos 7 install giving me weird returns when lookup hostname of localmachine. used working windows , hosts file (/etc/hosts in centos) feel have setup correct. have few entries in hosts file running group of virtual machines test deployment scenario - hence names defined in there. machines in deplyment (3) have same setup.
admin@node2$ hostname node2.deployment.local admin@node2$ hostname -f chef-node2 admin@node2$ cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.5.99 node1 node1.deployment.local 192.168.5.100 master master.deployment.local 192.168.5.98 node2 node2.deplyment.local admin@node2$ printenv | grep -i -e "hostname" hostname=node2.deployment.local admin@node2$ cat /etc/environment http_proxy=http://stupidproxy.itsaywehavetohaveit.local:3128 https_proxy=http://stupidproxy.itsaywehavetohaveit.local:3128 java_home=/applications/jre1.8.0_92/ display=127.0.0.1:0.0 what trying figure out why system prints netbios name when running 'hostname -f' command , prints fqdn when run 'hostname' command. believe causing me issue.
your understanding , resolving appreciated.
Comments
Post a Comment