{"id":176,"date":"2024-01-24T17:41:56","date_gmt":"2024-01-25T00:41:56","guid":{"rendered":"https:\/\/dnstrouble.crider.dev\/?docs=common-problems-ssh-cant-login\/why-run-your-own-nameserver"},"modified":"2024-01-24T17:44:24","modified_gmt":"2024-01-25T00:44:24","slug":"why-run-your-own-nameserver","status":"publish","type":"docs","link":"https:\/\/dnstrouble.crider.dev\/?docs=common-problems-ssh-cant-login\/why-run-your-own-nameserver","title":{"rendered":"Why run your own nameserver?"},"content":{"rendered":"\n<p>So, why might a customer want to run their own nameserver?<\/p>\n\n\n\n<p>Often times customers just want to cache their DNS entries locally so that they can have faster DNS response times.<\/p>\n\n\n\n<p>The way this is done is though configuring a forwarder with caching. There are a few lightweight ways to do this. <\/p>\n\n\n\n<p>We have a KCS article which covers this as a whole:<\/p>\n\n\n\n<p>Best practice for DNS caching in RHEL<br><a href=\"https:\/\/access.redhat.com\/solutions\/2189381\">https:\/\/access.redhat.com\/solutions\/2189381<\/a><\/p>\n\n\n\n<p>The tools mentioned are:<\/p>\n\n\n\n<p><strong>dnsmasq<\/strong>:<\/p>\n\n\n\n<p>How to configure DNS caching server with dnsmasq in RHEL<br><a href=\"https:\/\/access.redhat.com\/solutions\/2189401\">https:\/\/access.redhat.com\/solutions\/2189401<\/a><\/p>\n\n\n\n<p><strong>unbound<\/strong>:<\/p>\n\n\n\n<p>How to configure DNS caching server with unbound in RHEL<br><a href=\"https:\/\/access.redhat.com\/solutions\/4448031\">https:\/\/access.redhat.com\/solutions\/4448031<\/a><\/p>\n\n\n\n<p><strong>systemd-resolved<\/strong>:<\/p>\n\n\n\n<p>Is systemd-resolved available and supported on RHEL 8 or RHEL 9?<br>How can be configured systemd-resolved.service as DNS cache?<br><a href=\"https:\/\/access.redhat.com\/solutions\/5647181\">https:\/\/access.redhat.com\/solutions\/5647181<\/a><\/p>\n\n\n\n<p><strong>The heavier, more robust BIND DNS server<\/strong>:<\/p>\n\n\n\n<p>Configuring BIND as a caching DNS server<br><a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/9\/html\/managing_networking_infrastructure_services\/assembly_setting-up-and-configuring-a-bind-dns-server_networking-infrastructure-services#proc_configuring-bind-as-a-caching-dns-server_assembly_setting-up-and-configuring-a-bind-dns-server\">https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/9\/html\/managing_networking_infrastructure_services\/assembly_setting-up-and-configuring-a-bind-dns-server_networking-infrastructure-services#proc_configuring-bind-as-a-caching-dns-server_assembly_setting-up-and-configuring-a-bind-dns-server<\/a><\/p>\n\n\n\n<p><strong>And lastly, nscd <\/strong>(again, not recommended):<\/p>\n\n\n\n<p>How to configure nscd daemon for naming resolution?<br><a href=\"https:\/\/access.redhat.com\/solutions\/2187751\">https:\/\/access.redhat.com\/solutions\/2187751<\/a><\/p>\n\n\n\n<p>I would recommend walking through each tool to set up DNS caching on them to see their basic configurations and differences. They are not difficult to configure.<\/p>\n","protected":false},"featured_media":0,"parent":62,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"_links":{"self":[{"href":"https:\/\/dnstrouble.crider.dev\/index.php?rest_route=\/wp\/v2\/docs\/176"}],"collection":[{"href":"https:\/\/dnstrouble.crider.dev\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/dnstrouble.crider.dev\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/dnstrouble.crider.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=176"}],"version-history":[{"count":1,"href":"https:\/\/dnstrouble.crider.dev\/index.php?rest_route=\/wp\/v2\/docs\/176\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/dnstrouble.crider.dev\/index.php?rest_route=\/wp\/v2\/docs\/176\/revisions\/178"}],"up":[{"embeddable":true,"href":"https:\/\/dnstrouble.crider.dev\/index.php?rest_route=\/wp\/v2\/docs\/62"}],"prev":[{"title":"The DNS nameserver(s) receiving the query","link":"https:\/\/dnstrouble.crider.dev\/?docs=common-problems-ssh-cant-login\/the-dns-nameservers-receiving-the-query","href":"https:\/\/dnstrouble.crider.dev\/index.php?rest_route=\/wp\/v2\/docs\/173"}],"wp:attachment":[{"href":"https:\/\/dnstrouble.crider.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=176"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/dnstrouble.crider.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}