LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   hostname confusion---connected to router (https://www.linuxquestions.org/questions/linux-networking-3/hostname-confusion-connected-to-router-4175415699/)

pixellany 07-09-2012 09:39 AM

hostname confusion---connected to router
 
Desktop and laptop both running Arch, recently updated
Internet connection thru Comcast wireless router

Everything is working fine until....

((I think)) the problems started when I installed ssh on both machines--at the same time, I changed the hostname on one of them.

Even though both machines would connect to the router---AND the router diagnostics showed the outside connection was working---I could not get out the the net. The problem was eventually resolved by re-booting the router with factory defaults.

In the process, I noted that the router showed the desktop with the old hostname. Now--after rebooting everything, it still shows the old name. /etc/hosts and /etc/rc.d both have the new name, and "hostname" gives the new name. The router admin page still shows the old name.

I'll guess that dns info gets stored in the router, but why would that not get reset when re-booting everything?

I'll really appreciate learning that I'm missing something really simple...;)

jefro 07-09-2012 11:05 AM

Could you have set ip lease to forever that started this?

Why would an old hostname survive a reset to default? It can't or at least shouldn't have. If the old hostname is still in the router either it is not being reset fully or there is in fact a hostname out there.

Take the computers off the network and reset the router. Do the names stay?

Deshawn 07-09-2012 03:34 PM

After reboot there should be no changes in the hostname. After modifying the host file did you save the file before rebooting.

Thanks
Buy lace

pixellany 07-09-2012 04:45 PM

Quote:

Originally Posted by jefro (Post 4723019)
Could you have set ip lease to forever that started this?

Why would an old hostname survive a reset to default? It can't or at least shouldn't have. If the old hostname is still in the router either it is not being reset fully or there is in fact a hostname out there.

Take the computers off the network and reset the router. Do the names stay?

I think I might have set the lease time to forever..
I will try taking everything offline and then resetting.....

thanks for the tips


All times are GMT -5. The time now is 11:28 AM.