Skip to content

Instantly share code, notes, and snippets.

@xpepper
Last active February 7, 2026 12:16
Show Gist options
  • Select an option

  • Save xpepper/35ed3a6dd27ce5d8694b9b2034b9f406 to your computer and use it in GitHub Desktop.

Select an option

Save xpepper/35ed3a6dd27ce5d8694b9b2034b9f406 to your computer and use it in GitHub Desktop.
How to setup a custom DNS on your TIM ZTE H388X router

To setup a custom DNS on your TIM ZTE H388X router:

  • head to "Rete Locale" -> "LAN" -> Server DHCP
  • execute this script in the browser dev tools console
document.querySelectorAll('#template_DHCPBasicCfg [style*="display: none;"]').forEach(el => {
    el.style.display = ''; // Removes inline display:none
});
  • you should see
image
  • set your preferred DNS
  • save
@sh4tteredd
Copy link

can confirm that works on H2740 AGxDSL_2024 on firmware AGZDS_1.0.3

@DantesNoWar
Copy link

Worked perfectly on a TIM HUB!
Thanks @xpepper ❤ IDK why they hidden this option...
I suggest to ⭐ and 🔔 this Gist, you may need it in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment