DNS Resolution Failing - Solution Document

DNS Resolution Failing - Solution Document




    Solution Document


       DNS Resolution Failing 

         Overview

General/Customer specific

General

Author

Dhirendra Patil

Reviewer

Rukmini

Approver

 

Release date

27/07/2022

Product Version

9.0r15


            Audience: CSG/TechWarriors/PAC/Platform/Product teams


What’s the Issue? 

User reports that IP Resolution was failing for the URL because the DNS was not configured on the servers

Describe the Issue in Detail

While doing the testing for the service now integration we try to hit the service now URL from the Shipper server for the testing, but it was failing to resolve the URL to IP. 

DNS resolution was failing due to no DNS address being present in /etc/resolv.conf. 





Solution Summary

         Check If DNS IP is configured   

Solution Steps in Detail


There could be multiple reasons why the DNS resolution is failing.

    DNS server is not reachable from the server.
    Port 53 is not open on the firewall.
    No Client DNS IP is configured in /etc/resolv.conf.
    resolvconf package is not installed on the server.
    systemd-resolved.service can be down.
    DNS bind serrvice can be down.



We should do the following checks:


  1. Check If any DNS IP is configured on the server.

    # systemd-resolve status
    or
    # cat /etc/resolv.conf
  2.      If DNS IP is present, then try to telnet the IP and check the reachability.


vunet@shipper1:~$ telnet 172.24.2.9 53

Trying 172.24.2.9...

Connected to 172.24.2.9.

Escape character is '^]'.

^]

telnet> q

Connection closed.


         Check if systemd-resolve service is running. If not running restart the service


# sudo systemctl status systemd-resolved.service

To Restart 

# sudo systemctl restart systemd-resolved.service



  1. If DNS IP is not present, we need to configure the DNS IP

  2.      Check if the resolvconf package is presnt. If not install the package.
  3.      # apt list --installed | grep "resolvconf"
  4.      Steps to Install the resolvconf package on the server using command or package 
  5.      Using the command
  6.       # sudo apt -y install resolvconf
  7.       Using the Debian package.
  8.       download the package using the                URL http://ports.ubuntu.com/pool/universe/r/resolvconf/resolvconf_1.79ubuntu10.18.04.3_all.deb and put the package in the server (check for the package as per the OS version 

  9. Run the below command to install the package
  10.        # sudo dpkg -i /absolute/path/to/deb/file
  11.        # sudo apt-get install -f
  12.        Edit the file /etc/resolvconf/resolv.conf.d/head and add the below the entry and save the file.
  13.        nameserver <ip_of_nameserver>
  14.        Run the below command for reloading the configuration.
  15.        #sudo resolvconf -u
  16.        Check if the DNS is working properly or not 


# systemd-resolve <URL>













Corrective actions if any to avoid in future

  1. No


         More Help

            Check for the network level logs for additional         information.

         References




    • Related Articles

    • Solution-document 665

      VuNet Systems Private Limited Solution Document Ticket #665 Overview General/Customer specific RBL Author Rachitha H V Reviewer Seema Approver Tejaswi and Krishna kumar Release date Product Version 8.5r5 Audience: ...
    • Solution-document 659

      VuNet Systems Private Limited Solution Document Ticket #659 Overview General/Customer specific RBL Author Rachitha H V Reviewer Seema Approver Rahjesh Release date Product Version 8.5r5 Audience: CSG/TechWarriors/PAC/Platform/Product teams What’s the ...
    • Solution-document 564

      VuNet Systems Private Limited Solution Document Ticket #564 Overview General/Customer specific RBL Author Rachitha H V Reviewer Seema Approver Rahjesh Release date Product Version 8.5r5 Audience: CSG/TechWarriors/PAC/Platform/Product teams What’s the ...
    • Bucket Size Increasing Solution Steps - 548

      Solution Document for Increasing the Bucket Size Verified By Tejaswi Botla tejaswi@vunetsystems.com Prepared By Naveen Sai Naveen.sai@vunetsystems.com NOTE : All the changes we have made in non-sudo user centos setup. Others can follow the same steps ...
    • Kafka Document

      Kafka documents avilable at: https://docs.google.com/document/d/1QjOxua7DdDOMNtCu3bKOiCMtFm2MAVkzk2Rmzo4UzVA/edit?hl=en#