LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] changing hostid in linux 7.2

[ILUG] changing hostid in linux 7.2

paul at clubi.ie paul at clubi.ie
Fri Dec 15 13:47:47 GMT 2006


On Thu, 14 Dec 2006, Walter Faleiro wrote:

> Folks,
> I have an application that runs tied with hostid of the system. Recently
> reformatting the drive changed the hostid to 7f0100.

I.e. the IP address 127.0.0.1.

> Is there anyway I can change the hostid in 7.2? I tried a few posts 
> but unlike FreeBSD and Solaris there seems to be little hope for 
> me.

I think you just need to change /etc/hosts so that 'hostname' returns 
a name whose first IPv4 address is 127.0.0.1.

Alternatively, just write a tiny object file to implement your 
gethostid() function, returning whatever you want, and LD_PRELOAD it 
when running your application.

regards,
-- 
Paul Jakma	paul at clubi.ie	paul at jakma.org	Key ID: 64A2FF6A
Fortune:
An age is called Dark not because the light fails to shine, but because
people refuse to see it.
 		-- James Michener, "Space"



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell