Re: A problem with "hosts" file: hostnames with dots are not being resolved



In news:1169786585.533573.83980@xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
Yarik <yarik@xxxxxxxxxx> stated, which I commented on below:
Hi,

When I include the following two entries into my "hosts" file

192.168.1.22 zzyzx
192.168.1.22 zzyzx.com

the first hostname (the one without dots) is being resolved just fine,
but the second hostname (the one that does have a dot) isn't. What
could be a cause of such strange behavior and how this problem could
be fixed?

When this computer was set up for the first time, this problem did not
occur. I believe it started to occur at some point, but unfortunately,
I do not remember exactly when. I just remember that several months
ago one of the hostnames defined in the "hosts" file suddenly became
unresolvable, but at that point it was not important enough to
investigate; now I desperately need to include some hostnames with
dots...

Please, help! I cannot believe I am the first one stepping on this
problem. :-)

Thank you,
Yarik.

P.S. The computer runs Windows 2000 Server SP4.

How many entries are in the hosts file?

Did you eliminate the possibitlity of a virus (the Qhosts virus), or spyware
that may have hijacked the file?

When you do an ipconfig /flushdns, then an ipconfig displaydns, does the
entries you put in show up with the dots? Right after that, try to ping both
entries, and post your results.

--
Ace
Innovative IT Concepts, Inc (IITCI)
Willow Grove, PA

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Directory Services
Microsoft Certified Trainer

Having difficulty reading or finding responses to your post?
Instead of the website you're using, I suggest to use OEx (Outlook Express
or any other newsreader), and configure a news account, pointing to
news.microsoft.com. This is a direct link to the Microsoft Public
Newsgroups. It is FREE and requires NO ISP's Usenet account. OEx allows you
to easily find, track threads, cross-post, sort by date, poster's name,
watched threads or subject.
It's easy:

How to Configure OEx for Internet News
http://support.microsoft.com/?id=171164

Infinite Diversities in Infinite Combinations
Assimilation Imminent. Resistance is Futile
"Very funny Scotty. Now, beam down my clothes."

The only constant in life is change...


.



Relevant Pages

  • Re: NIS question!
    ... > entries are repeated several times in the output, ... The NIS hosts map is indexed with the hostname as key (run ... `ypcat -k hosts` to get the key to show up in the list, ...
    (comp.unix.solaris)
  • Sendmail.cf modifications for local mail without going to internet
    ... # basic textual canonicalization -- note lack of RFC733 heuristic here ... # next two lines only gen'd if have aliases for all and $N isn't LOCAL ... # Fake hosts in my domain ... # (we pull off the local hostname in all cases, ...
    (comp.mail.sendmail)
  • Re: [SLE] SMTP and incomming mail -- PROBLEMS??
    ... Hosts is only used as a DNS replacement. ... What you suggest should have no effect on incomming smtp. ... As far as HOSTNAME, I think, someone correct me if I am wrong, that since I ... > Check the headers for your unsubscription address ...
    (SuSE)
  • SUMMARY: boot with new IP does not take effect in Sol10
    ... Sol10 got a bit more strict. ... I took the extra entries from ipnodes and moved them to hosts then ... /etc/hostname.ce0 contains my hostname ... result of e-mail transmission. ...
    (SunManagers)
  • Re: can openssh/logins be exploited this way?
    ... >maybe i didnt quite explain the dyndns problem. ... >saved into my known hosts, ... connecting to your dynamic host. ... Normally it will save both IP and hostname. ...
    (comp.security.ssh)