OSx dns cache
July 2017
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
About
This site is an effort to share some of the base knowledge I have gathered through all this years working with Linux, FreeBSD, OpenBSD, Python or Zope, among others. So, take a look around and I hope you will find the contents useful.
Recent Entries
Recent Comments
Recent Trackbacks
Categories
OpenBSD (9 items)
BSD (0 items)
FreeBSD (19 items)
Linux (3 items)
Security (3 items)
Python (22 items)
Zope (13 items)
Daily (144 items)
e-shell (9 items)
Hacks (14 items)
PostgreSQL (3 items)
OSX (8 items)
Nintendo DS (0 items)
enlightenment (0 items)
Apache (3 items)
Nintendo Wii (1 items)
Django (24 items)
Music (12 items)
Plone (7 items)
Varnish (0 items)
Lugo (2 items)
Sendmail (0 items)
europython (7 items)
Cherokee (1 items)
self (1 items)
Nature (1 items)
Hiking (0 items)
uwsgi (0 items)
nginx (0 items)
cycling (9 items)
Networking (1 items)
DNS (0 items)
Archives

Syndicate this site (XML)

RSS/RDF 0.91

24 enero
2008

OSx dns cache

or how to do you housekeeping job...
[OSX] 

Three in a row... I think this is the first time I write so much in a day.

This is a quick reminder for myself, but you (OSx users) out there should find it pretty interesting too.

In OSx it is posible that you have suffered the following:

1- You access a site, using your favourite protocol/application (ssh, http, ftp, svn, etc), for example, test.e-shell.org. This name points to ip address 192.168.1.1

2- The ip address for test.e-shell.org have change, now it is 192.168.1.2, but (you have no idea why), your OSx still tries to connect to the old ip address.

3- You add an entry to /etc/hosts, with the new ip address, trying to force the system to get the point, but no luck, it still tries to connect to that old ip address

Well, the reason for that, the culprit, is lookupd (dscacheutil if you are using leopard). This little daemon acts as a DNS cache, caching up all the names and related ip addresses.

So, to get the new ip for test.e-shell.org, we will have to refresh the cache, like that:

lookupd -flushcache

(from a Terminal.app, for example)

Note that in leopard, it should be something like:

dscacheutil -flushcache

Posted by wu at 20:17 | Comments (1) | Trackbacks (0)
<< FreeBSD ports and Python versions | Main | Alt.End >>
Comments
Re: OSx dns cache

You misspelled "lockupd" there... HTH!

Posted by: betabug at enero 25,2008 08:11
Re: OSx dns cache

lockupd should be the culprit of my macbook latest freezes (very often lately, and didn't know about the reason yet...)

Posted by: Wu at enero 25,2008 09:16
Trackbacks
Please send trackback to:http://blog.e-shell.org/36/tbping
There are no trackbacks.