cancel
Showing results for 
Search instead for 
Did you mean: 

etc/hosts gets cached?

Former Member
0 Kudos

Hi,

I have following problem. By mistake I've entered wrong host ip in etc/hosts for SAPTRANSHOST. Then I've changed it to right one, but unfortunately Windows still uses the old one

I've restarted windows, did ipconfig /flushdns and nothing helped

Any ideas how to make it work? Where is it cached?

REgs

FS

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

No. Nothing caused it do work as expected. I left it that way and changed STMS configuration ... it works, but "
saptranshost" still points to different machine than "ping saptranshost".

REgs,

FS

Former Member
0 Kudos

Thank you for your suggestions, but still the same problem.

File etc/hosts is set OK (ping saptranshost calls right host), but when I choose [Start]/[Run] and type
saptranshost - the old "wrong" host is opened.

I guess it's some Windows server trick.

I do not have SAP installed on this machine because I was just trying to prepare
saptranshost for install when the problem appeared.

REgs,

FS

markus_doehr2
Active Contributor
0 Kudos

try to

start - execute

ipconfig /flushdns

Markus

Former Member
0 Kudos

Hi,

You DNS resolution is OK but your windows resolution is bad.

It seems that you use WINS servers for netbios name resolution and that their info is wrong.

Try a "net view
<saptranshost>" and see if the result is OK or wrong.

Regards,

Olivier

Edited by: Olivier CHRETIEN on Feb 7, 2008 1:34 PM

The crappy forum editor hides the double backslash for the net view command.

Former Member
0 Kudos

You are right!

nbtstat -n

returns (among others)

SAPTRANSHOST <20> UNIQUE Registered

How to clear/unregister it? nbtstat -R does not work

REgs

FS

PS. Points will be rewarded soon

Former Member
0 Kudos

nbtstat -RR

Releases NetBIOS names registered with a WINS server and then renews their registration.

Also, check this url:

[http://technet2.microsoft.com/windowsserver/en/library/39e7ef09-569a-46ed-8292-817ada07f4ee1033.mspx?mfr=true|http://technet2.microsoft.com/windowsserver/en/library/39e7ef09-569a-46ed-8292-817ada07f4ee1033.mspx?mfr=true]

Former Member
0 Kudos

Yes,

That's it : nbstat -RR

Thanks, Eydar : I did not remember this command.

Regards,

Olivier

Former Member
0 Kudos

Did you solve the problem?

markus_doehr2
Active Contributor
0 Kudos

To "reload" the host table:

- SM51

- Goto - hostname Buffer - reset - entire system

This should reset all hosts (and service) related data in your system.

Markus

Former Member
0 Kudos

Hi Filip

Try this in your windows computer

nbtstat -R

This Purge and reloads the remote cache name table

Please reward points if helpful

Regards

Former Member
0 Kudos

Hi,

You should have nothing special to do because etc\hosts is dynamic on Windows. No cache anywhere.

I've already seen stranges cases when the hosts file was bad because of non printable characters.

Recreating the file with notepad with what was visually exactly the same, did the trick !

Regards,

Olivier