A possible alternative to capturing network traffic is running the command which should generate the DNS lookup via strace and seeing what it actually does. For example, from `strace ping -c 1 google.com` I can see that I'm sending my DNS query to 127.0.1.1 (I'm running a local instance of dnsmasq) and receiving a response.

socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.1.1")}, 16) = 0
poll([{fd=3, events=POLLOUT}], 1, 0)    = 1 ([{fd=3, revents=POLLOUT}])
sendto(3, "$\237\1\0\0\1\0\0\0\0\0\0\6google\3com\0\0\1\0\1", 28, MSG_NOSIGNAL, NULL, 0) = 28
poll([{fd=3, events=POLLIN}], 1, 5000)  = 1 ([{fd=3, revents=POLLIN}])
ioctl(3, FIONREAD, [204])               = 0
recvfrom(3, "$\237\201\200\0\1\0\v\0\0\0\0\6google\3com\0\0\1\0\1\300\f\0\1"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("127.0.1.1")}, [16]) = 204
close(3)                                = 0

On 03/26/2014 07:58 PM, Kent Perrier wrote:
Or capture the network traffic and look at it with wireshark


On Wed, Mar 26, 2014 at 6:14 PM, Paul Boniol <[email protected] <mailto:[email protected]>> wrote:

    You can do some diagnostics with the dig command.

    E.g.
    dig @server name
    dig name

    Paul


    On Wed, Mar 26, 2014 at 3:57 PM, Howard White <[email protected]
    <mailto:[email protected]>> wrote:

        On 03/26/2014 01:24 PM, Steven S. Critchfield wrote:

            Have you checked the entries in /etc/nsswitch.conf


        nsswitch.conf matches another server of the same release level
        upon which nslookup works fine.


--
All the best,
Brian Pitts

--
--
You received this message because you are subscribed to the Google Groups 
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nlug-talk?hl=en

--- You received this message because you are subscribed to the Google Groups "NLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to