LMHOSTS file being ignored?

SD_Ryoko

Ultra Cool Member
Reaction score
82
I try to configure a host for two of the CNC machines on our network. Works fine on two comps, but not mine.

First I edit hosts and lmhosts manually. And they look like this. This is for WIN2K SP4.

Code:
127.0.0.1       localhost
192.168.0.121   FANUCH
192.168.0.122   FANUCG

But after I restart, it doesn't work. So I went to TCIP/IP properties, and used 'Import LMHosts' and imported the file from the machine that does work. But its exactly the same, theres no difference. Heres what it does.

Code:
C:\>ftp
ftp> open fanucg
Unknown host fanucg.
ftp> qui
c:\>

Now, Hijackthis.exe told me there was a bogus entry pointing to a bogus hosts file. I deleted that entry and the file. Then I used 'Import LMHosts' again, but it still doesn't work. No matter how many times I save it, what I name the file, lowercase, reboots, etc. Its like it totally ignores it.

None of the KB articles mention anything about lmhosts doing nothing, just how to configure them.

Enable LMHOSTS lookup is also checked.
 
So the localhost is the computer that is yours? You're on a completely seperate network, which is going to require some more work. My first guess is you have some IP conflicts going on, and you need to solve those.

Make sure your port for FTP is allowed on your personal machine.
 
It's really hard to see what you're trying to do, and all the information behind it ryoko. Are you trying to use FANUCH and FANUCG from a dns server on the server itself? Possibly the DNS server is down or not working on the server.

If the 127.0.... is your computer that you are using to try to log into those other ones, it will not work. It can't just automatically pick up another network. It will be looking for FANUCH and FANUCG inside of the 127... ip listing. Switching the localhost to a 192.... address may fix the problem.
 
Well its the same on the other machines?

The deal is we have two CNC machines (With Fanuc controll units) on our network.

But our old one, you can ONLY FTP to the FANUC machines. One has been labeled G, the other H.

If I type in the IP (192.168.0.122) in FTP it connects to it fine. But the hosts file should allow typeing in FANUCG to connect to it.
 
suggestions:

1) add #PRE to the lines in the lmhosts file

i.e.

127.0.0.1 localhost
192.168.0.121 FANUCH #PRE
192.168.0.122 FANUCG #PRE

entries marked with #PRE get loaded into memory when you logon to Windows.

2) Go into your command prompt and type "nbtstat -R". This will register the names you entered into the lmhosts file. Now look at your netbios cache to see if the lmhosts values have been added. To do this, type "nbtstat -c"

links:
http://labmice.techtarget.com/networking/lmhosts.htm
http://support.microsoft.com/kb/q150800/
http://support.microsoft.com/default.aspx?scid=kb;en-us;180099
http://support.microsoft.com/default.aspx?scid=kb;en-us;314108
http://support.microsoft.com/default.aspx?scid=kb;en-us;180094
 
lmhosts
Code:
127.0.0.1       localhost
192.168.0.122    fanucg #PRE
192.168.0.121    fanuch #PRE
NBTSTAT -R
Code:
C:\Documents and Settings\Dan>nbtstat -r

    NetBIOS Names Resolution and Registration Statistics
    ----------------------------------------------------

    Resolved By Broadcast     = 1
    Resolved By Name Server   = 0

    Registered By Broadcast   = 5
    Registered By Name Server = 0

    NetBIOS Names Resolved By Broadcast
---------------------------------------------
           MIKE
NBTSTAT -C
Code:
C:\Documents and Settings\Dan>nbtstat -c

Local Area Connection:
Node IpAddress: [192.168.0.6] Scope Id: []

                  NetBIOS Remote Cache Name Table

        Name              Type       Host Address    Life [sec]
    ------------------------------------------------------------
    EDS            <00>  UNIQUE          192.168.0.10        575
    EDSOLD         <20>  UNIQUE          192.168.0.9         575
    MIKE           <20>  UNIQUE          192.168.0.4         460
The Result.....after reboot
Code:
C:\Documents and Settings\Dan>ftp
ftp> open fanucg
Unknown host fanucg.
ftp> qui

Lastly I'll say, Hijackthis found a bogus entry for HOSTS pointing to a bogus file. I removed the entry, but now does WIN2K know where to go?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top