1836003 Members
2298 Online
110088 Solutions
New Discussion

Fake Loopback /etc/hosts

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

Fake Loopback /etc/hosts

OK I've done this many times and I can't remember how to do it. I did a fresh install and the box is not on the network yet, so SAM takes forever.

You can fake it out with a /etc/hosts entry, something like:

xxx.xx.xx.x loopback 'hostname'
or
xxx.xx.xx.x 'hostname' loopback

something like that, I know it works because I've done it before. Then SAM will run much faster until I get it on the network...
UNIX IS GOOD
7 REPLIES 7
Gary L. Paveza, Jr.
Trusted Contributor

Re: Fake Loopback /etc/hosts

Try 127.0.0.1
Robert-Jan Goossens
Honored Contributor

Re: Fake Loopback /etc/hosts

127.0.0.1 localhost loopback

Regards,
Robert-Jan
Nobody's Hero
Valued Contributor

Re: Fake Loopback /etc/hosts

Yes, I understand that. but you put the hostname in as the loopback address or something like that. like

127.0.0.1 ltcrss loopback

I cant remember the sequence....
UNIX IS GOOD
Nobody's Hero
Valued Contributor

Re: Fake Loopback /etc/hosts

OK...

127.0.0.1 localhost loopback is the valid entry. I am trying to fake the box out. HP showed me this a long while ago. I know it works.

I'll try
127.0.0.1 ltcrss
UNIX IS GOOD
Nobody's Hero
Valued Contributor

Re: Fake Loopback /etc/hosts

You mean to tell me that all the experts out there have not done this. The box will think it is on the network, and SAM will run fast.
UNIX IS GOOD
harry d brown jr
Honored Contributor
Solution

Re: Fake Loopback /etc/hosts

I think you mean if itcrss has an ip of 192.168.1.2 and you want the loopback to use something other than 127.0.0.1 ?

/etc/hosts:
192.168.1.2 ltcrss loopback

The ORDER does NOT matter. The issue is that some software products have 127.0.0.1 hardcoded instead of looking up "loopback" or "localhost"

live free or die
harry d brown jr
Live Free or Die
Victor BERRIDGE
Honored Contributor

Re: Fake Loopback /etc/hosts

Hi,
When you say not on the network yet, you mean configured for already? And not as standalone.

So I wonder if you are not having issues because you have /etc/resolv.conf and /etc/nsswitch.conf already active with maybe in nsswitch hosts: DNS [NOTFOUND=CONTINUE] files, or something of the sort...

I usually stop all inet services and at the console type set_parms saying no for DNS NIS etc so that it just updates the IP and /etc/hosts for hostname and later when connected I configure/update the files that deal with network by hand...

Just thoughts....

All the best
Victor