Solved question about vm-bhyve LAN slowly?

dear all:
i have got a problem about vm-bhyve LAN . blow is information about LAN.
root@fb14:/home/game # vm switch list
NAME TYPE IFACE ADDRESS PRIVATE MTU VLAN PORTS
public standard vm-public 192.168.122.1/24 no - - -

vm host IP : 192.168.122.111/24 , gateway : 192.168.122.1 DNS :8.8.8.8

when i ssh 192.168.122.111 from 192.168.122.1, that will wait more time to access. i have used tcpdump monitor vm-public interface and find problem.

vm 192.168.122.111 must ask DNS8.8.8.8 to find address 192.168.122.1 .
that is reason of spend more time to wait ....

the vms with host is same LAN, why the vms always ask DNS 8.8.8.8 to response to other vms of LAN ?
thanks. any one can help me ?
 
the vms with host is same LAN, why the vms always ask DNS 8.8.8.8 to response to other vms of LAN ?
sshd(8) tries to do a reverse lookup of the source IP address.

Code:
     UseDNS  Specifies whether sshd(8) should look up the remote host name,
             and to check that the resolved host name for the remote IP
             address maps back to the very same IP address.

             If this option is set to no, then only addresses and not host
             names may be used in ~/.ssh/authorized_keys from and sshd_config
             Match Host directives.  The default is “yes”.
sshd_config(4)
 
sshd(8) tries to do a reverse lookup of the source IP address.

Code:
     UseDNS  Specifies whether sshd(8) should look up the remote host name,
             and to check that the resolved host name for the remote IP
             address maps back to the very same IP address.

             If this option is set to no, then only addresses and not host
             names may be used in ~/.ssh/authorized_keys from and sshd_config
             Match Host directives.  The default is “yes”.
sshd_config(4)
Dear sirdice
thanks. that problem is not only in ssh. when i used traceroute 192.168.122.1 in the vm , this command still first ask DNS 8.8.8.8. and spent more time to wait . i know i can add "192.168.122.1 myhost.edu.xxx" in the /etc/hosts to solve those problem, but why ? i need to know why . thanks.
 
when i used traceroute 192.168.122.1 in the vm , this command still first ask DNS 8.8.8.8. and spent more time to wait
Code:
     -n      Print hop addresses numerically rather than symbolically and
             numerically (saves a nameserver address-to-name lookup for each
             gateway found on the path).
traceroute(8)
 
Back
Top