How to Fix Temporary Failure in Name Resolution On Linux

Last updated on June 3rd, 2023 at 01:04 pm

Temporary Failure in Name Resolution

If you have recently installed Kali Linux Ubuntu or any other LINUX operating system variant you have probably faced or maybe you are facing the issue of “temporary failure in name resolution”. In this article, we will share a permanent simple, and straight solution to this problem. The latest Linux OS versions are coming with an error where the end-users having been connected to their Wifi aren’t able to surf the internet or even the ping command also through the same error message. Let’s know a little bit about what this error is and why you are facing this issue.

 
temporary failure in name resolution
temporary failure in name resolution permanent solution

What is Name Resolution?

        You can relate this with a real-life example: suppose a guy named Mike gets a pizza delivery job in another city, he doesn’t know the exact addresses of the pizza company’s permanent customers, so the sales manager gives him an address book that contains numbers and addresses of all their customers, by which he can now deliver the pizza easily and quickly.

        The same thing applies here: the internet is nothing but a large network of interconnected computers and those computers have their addresses called IP addresses. Computers communicate through IP addresses and because humans are not much capable of memorizing large numbers, instead they assign the names to those IP addresses to remember them easily. So the example of Mike illustrates the scenario of communication and transfer of physical entities, similarly, the online devices use DNS (Domain Name System) as an address book or phone book.

        In DNS the conversion process of domain names to IP addresses and IP addresses to domain names is called Name Resolution. In simple, name resolution is the main actor who resolves our domain name-related queries and provides us with the required IP addresses.

Simple Solution to “Kali Linux Wifi Not Working”

If you are working on a Linux OS based machine like AWS EC2 Linux, Arch, Kali Linux, Ubuntu, Linux Mint or any other type of Linux distro you might meet this error.

Follow these easy steps and type these system commands to solve Linux Name Resolution Problem.

  1. Open a terminal in your Linux OS and check the internet connectivity status simply by using the ping command.

    ping cybertaleem.com


    ping any website
  2. Now if you have the issue in ping results Temporary failure in name resolution, there would be a service is blocked to check that service status simply copy this command and its status along with full details will appear on the screen.

    sudo systemctl status systemd-resolved.service

    loaded status is disabled

    Now After putting this command, you can see the status of the service in the “Loaded” para is disabled meanwhile the “Active” para below also denotes that the same service is inactive (dead).

  3. Now let’s move to our third step and try to enable this service simply by putting this command in the terminal.

    sudo systemctl enable systemd-resolved.service

    enable the systemd-resolved.service
  4. Now check the status of systemd-resolved service again in the “Loaded” para if it is now enabled, that’s great. We should now move ahead to our next step. To check the status simply recall the last status command.
    name resolution command status
  5. In the last step, you’ll find the status is enabled but the service is not yet active. To activate it use this command.

    sudo systemctl start systemd-resolved.service

    restart the service to resolve temporary failure in name resolution

    This command won’t react in the terminal but in the background, it’ll fix your problem permanently.

    temporary failure in name resolution problem solved
  6. Now the last step is to verify and make sure that everything went perfectly or not. To verify this recall the ping command again or open any browser and go to our website by searching cybertaleem on Google and enjoy.

2 thoughts on “How to Fix Temporary Failure in Name Resolution On Linux”

Leave a comment