{"id":3702,"date":"2024-06-06T01:38:07","date_gmt":"2024-06-05T20:08:07","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=3702"},"modified":"2025-04-09T12:22:49","modified_gmt":"2025-04-09T06:52:49","slug":"temporary-failure-in-name-resolution-dns-error","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/temporary-failure-in-name-resolution-dns-error\/","title":{"rendered":"How to Fix &#8216;Temporary Failure in Name Resolution&#8217; DNS Error"},"content":{"rendered":"\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Ubuntu-Sources.List-URLs.jpg\" target=\"_blank\" rel=\"noopener\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1200\" height=\"406\" data-id=\"3711\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Ubuntu-Sources.List-URLs.jpg\" alt=\"Fix \u2018Temporary Failure in Name Resolution\u2019\" class=\"wp-image-3711\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Ubuntu-Sources.List-URLs.jpg 1200w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Ubuntu-Sources.List-URLs-300x102.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Ubuntu-Sources.List-URLs-1024x346.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Ubuntu-Sources.List-URLs-768x260.jpg 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>If you encounter a &#8220;temporary failure to resolve name&#8221; error, it can damage your Internet connection by failing to resolve domain names to IP addresses.&nbsp;This guide provides clear steps, which can be used to identify and resolve issues with DNS configuration and firewall configuration that could be causing this error.<\/p>\n\n\n\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-39823d1e      \"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tTable Of Contents\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#dns-related-issues\" class=\"uagb-toc-link__trigger\">DNS Related Issues<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#verifying-the-network-connection\" class=\"uagb-toc-link__trigger\">Verifying the network connection<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#how-to-update-dns-configuration-in-etcresolvconf\" class=\"uagb-toc-link__trigger\">How to Update DNS Configuration in \/etc\/resolv.conf?<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#inspecting-hosts-file-for-any-misconfigurations\" class=\"uagb-toc-link__trigger\">Inspecting Hosts File for Any Misconfigurations<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#checking-the-etcnsswitchconf-file\" class=\"uagb-toc-link__trigger\">Checking the \/etc\/nsswitch.conf File<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#does-disabling-ipv6-resolve-dns-issues\" class=\"uagb-toc-link__trigger\">Does Disabling IPV6 Resolve DNS Issues?<\/a><\/li><\/ul><\/li><li class=\"uagb-toc__list\"><a href=\"#firewall-related-issues\" class=\"uagb-toc-link__trigger\">Firewall Related Issues<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#how-to-configure-firewall-to-allow-dns\" class=\"uagb-toc-link__trigger\">How to Configure Firewall to Allow DNS?<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#allowing-dns-queries-for-ufw-users\" class=\"uagb-toc-link__trigger\">Allowing DNS Queries For UFW Users<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#ensuring-dns-ports-are-open-for-firewalld-users\" class=\"uagb-toc-link__trigger\">Ensuring DNS Ports Are Open For FirewallD Users<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#allowing-dns-traffic-rules-for-iptables-users\" class=\"uagb-toc-link__trigger\">Allowing DNS Traffic Rules For IPtables Users<\/a><\/li><\/ul><li class=\"uagb-toc__list\"><a href=\"#how-to-review-firewall-rules\" class=\"uagb-toc-link__trigger\">How to Review Firewall Rules?<\/a><ul class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#to-display-the-status-of-ufw\" class=\"uagb-toc-link__trigger\">To Display the Status of UFW<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#to-display-all-active-rules-configured-by-firewalld\" class=\"uagb-toc-link__trigger\">To Display All Active Rules Configured by FirewallD<\/a><li class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#to-list-all-the-currently-configured-iptables-rules\" class=\"uagb-toc-link__trigger\">To List All the Currently Configured IPtables Rules<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><li class=\"uagb-toc__list\"><a href=\"#get-your-website-online-today\" class=\"uagb-toc-link__trigger\">Get Your Website Online Today!<\/a><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"dns-related-issues\">DNS Related Issues<\/h2>\n\n\n<p>DNS issues are often a major cause of the error: &#8216;Temporary Failure in Name Resolution&#8217; if it was misconfigured. Here\u2019s how to tackle them step by step.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"verifying-the-network-connection\">Verifying the network connection<\/h4>\n\n\n<p>Make sure your network connection is not causing the issue before making changes to the DNS settings. To check that open a terminal and execute ping 8.8.8.8. A successful test should show 0% packet loss and an RTT below 500ms. A significant packet loss or RTT may indicate a network problem that requires further investigation by the network administrator.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ping 8.8.8.8<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/dataloss.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"837\" height=\"189\" data-id=\"3722\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/dataloss.png\" alt=\"ping packetloss and RTT\" class=\"wp-image-3722\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/dataloss.png 837w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/dataloss-300x68.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/dataloss-768x173.png 768w\" sizes=\"(max-width: 837px) 100vw, 837px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>In the example shown above in the screenshot, the ping test results indicate a healthy network connection with 0% packet loss and RTT values (minimum: 8.290 ms, average: 8.353 ms, maximum: 8.402 ms) all well below 500ms. A significant packet loss or RTT higher than 500ms may indicate a network problem that requires further investigation by the network administrator.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"how-to-update-dns-configuration-in-etcresolvconf\">How to Update DNS Configuration in \/etc\/resolv.conf?<\/h4>\n\n\n<p>Incorrect DNS settings can prevent your system from connecting to the Internet:<\/p>\n\n\n\n<p>To fix it, execute <code>sudo nano \/etc\/resolv.conf<\/code> in the terminal, and configure Google (8.8.8.8, 8.8.4.4) or Cloudflare (1.1.1.1, 1.0.01) as your DNS server based on your choice.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/resolv.conf<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/nameserver.gif\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"748\" height=\"296\" data-id=\"3723\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/nameserver.gif\" alt=\"\/etc\/resolv.conf googlenameservers for resolving 'Temporary Failure in Name Resolution'\" class=\"wp-image-3723\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>To make this setting permanent, please run the below command also:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ln -sf \/dev\/null \/etc\/resolv.conf.<\/code><\/pre>\n\n\n\n<p>Make sure this file is protected from unauthorized modification:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown root:root \/etc\/resolv.conf\nsudo chmod 644 \/etc\/resolv.conf<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"inspecting-hosts-file-for-any-misconfigurations\">Inspecting Hosts File for Any Misconfigurations<\/h4>\n\n\n<p>The <code><a href=\"https:\/\/www.javatpoint.com\/linux-hosts-file\" target=\"_blank\" rel=\"noopener\">\/etc\/hosts<\/a><\/code> file may override the DNS configuration, resulting in resolution errors.  Look for unusual details, especially those that have not been commented on, and remove or correct them if necessary. <\/p>\n\n\n\n<p>To edit the file, execute:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/hosts<\/code><\/pre>\n\n\n\n<p>Ensure that it contains a line for <code>localhost<\/code> pointed to 127.0.0.1 similar to the below screenshot:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-004923.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"754\" height=\"51\" data-id=\"3725\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-004923.png\" alt=\"\/etc\/hosts file entries\" class=\"wp-image-3725\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-004923.png 754w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-004923-300x20.png 300w\" sizes=\"(max-width: 754px) 100vw, 754px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"checking-the-etcnsswitchconf-file\">Checking the \/etc\/nsswitch.conf File<\/h4>\n\n\n<p>The <code><a href=\"https:\/\/man7.org\/linux\/man-pages\/man5\/nsswitch.conf.5.html\" target=\"_blank\" rel=\"noopener\">\/etc\/nsswitch.conf<\/a><\/code> file determines the order in which various services (like DNS, files, LDAP, etc.) are used to resolve hostnames. Ensure that DNS is included in the hosts line. Open the file with a text editor and add &#8220;<code>dns<\/code>&#8221; entry in it if it was not found.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/nsswitch.conf<\/code><\/pre>\n\n\n\n<p>Look for the line that starts with <code>hosts:<\/code> and ensure it includes <code>dns<\/code> like the below screenshot:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-011622.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1428\" height=\"414\" data-id=\"3730\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-011622.png\" alt=\"dns entry in \/etc\/nsswitch.conf file for resolving 'Temporary Failure in Name Resolution' error\" class=\"wp-image-3730\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-011622.png 1428w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-011622-300x87.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-011622-1024x297.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-011622-768x223.png 768w\" sizes=\"(max-width: 1428px) 100vw, 1428px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"does-disabling-ipv6-resolve-dns-issues\">Does Disabling IPV6 Resolve DNS Issues?<\/h4>\n\n\n<p>Yes, sometimes disabling IPV6 resolves DNS issues.  If you&#8217;re not using IPV6 on your system, disable IPv6, by editing the GRUB configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/default\/grub<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-6 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-010143.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1115\" height=\"182\" data-id=\"3728\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-010143.png\" alt=\"disable ipv6 in grub\" class=\"wp-image-3728\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-010143.png 1115w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-010143-300x49.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-010143-1024x167.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-010143-768x125.png 768w\" sizes=\"(max-width: 1115px) 100vw, 1115px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Find the line starting with <code>GRUB_CMDLINE_LINUX<\/code> and add <code>ipv6.disable=1<\/code> to disable it! Then update GRUB and <a href=\"https:\/\/www.veeble.org\/kb\/how-to-reboot-linux-and-windows-using-the-command-line\/\" target=\"_blank\" rel=\"noopener\">reboot<\/a> the system:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo update-grub<br>sudo reboot<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"firewall-related-issues\">Firewall Related Issues<\/h2>\n\n\n<p>Improperly configured firewall settings or closed ports can be a possible cause, and it can be resolved by opening the necessary ports in your firewall configuration<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"how-to-configure-firewall-to-allow-dns\">How to Configure Firewall to Allow DNS?<\/h4>\n\n\n<p>If the firewall has rules blocking DNS requests or isn&#8217;t configured to allow them, you may see the error: &#8220;Temporary Failure in Name Resolution&#8221; due to the inability to convert domain names to IP addresses. Properly configuring firewall rules and ensuring DNS server accessibility can help resolve this issue.<\/p>\n\n\n<h5 class=\"wp-block-heading\" id=\"allowing-dns-queries-for-ufw-users\">Allowing DNS Queries For UFW Users<\/h5>\n\n\n<p>Execute the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw allow 53\/tcp<br>sudo ufw reload<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h5 class=\"wp-block-heading\" id=\"ensuring-dns-ports-are-open-for-firewalld-users\">Ensuring DNS Ports Are Open For FirewallD Users<\/h5>\n\n\n<p>Execute the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo firewall-cmd --add-port=53\/tcp --permanent<br>sudo firewall-cmd --reload<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n<h5 class=\"wp-block-heading\" id=\"allowing-dns-traffic-rules-for-iptables-users\">Allowing DNS Traffic Rules For IPtables Users<\/h5>\n\n\n<p>Execute the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo iptables -A INPUT -p tcp --dport 53 -j ACCEPT<br>sudo iptables -A OUTPUT -p tcp --dport 53 -j ACCEPT<br>sudo iptables-save | sudo tee \/etc\/iptables\/rules.v4<\/code><\/pre>\n\n\n\n<p>More reference on opening ports can be found in the blog: <a href=\"https:\/\/www.veeble.org\/kb\/how-to-open-a-specific-port-on-linux\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.veeble.org\/kb\/how-to-open-a-specific-port-on-linux\/<\/a><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"how-to-review-firewall-rules\">How to Review Firewall Rules?<\/h4>\n\n\n<p>After configuring your firewall to allow DNS traffic, it&#8217;s essential to review your firewall rules to ensure they are properly set up and not inadvertently blocking other aspects of DNS traffic.<\/p>\n\n\n<h5 class=\"wp-block-heading\" id=\"to-display-the-status-of-ufw\">To Display the Status of UFW<\/h5>\n\n\n<p>Look for any UFW rules related to DNS (port 53) and ensure they allow incoming and outgoing traffic appropriately by executing the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo ufw status<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-7 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-104506-1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"79\" data-id=\"3744\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-104506-1.png\" alt=\"UFW rules for enabling dns\" class=\"wp-image-3744\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-104506-1.png 799w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-104506-1-300x30.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-104506-1-768x76.png 768w\" sizes=\"(max-width: 799px) 100vw, 799px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n<h5 class=\"wp-block-heading\" id=\"to-display-all-active-rules-configured-by-firewalld\">To Display All Active Rules Configured by FirewallD<\/h5>\n\n\n<p>Look for FirewallD rules allowing traffic on port 53 (DNS) and verify that they are set up correctly to allow DNS queries by executing the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo firewall-cmd --list-all<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-8 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-105926.jpg\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"2142\" height=\"339\" data-id=\"3742\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-105926.jpg\" alt=\"firewalld rules for enabling dns\" class=\"wp-image-3742\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-105926.jpg 2142w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-105926-300x47.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-105926-1024x162.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-105926-768x122.jpg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-105926-1536x243.jpg 1536w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-105926-2048x324.jpg 2048w\" sizes=\"(max-width: 2142px) 100vw, 2142px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n<h5 class=\"wp-block-heading\" id=\"to-list-all-the-currently-configured-iptables-rules\">To List All the Currently Configured IPtables Rules<\/h5>\n\n\n<p>Look for IPtable rules related to DNS traffic (port 53) and verify that they permit both incoming and outgoing DNS traffic by executing the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo iptables -L<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-9 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-110648.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1056\" height=\"229\" data-id=\"3747\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-110648.png\" alt=\"IPtable rules for enabling DNS\" class=\"wp-image-3747\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-110648.png 1056w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-110648-300x65.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-110648-1024x222.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/Screenshot-2024-06-06-110648-768x167.png 768w\" sizes=\"(max-width: 1056px) 100vw, 1056px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-e6dfad62\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<p>By addressing both DNS and firewall-related issues as outlined in this Knowledge Base, you can effectively resolve the &#8220;Temporary Failure in Name Resolution&#8221; error. If the problem persists after all fixes, you may need to investigate ISP-specific restrictions or delve into deeper network configurations.<\/p>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-a772d38c wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Get Your Website Online Today!<\/h3><p class=\"uagb-cta__desc\">Experience lightning-fast speeds and rock-solid reliability with our cPanel hosting. Get your website online today!<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/cpanel-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Get Started Now<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n\n\n\n<div style=\"height:45px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Related Blog:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-veeble-hosting wp-block-embed-veeble-hosting\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.veeble.org\/kb\/how-to-change-dns-server-permanently-on-ubuntu-20-04\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you encounter a &#8220;temporary failure to resolve name&#8221; error, it can damage your Internet connection by failing to resolve domain names to IP [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":8523,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5,9],"tags":[],"class_list":["post-3702","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-firewallsecurity"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/How-to-Fix-Temporary-Failure-in-Name-Resolution-DNS-Error.jpg",1536,1024,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/How-to-Fix-Temporary-Failure-in-Name-Resolution-DNS-Error-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/How-to-Fix-Temporary-Failure-in-Name-Resolution-DNS-Error-300x200.jpg",300,200,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/How-to-Fix-Temporary-Failure-in-Name-Resolution-DNS-Error-768x512.jpg",768,512,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/How-to-Fix-Temporary-Failure-in-Name-Resolution-DNS-Error-1024x683.jpg",1024,683,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/How-to-Fix-Temporary-Failure-in-Name-Resolution-DNS-Error.jpg",1536,1024,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/06\/How-to-Fix-Temporary-Failure-in-Name-Resolution-DNS-Error.jpg",1536,1024,false]},"uagb_author_info":{"display_name":"Adrian Antony","author_link":"https:\/\/www.veeble.com\/kb\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"If you encounter a &#8220;temporary failure to resolve name&#8221; error, it can damage your Internet connection by failing to resolve domain names to IP [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/3702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=3702"}],"version-history":[{"count":33,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/3702\/revisions"}],"predecessor-version":[{"id":7399,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/3702\/revisions\/7399"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8523"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=3702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=3702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=3702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}