{"id":2144,"date":"2021-08-31T22:37:22","date_gmt":"2021-08-31T21:37:22","guid":{"rendered":"https:\/\/bornoe.org\/blog\/?p=2144"},"modified":"2022-12-08T01:11:12","modified_gmt":"2022-12-08T00:11:12","slug":"how-to-change-dns-server-on-a-huawei-b535-232-router","status":"publish","type":"post","link":"https:\/\/bornoe.org\/blog\/2021\/08\/how-to-change-dns-server-on-a-huawei-b535-232-router\/","title":{"rendered":"How to change DNS server on a Huawei B535-232 router"},"content":{"rendered":"\n<p>By default, the router will use the DNS server of your ISP without the option to specify the DNS server of your choice. The router does support the ability to specify a custom DNS server, but for unknown reasons, this option is not available by default in the administration interface. Fortunately, it only takes a bit of technical understanding, albeit a bit cumbersome, too open for access to the DNS server settings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Log into the router<\/h2>\n\n\n\n<p>Enter <em>http:\/\/192.168.8.1\/<\/em> in the address bar of your browser to access the <meta charset=\"utf-8\">router&#8217;s administration interface. You must be connected to the router via Wi-Fi or cable to be able to change settings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Go to the DHCP settings<\/h2>\n\n\n\n<p>First, click on <em>&#8220;Advanced&#8221;<\/em> in the top menu. Secondly, click on <em>&#8220;Router&#8221;<\/em> in the menu at the left side, and select <em>&#8220;DHCP&#8221;<\/em> in the submenu (selected by default).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Access the command line in your browser<\/h2>\n\n\n\n<p>How to access the command line depends on your browser.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Chrome<\/h3>\n\n\n\n<p>To access the JavaScript Console:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On macOS press: <em>&#8220;Command + Option (Alt) + J&#8221;<\/em><\/li>\n\n\n\n<li>On Windows\/Linux press: <em>&#8220;Shift + CTRL + J&#8221;<\/em><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Firefox<\/h3>\n\n\n\n<p>T<meta charset=\"utf-8\">o access the Web Console:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On macOS press: <em>&#8220;Command + Option (Alt) + K&#8221;<\/em><\/li>\n\n\n\n<li>On Windows\/Linux press: <em>&#8220;Ctrl + Shift + K&#8221;<\/em><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Safari<\/h3>\n\n\n\n<p>Press <em>&#8220;Command + Option (Alt) + C&#8221;<\/em> to access the JavaScript Console.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Edge<\/h3>\n\n\n\n<p>To access the Console:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On macOS press: <em>&#8220;Command + Option (Alt) + J&#8221;<\/em><\/li>\n\n\n\n<li>On Windows\/Linux press: <em>&#8220;Ctrl + Shift + J&#8221;<\/em><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Get access to DNS settings<\/h2>\n\n\n\n<p>On the command line enter: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><meta charset=\"utf-8\">$('#dhcp_dns').show();<\/pre>\n\n\n\n<p>The router&#8217;s administration interface for DHCP will now include an option to specify a DNS server of your choice. <meta charset=\"utf-8\">If necessary, close the command line window to return to the administration interface in full size.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Specify the IP address of a DNS server<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Click the check box next to <em>&#8220;Set up the DNS server manually&#8221;<\/em>. <\/li>\n\n\n\n<li>Enter an IP address of a DNS server in the field <em>&#8220;Primary DNS server&#8221;<\/em>. It is not mandatory to enter a secondary IP address, but many providers also provide a secondary IP address in case of server or network problems.<\/li>\n\n\n\n<li>Finally, save the settings.<\/li>\n<\/ul>\n\n\n\n<p>Some fast stable public DNS servers are:<\/p>\n\n\n\n<p><a href=\"https:\/\/1.1.1.1\/\" data-type=\"URL\" data-id=\"https:\/\/1.1.1.1\/\">Cloudflare DNS<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Primary server: 1.1.1.1<\/li>\n\n\n\n<li>Secondary server: 1.0.0.1<\/li>\n<\/ul>\n\n\n\n<p><a href=\"https:\/\/www.quad9.net\" data-type=\"URL\" data-id=\"https:\/\/www.quad9.net\">Quad9<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Primary server: 9.9.9.9<\/li>\n\n\n\n<li>Secondary server: 149.112.112.112<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Reboot the router<\/h2>\n\n\n\n<p>Reboot the router by clicking the reboot icon at the top. It takes approx. a few minutes and all connected devices will briefly lose the connection. The router now uses your chosen DNS server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<p>If one or more of your devices continue to connect to a different DNS server other than the one you added to the router, you can try out a few things.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Check if the new DNS settings are saved<\/h3>\n\n\n\n<p>Make sure you are logged out of the router, and then login in again following steps 1-4. If you do not see the DNS servers you previously added, your configuration was not saved. Continue with steps 5-6, and make sure you save your settings before restarting the router.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Restart the devices connecting to the router<\/h3>\n\n\n\n<p>You can restart the device connecting to the router. It could be that the old DNS settings are still a &#8220;ghost&#8221; in the cache of the device. A restart will often force the system to apply the new DNS settings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Check the DNS settings of the device<\/h3>\n\n\n\n<p>Make sure that the individual devices are not configured with a custom DNS server. If your device has been assigned a custom DNS server, this will override the DNS assigned by the router. E.g., you have manually specified a DNS server or some software such as a VPN application has modified the default DNS settings.<\/p>\n\n\n\n<p>You can go to the network settings on your device to see details about the DNS settings. From Mac, Windows, and Linux machines you use the command prompt to see which DNS servers your system is using:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows: <em>ipconfig \/displaydns<\/em> <\/li>\n\n\n\n<li>Mac and several Linux distributions: <em>cat \/etc\/resolv.conf<\/em><\/li>\n<\/ul>\n\n\n\n<p>Alternatively, you can use the online tool <a href=\"https:\/\/www.dnsleaktest.com\/\" data-type=\"URL\" data-id=\"https:\/\/www.dnsleaktest.com\/\">DNS leak test<\/a> to get details about which DNS server you are using.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">DNS server with IPv6 address<\/h3>\n\n\n\n<p>Some ISPs assign IPv6 addresses to their DNS servers. The IPv6 address will sometimes get added as the primary DNS server to your device. <meta charset=\"utf-8\">Check which DNS servers your system uses. If an IPv6 address is listed as the top one, it will have a higher priority than the IPv4 addresses. Since the B535-232 router only supports IPv4 addresses for custom DNS servers, no straightforward solution exists. One potential solution is to disable IPv6 on the devices assigned to the router, but this is not always desirable. See the section above for how to get details about the DNS servers used by your system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, the router will use the DNS server of your ISP without the option to specify the DNS server of your choice. The router does support the ability to specify a custom DNS server, but for unknown reasons, this option is not available by default in the administration interface. Fortunately, it only takes a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2146,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-2144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dns"],"_links":{"self":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts\/2144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/comments?post=2144"}],"version-history":[{"count":18,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts\/2144\/revisions"}],"predecessor-version":[{"id":2241,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/posts\/2144\/revisions\/2241"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/media\/2146"}],"wp:attachment":[{"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/media?parent=2144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/categories?post=2144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bornoe.org\/blog\/wp-json\/wp\/v2\/tags?post=2144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}