hi I have defined search localhost in /etc/resolv.conf cat /etc/resolv.conf search localhost i did not define any nameserver ip address in this file i have given the gw ip from where the internet can be reached no dns is running in gateway. no dns service is running on the PC no bind packages are installed on pc but still if i ping to some domain like ping www.google.com it resolves and displayes icmp replies. i dont know from where this name resolution is taking place please help on this what happens exactly. Regards, Gopinath M Signal Networks Pvt. Ltd. Smile... it increases your face value! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080509/7118ec06/attachment.html>
On May 9, 2008, at 7:49 AM, gopinath wrote:> I have defined > search localhost in /etc/resolv.conf > > cat /etc/resolv.conf > search localhost > > i did not define any nameserver ip address in this file > > i have given the gw ip from where the internet can be reached > > no dns is running in gateway. > no dns service is running on the PC > no bind packages are installed on pc > > but still if i ping to some domain like > ping www.google.com it resolves and displayes icmp replies. > > > i dont know from where this name resolution is taking placeThere is the possibility that /etc/nsswitch.conf might give you a clue... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080509/e9bb385c/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2425 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080509/e9bb385c/attachment.p7s>
gopinath wrote:> hi > > I have defined > search localhost in /etc/resolv.conf > > cat /etc/resolv.conf > search localhost > > i did not define any nameserver ip address in this file > > i have given the gw ip from where the internet can be reached > > no dns is running in gateway. > no dns service is running on the PC > no bind packages are installed on pc > > but still if i ping to some domain like > ping www.google.com <http://www.google.com> it resolves and displayes > icmp replies. > > > i dont know from where this name resolution is taking place > > please help on this what happens exactly. > > Regards, > Gopinath M > Signal Networks Pvt. Ltd. > > > Smile... it increases your face value! > > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centosTry dig. >>dig www.google.com<< Under the SERVER section, that should give you the information on where the DNS data came from. For instance, my SERVER name is the local ip address of my DNS server. HTH Monty