# GL-MT1300 - announce custom DNS servers to clients with DHCP

**URL:** <https://forum.gl-inet.com/t/gl-mt1300-announce-custom-dns-servers-to-clients-with-dhcp/16544>\
**Category:** Router\
**Created:** [July 18, 2021, 2:15pm UTC](https://forum.gl-inet.com/t/gl-mt1300-announce-custom-dns-servers-to-clients-with-dhcp/16544 "2021-07-18T14:15:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GL-FUN](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/gl-fun/32/942_2.png) [@GL-FUN](https://forum.gl-inet.com/u/GL-FUN)\
**Post date:** [July 18, 2021, 3:38pm UTC](https://forum.gl-inet.com/t/gl-mt1300-announce-custom-dns-servers-to-clients-with-dhcp/16544/2 "2021-07-18T15:38:47Z")

</div>

FOUND IT [[OpenWrt Wiki] DNS and DHCP examples](https://openwrt.org/docs/guide-user/base-system/dhcp_configuration)

```
# Configure dnsmasq
uci -q show dhcp.lan.dhcp_option
uci -q delete dhcp.lan.dhcp_option
uci add_list dhcp.lan.dhcp_option="6,8.8.8.8,8.8.4.4"
uci commit dhcp
/etc/init.d/dnsmasq restart
 
# Configure odhcpd
uci -q delete dhcp.lan.dns
uci add_list dhcp.lan.dns="2001:4860:4860::8888"
uci add_list dhcp.lan.dns="2001:4860:4860::8844"
uci commit dhcp
/etc/init.d/odhcpd restart

```

and then:

```
root@GL-MT1300:~# uci -q show dhcp.lan.dhcp_option
dhcp.lan.dhcp_option='6,8.8.8.8,8.8.4.4'

root@GL-MT1300:/etc/config$ cat /etc/config/dhcp
[...]
config dhcp 'lan'
        list dhcp_option '6,8.8.8.8,8.8.4.4'
[...]

```

I wonder where is this in GUI?

---

_[View the full topic](https://forum.gl-inet.com/t/gl-mt1300-announce-custom-dns-servers-to-clients-with-dhcp/16544)._
