Home  >  Article  >  Operation and Maintenance  >  What does bogon mean in linux?

What does bogon mean in linux?

WBOY
WBOYOriginal
2022-07-08 16:48:379406browse

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.

What does bogon mean in linux?

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What does bogon mean in linux

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

What does bogon mean in linux?

[root@bogon ~]# cat /etc/resolv.conf

What does bogon mean in linux?

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

What does bogon mean in linux?

[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

What does bogon mean in linux?

## 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:

Linux Video Tutorial

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:what is linux stackNext article:what is linux stack