Skip to content

Instantly share code, notes, and snippets.

@xpepper
Last active December 28, 2025 15:17
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
@Livius0
Copy link

Livius0 commented Jan 20, 2025

Ottimo quello che stavo cercando.

@ziltoid-linux
Copy link

ziltoid-linux commented Jun 30, 2025

Grazie per lo script, funziona perfettamente!

@WhiteGamer89
Copy link

THANK YOU, I LOVE YOU, I SEARCHED EVERYWHERE FOR THIS

@Mat12143
Copy link

Funziona alla perfezione, grazie mille

@tanathos
Copy link

Thank you man, I was about to smash the router with an hammer

@casungo
Copy link

casungo commented Oct 26, 2025

Fantastic

@matteodamico
Copy link

grazie mille funziona correttamete.. ma come posso impostare una portra specifica?

@kada49
Copy link

kada49 commented Dec 7, 2025

Also works for Tim Hub+ ZTE H2740 (for FTTC and ADSL)

@sh4tteredd
Copy link

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

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