Forum Discussion

foshaa's avatar
foshaa
Copper Contributor
Oct 13, 2024

My dns server can ping by ip but host ca ot ping

Please can anyone help me. I have tried every possible ways but still i can ping DNS server by ip not host name. It work same system running DNS server works correctly other systems can within tge same network 

  • kyazaferr's avatar
    kyazaferr
    Iron Contributor

    Check DNS Configuration on the Client Machine

    Ensure that the client machine is configured to use the correct DNS server for name resolution.

    • Open Network and Sharing Center > Change adapter settings.
    • Right-click your active network connection and select Properties.
    • Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
    • Ensure the Preferred DNS server is set to the IP address of the DNS server.

    2. Verify DNS Server Configuration

    Check the DNS server settings to ensure that it is correctly resolving hostnames.

    • Ensure Forward Lookup Zones are configured properly:
      • Open DNS Manager on your DNS server.
      • Under Forward Lookup Zones, ensure that the domain name (e.g., example.com) is listed, and the correct records (A or CNAME) exist for the hostnames you’re trying to resolve.
    • Check Zone Transfer Settings: Make sure that the zone is replicating correctly to all DNS servers that may be involved in the resolution process.

    3. Flush DNS Cache

    ipconfig /flushdns

    Check DNS Suffix Settings

    Make sure the DNS suffix search order is correct, especially if you are working in a multi-domain environment.

    • Go to Control Panel > Network and Sharing Center > Change adapter settings.
    • Right-click the active network connection and choose Properties.
    • Select Internet Protocol Version 4 (TCP/IPv4), then click Properties.
    • Click on Advanced and check the DNS Suffix Search List. Ensure the correct domain suffix is listed.

    5. Test DNS Resolution

    On the DNS server, test whether it can resolve the hostname of the system by running the following in Command Prompt:

    nslookup <hostname>

    This will tell you if the DNS server can resolve the name. If it cannot, check the DNS records in the DNS manager for errors.

    6. Check Firewall and Antivirus Settings

    Ensure that no firewall or antivirus settings are blocking DNS requests. Sometimes, firewalls (either on the server or client) can block certain types of DNS queries.

    • Temporarily disable the firewall on both the client and DNS server to check if that’s the cause of the issue.

    7. Check Hosts File

    Ensure that the hosts file on the client machine is not interfering with DNS resolution. The hosts file is located at:

    C:\Windows\System32\drivers\etc\hosts

    Verify DNS Server Health

    On the DNS server, check if the DNS service is running correctly and the server is not experiencing any issues.

    • Open Event Viewer and check the DNS Server Logs for any errors related to DNS resolution.
    • Also, ensure the DNS service is running by checking the DNS Server service in Services.msc.

    9. Check for Split-Horizon DNS

    If you have split-horizon DNS (i.e., different DNS records for internal and external users), make sure that the DNS records for the hostname are available for the network segment where the client resides.

    10. Test with IP and FQDN

    From the client machine, test resolving both the IP and fully qualified domain name (FQDN) of the DNS server:

    ping <IP-address>   # Ping using IP
    ping <hostname>     # Ping using hostname

    Check DNS Client Service

    Ensure the DNS Client service is running on the client machine:

    • Go to Services (type services.msc in the run dialog).
    • Look for DNS Client, and ensure it is running. If it is stopped, start it.

    12. Test on Other Machines

    Since you mentioned that other systems on the same network can resolve hostnames, compare the DNS settings between a working system and the one that is having issues. Check:

    • IP settings (DNS server entries).
    • DNS suffixes.
    • DNS cache.
    •  

Resources