{"id":626,"date":"2024-01-07T19:52:15","date_gmt":"2024-01-08T00:52:15","guid":{"rendered":"https:\/\/carminebufano.com\/?p=626"},"modified":"2024-01-07T19:59:47","modified_gmt":"2024-01-08T00:59:47","slug":"how-to-configure-dns-resolution-in-debian-server","status":"publish","type":"post","link":"https:\/\/carminebufano.com\/index.php\/2024\/01\/07\/how-to-configure-dns-resolution-in-debian-server\/","title":{"rendered":"How to Configure DNS Resolution in Debian Server"},"content":{"rendered":"\n<p class=\"has-text-align-center\" style=\"font-size:28px\"> Edit the resolv.conf file. The file path is \/etc\/resolv.conf<\/p>\n\n\n\n<p class=\"has-text-align-center\" style=\"font-size:28px\">Add your name server to the file by adding: &#8220;nameserver  x.x.x.x&#8221;  where x.x.x.x is the IPv4 address of the name server you want to use.<\/p>\n\n\n\n<p class=\"has-text-align-center\" style=\"font-size:28px\">Skip to the bottom to copy and paste the exact commands. I went off on a tangent, this is why I am putting this up here.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><\/p>\n\n\n\n<p>So I had a very different reason for looking this up recently. I am running DELL EMC Switch Operating System named &#8220;OS10&#8221; on a enterprise switch. The switch is basically a x86 server with many high speed ports. This may be surprising if you are not i the networking world or not if you are into networking&#8230; but many enterprise switches with very advanced functions are running Linux. DELL EMC&#8217;s version called OS10 and its predecessor  which has a rich history FTOS, and NOS v9.x are based on Debian server. There is even an open source version of this operating system and if you are interested in learning or tinkering with it, you do not even need to buy any hardware, you can run it in a virtual machine. It is called Openswitch OPX <\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/open-switch\" target=\"_blank\" rel=\"noreferrer noopener\"> https:\/\/github.com\/open-switch<\/a><\/p>\n\n\n\n<p>That link will get you started.<\/p>\n\n\n\n<p>Getting back on track, the Linux subsystem is not prevalent for most users who are logging into the switch to configure it as DELL EMC has created their own &#8220;Cisco-esq&#8221; cli however, you can log in directly to the underlying Debian server and do some pretty incredible things. The beauty of the switch is that yes, it is x86 however it also has ASIC&#8217;s in the switch which is hardware specially made to run the network functions like routing and switching super fast.. it is not going through the CPU, but yo can use regular linux commands to configure the switch and OS10 takes care of the rest. <\/p>\n\n\n\n<p>I am going to post the solution to the DNS issue at the top because I have slid way off track here.. but I was logged into the switch and set up the Management interface however apt update would not work because there was no DNS resolution so in order to fix this temporarily in my case I edited the \/etc\/resolv.conf file and added the name server in there: the commands were:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/resolv.conf<\/code><\/pre>\n\n\n\n<p>Within that file I defined the nameserver I wanted to use, in my case it was 1.1.1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nameserver 1.1.1.1<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Edit the resolv.conf file. The file path is \/etc\/resolv.conf Add your name server to the file by adding: &#8220;nameserver x.x.x.x&#8221; where x.x.x.x is the IPv4 address of the name server you want to use. Skip to the bottom to copy and paste the exact commands. I went off on a tangent, this is why I&hellip; <a class=\"read-more\" href=\"https:\/\/carminebufano.com\/index.php\/2024\/01\/07\/how-to-configure-dns-resolution-in-debian-server\/\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[15],"tags":[],"class_list":["post-626","post","type-post","status-publish","format-standard","hentry","category-walkthroughs"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":231,"url":"https:\/\/carminebufano.com\/index.php\/2016\/07\/01\/how-to-fix-rdo-packstack-openstack-installation-error-rabbitmq-server-start-failed-with-exitcode-1\/","url_meta":{"origin":626,"position":0},"title":"How to fix RDO Packstack Openstack Installation Error: &#8220;rabbitmq-server start failed with exitcode 1&#8221;","author":"Carmine Bufano","date":"July 1, 2016","format":false,"excerpt":"","rel":"","context":"In &quot;CentOS&quot;","block_context":{"text":"CentOS","link":"https:\/\/carminebufano.com\/index.php\/category\/centos\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":187,"url":"https:\/\/carminebufano.com\/index.php\/2016\/02\/11\/how-to-password-protect-an-apache-apache2-web-page-or-directory\/","url_meta":{"origin":626,"position":1},"title":"How to Password Protect an Apache, Apache2 web page or Directory","author":"Carmine Bufano","date":"February 11, 2016","format":false,"excerpt":"","rel":"","context":"In &quot;Walkthroughs&quot;","block_context":{"text":"Walkthroughs","link":"https:\/\/carminebufano.com\/index.php\/category\/walkthroughs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":524,"url":"https:\/\/carminebufano.com\/index.php\/2022\/04\/01\/qnap-nas-issue-dns-is-unable-to-resolve-hosts-how-to-fix-dns-issues-on-qnap-nas\/","url_meta":{"origin":626,"position":2},"title":"QNAP NAS Issue DNS is Unable to Resolve Hosts. How to Fix DNS Issues on QNAP NAS","author":"Carmine Bufano","date":"April 1, 2022","format":false,"excerpt":"This one started after a firmware update. Until QNAP fixes the firmware do this: SSH into the nas and change \/etc\/resolve.conf from \u2018nameserver 127.0.1.1\u2019 change \u2018127.0.1.1\u2019 to your DNS server. If you are unsure what you dns server is, it is most likely your default gateway if you are a\u2026","rel":"","context":"In &quot;Walkthroughs&quot;","block_context":{"text":"Walkthroughs","link":"https:\/\/carminebufano.com\/index.php\/category\/walkthroughs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":251,"url":"https:\/\/carminebufano.com\/index.php\/2014\/08\/25\/how-to-configure-many-web-servers-behind-one-public-ip\/","url_meta":{"origin":626,"position":3},"title":"How to self host many web servers with different domains &#038; URLs with one public IP","author":"Carmine Bufano","date":"August 25, 2014","format":false,"excerpt":"","rel":"","context":"In &quot;Ubuntu&quot;","block_context":{"text":"Ubuntu","link":"https:\/\/carminebufano.com\/index.php\/category\/ubuntu\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2014\/08\/Pound-Proxy.vsdx_.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2014\/08\/Pound-Proxy.vsdx_.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2014\/08\/Pound-Proxy.vsdx_.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2014\/08\/Pound-Proxy.vsdx_.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":538,"url":"https:\/\/carminebufano.com\/index.php\/2022\/05\/20\/how-to-rename-a-zerotier-one-interface-from-zt-to-eth0-or-eth1-or-anything-you-want\/","url_meta":{"origin":626,"position":4},"title":"How to rename a ZeroTier One  interface from zt\u2026 to eth0 or eth1 or anything you want!","author":"Carmine Bufano","date":"May 20, 2022","format":false,"excerpt":"Below is the original post that walks you through the steps to rename ZeroTier interfaces. Shortly after I posted this, Grant Limberg from ZeroTier posted something that makes a lot of sense. Changing the name of the interface; more specifically removing the \u201czt\u201d from the interface will have some very\u2026","rel":"","context":"In &quot;one&quot;","block_context":{"text":"one","link":"https:\/\/carminebufano.com\/index.php\/category\/one\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":709,"url":"https:\/\/carminebufano.com\/index.php\/2024\/11\/02\/how-to-fix-openstack-horizon-dashboard-on-centos-stream-9-error-invalidcachebackenderror\/","url_meta":{"origin":626,"position":5},"title":"How to Fix Openstack Horizon Dashboard on Centos Stream 9 error: InvalidCacheBackendError","author":"Carmine Bufano","date":"November 2, 2024","format":false,"excerpt":"If you have recently deployed Openstack Caracal with RDO Packstack you may run into a problem when you first load the Horizon Dashboard. If you get the \"Something went wrong\" text instead of the regular login page even though Packstack finished successfully check the following. Try the following: Login to\u2026","rel":"","context":"In &quot;Microstack&quot;","block_context":{"text":"Microstack","link":"https:\/\/carminebufano.com\/index.php\/category\/openstack\/microstack\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=1024%2C768&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=1024%2C768&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=1024%2C768&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/carminebufano.com\/wp-content\/uploads\/2024\/11\/image-1.png?fit=1024%2C768&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/p70MUT-a6","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/comments?post=626"}],"version-history":[{"count":7,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/626\/revisions"}],"predecessor-version":[{"id":634,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/posts\/626\/revisions\/634"}],"wp:attachment":[{"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/media?parent=626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/categories?post=626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carminebufano.com\/index.php\/wp-json\/wp\/v2\/tags?post=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}