I have 2 PCs running CentOS 7 and they're both connected to a wireless repeater/AP. I have statically set both the IP addresses of the 2 PCs, and they are able to ping each other via IP. I have also manually set the hostname of each pc, and each PC is also able to ping itself via hostname. However, they are not able to ping each other by hostname.
I have set the DNS server to be the same as the default gateway, which is the router IP address. Is this correct? If not, what should I do?
Thanks!