I'm trying to ping my linux machines by host name and the pings are failing (can ping by ip just fine).
I then logged into the router which is the DNS server and see that the router sees the linux machines as "new-host1" "new-host2" etc...it's not getting their host names properly.
I can instead ping new-host1 successfully.
cat /etc/hostname
says the pc name is pc1
so why is the router seeing a diff name and how do i fix it? I rather not add the ip to the hosts file.