dig has nothing to do with hosts. It uses bind and internet servers for DNS.
hosts is the file lookup method in /etc/resolv.conf. This has nothing to do with BIND or dig. $ dig @8.8.8.8 <somesite.com> man dig On Wed, Dec 5, 2012 at 11:38 PM, ashwin kesavan <[email protected]> wrote: > Hi, > > I see a strange dns problem. When i do a dig <somesite.com> it resolves > to a ip that i own. This ip is in USA and i am doing dig from chennai. My > ISP and this USA hosting providers have no known relation. Then how is > the dns name is able to resolve to my hosted ip ? Strange thing is online > dns lookup tools don't resolve to this IP. Why does my dig is able to > resolve while online tools aren't ? I dont have any hosts entry. > > with regards, > ashwin > > _______________________________________________ > ILUGC Mailing List: > http://www.ae.iitm.ac.in/mailman/listinfo/ilugc -- Gayatri Hitech http://gayatri-hitech.com _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
