Home >Operation and Maintenance >Linux Operation and Maintenance >What does bogon mean in linux?
In Linux, bogon is the host name; when the host name is bogon, it refers to addresses that should not appear in the Internet routing table, including private addresses and addresses that have not been officially assigned. You can use " hostnamectl" to check that the host name is bogon. You can use "vi /etc/sysconfig/network" to modify HOSTNAME to modify the host name.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
bogon is the host name
Use hostname to view the current host name
Modify in vi /etc/sysconfig/network HOSTNAME=
Must be restarted to take effect
Bogon refers to addresses that should not appear in the internet routing table
These addresses should include:
1. Private addresses such as 10, 172.16-32, 192.168....
2, addresses that have not been officially assigned
Use hostnamectl to check, the host name is bogon
[root@bogon ~]# cat /etc/resolv.conf
I found an extra line of search localdomain, which should be this line of configuration The problem caused by this is that the configuration in resolv.conf is automatically issued by the vmware 8 network card, so it is useless to change the configuration here.
Analyze the IP address: Check which installation package the nslookup command comes from
[root@bogon ~]# yum provides */nslookup
[root@bogon ~]# yum -y install bind-utils
This piece The configuration description is to parse the IP address of the host after loading the configuration file. The returned domain name is echoed to the command line as the host name and attempts to parse the local IP
## The IP address of this machine is resolved to bogon, which means that if search localdomain is configured in resolv.conf, the host name obtained here will take precedence over the configuration in the hosts and network files To solve this problem, the simplest solution is to use the hosts file to directly resolve the IP address of this machine to your host name without going through dns (not localhost)Recommended Learn:The above is the detailed content of What does bogon mean in linux?. For more information, please follow other related articles on the PHP Chinese website!