Nslookup working but ping not working at windows client
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Nslookup working but ping not working at windows client
Hi Team
we have created a DNS server at RHEL6.2 environment in 10.20.203.x/24 network.
Everything is going well on linux client as nslookup, ping by host etc in entire subnet. We are getting problem in windows client as nslookup working as well but not ping. all the firewall is disabled and alos port is opened for DNS server.
Here the /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
It sounds like everything is working on Linux clients, but not working on the Windows clients. Is that correct?
If that is correct, then the problem is probably not with the server, because obviously all the necessary traffic is getting through to it from the Linux clients.
Are the Windows boxen on the same subnet? are they connected to a router or a managed switch that differs from what is connecting the Linux clients?
make sure the DNS server IP is the first dns for the windows clients if it is, while pinging from windows client, in linux server tcpdump the traffic from windows client to see if you receive any DNS query packets.
From an administrator command prompt you can try running ipconfig /flushdns and then retrying ping. I've had to do this occasionally on my W7 workstation for some unknown reason.
Caveat: I know nothing about windows, and this is a Linux forum. BUT...is there some kind of software firewall on Windows that might be getting in the way (although any firewall blocking DNS is kind of hard to imagine)... ?
1) first ping by ip address: does it work? If yes, then move on. If no, then you cannot ping to that ip address for whatever networking related reason (or maybe destination server has firewall, or your client has firewall - for whatever reason ping is not getting responded to)
2) next do your nslookup on the hostname you want to ping: "nslookup [hostname]". Make sure the ip it returns is what you expect.
3) then ping hostname
You should see the ip address it is trying to ping. That IP should be what is returned in step 2. If it is, then ping should respond back. If it isn't, then there is some DNS issue or for whatever reason the application using "ping" is not using your local server's DNS config.
That should be a good start, if not point you to the problem.
I hate to be blunt, but you're bringing a knife to a gunfight.
Code:
ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway.
ECHO_REQUEST datagrams (``pings'') have an IP and ICMP header, followed by a struct timeval and then an arbitrary number of
``pad'' bytes used to fill out the packet.
and
Code:
Nslookup is a program to query Internet domain name servers. Nslookup has two modes: interactive and non-interactive.
Interactive mode allows the user to query name servers for information about various hosts and domains or to print a list
of hosts in a domain. Non-interactive mode is used to print just the name and requested information for a host or domain.
ping is unreliable as a test since ICMP requests to a host may not be allowed.
nslookup and ping aren't the same thing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.