Mailinglist Archive: opensuse (1695 mails)
| < Previous | Next > |
Re: [opensuse] ping and telnet solves hostname to different IP addresses?
- From: Anders Johansson <ajohansson@xxxxxxx>
- Date: Sun, 12 Jul 2009 18:06:22 +0200
- Message-id: <200907121806.22874.ajohansson@xxxxxxx>
On Sunday 12 July 2009 18:00:20 Zhang Weiwu wrote:
Try restarting nscd (and possibly deleting its cache) - or simply stopping it
with "rcnscd stop". If the DNS server responded with a TTL for that IP
address, then nscd will not refresh its cache until the TTL expires.
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Anders Johansson wrote:
Sounds like a coincidence. I bet if you were to do
host svn.realss.com
a bunch of times, you would get the 202.106.199.36 a few times, just as
you say your network is configured to do. The fact that it happened just
as you switched to telnet must have been a coincidence. They both use the
normal glibc lookup functions to convert a host name to IP address
Not so sure. After I posted the message I edited /etc/hosts to add a
line specify
221.219.118.212 as svn.realss.com and re-run two commands, the output stays
the same, so telnet ignored /etc/hosts setting (???) .
Try restarting nscd (and possibly deleting its cache) - or simply stopping it
with "rcnscd stop". If the DNS server responded with a TTL for that IP
address, then nscd will not refresh its cache until the TTL expires.
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |