Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I was using a similar solution but probably quite different than the parent. I first generated the list of entries using Tinyproxy (turned out it was much easier than inspecting local DNS cache): you install Tinyproxy somewhere and use it for a few days. Then take the log and cut the lines:

  CONNECT Sep 08 08:29:04 [18050]: Connect (file descriptor 6): DOMAIN [IP]
So basically you almost have your hosts file ready, you just need to switch places of the DOMAIN and IP, cutting out all before and the brackets. A minute or so.

I used it for a short time and never bothered to take care of the updates though. I guess I'd have to temporarily disable the hosts file and run an async DNS resolver such as adnshost:

  adnshost -Vq +Dt
- filtering out the INET string to create a diff. It seems to much hassle to me though, to manually inspect DNS changes - I have so many things to do, I see no much reason to bother with every IP change on the Internet.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: