Hi, I figured out the way to connect remotely to my machine within the firewall just by using the hostname.
First I followed the suggestions and modified the following files: 1. /etc/hosts 2. /etc/sysconfig/network 3. /etc/rc.sysinit/ <grep for HOSTNAME and replaced it with the hostname> After changing the files I restarted the machine and found that the hostname had indeed changed. But the hostname had still not been reported to the dhcp server. I tried nslookup to find the hostname of the machine, nslookup failed. But when I did nslookup with the IP address, I got "<hostname>".XX.XX.XXXXX I found the exact string on /usr/lib/connman/scripts/dhclient.conf file. All I did was to replace "<hostname>" with the new hostname and it worked perfectly from then on. Thanks. Regards, Siva -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mike Massonnet Sent: Friday, May 15, 2009 4:33 AM To: Jeganathan, Nithyananda S Subject: Re: [Moblin Dev] Changing hostname in Moblin2 Hi, It's done via /etc/rc.sysinit, tho I'm not sure if the hostname is reported to the dhcp server so this is not necessarely what you are looking for. You should usually be able to configure the dhcp server instead, by matching MAC address to hostnames. Mike 2009/5/14 Jeganathan, Nithyananda S <[email protected]>: > Hi, > I have a moblin2 image running successfully on a test platform. > I want to change the hostname of the machine, so that I can ssh to the > machine using the hostname rather than its IP address (which is not static). > > I searched the archives and I couldn't find the exact answer. Fedora based > solutions didn't work for me (changing /etc/hosts and sysconfig/network > files). > > Any suggestions will be helpful. > Thanks. > > > Regards, > > Siva _______________________________________________ Moblin dev Mailing List [email protected] To manage or unsubscribe from this mailing list visit: https://lists.moblin.org/mailman/listinfo/dev or your user account on http://moblin.org once logged in. For more information on the Moblin Developer Mailing lists visit: http://moblin.org/community/mailing-lists
