# Flint 2 - Can I have different domain per VLAN?

**URL:** <https://forum.gl-inet.com/t/flint-2-can-i-have-different-domain-per-vlan/68767>\
**Category:** Router\
**Created:** [May 17, 2026, 5:10am UTC](https://forum.gl-inet.com/t/flint-2-can-i-have-different-domain-per-vlan/68767 "2026-05-17T05:10:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptselios](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/p/58956e/32.png) [@ptselios](https://forum.gl-inet.com/u/ptselios)\
**Post date:** [May 17, 2026, 5:10am UTC](https://forum.gl-inet.com/t/flint-2-can-i-have-different-domain-per-vlan/68767/1 "2026-05-17T05:10:08Z")

</div>

Hello,  
I have some 6-7 VLANs on top of VLAN 1.  
I have the need to define different subdomains for 3 of these VLANs, let’s say `sub1.lan` `sub2.lan` and `sub3.lan`.  
DNS for the `lan` is managed outside of Flint 2. However, I want the router to be the DNS authoritative server for the sub-domains. I also want to have automatic DHCP leases for the clients on these subdomains.

Is this possible?

---

<div class="post-metadata">

**Author:** ![xize11](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/xize11/32/5340_2.png) [@xize11](https://forum.gl-inet.com/u/xize11)\
**Post date:** [May 17, 2026, 6:00am UTC](https://forum.gl-inet.com/t/flint-2-can-i-have-different-domain-per-vlan/68767/2 "2026-05-17T06:00:05Z")

</div>

I think you want to setup a manual dns on the gl ui.

As far how the domains go this depends which version of luci you are using, modern luci have a way to manage dns records, you want a A record.

Otherwise you need to use this via ssh directly on the dhcp config for a domain:

```auto
config domain
        option name 'seerr.lan'
        option ip '10.245.245.53'

```

If it still does not work and you see a 'dns probe possible' it means the authority of the lan domain clashes with upstream you may have to delete the `/lan/` entry in the luci settings, the one with the `/` trailing GL-iNet uses a longer naming.

---

<div class="post-metadata">

**Author:** ![will.qiu](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/w/b38774/32.png) [@will.qiu](https://forum.gl-inet.com/u/will.qiu)\
**Post date:** [May 19, 2026, 7:04am UTC](https://forum.gl-inet.com/t/flint-2-can-i-have-different-domain-per-vlan/68767/3 "2026-05-19T07:04:02Z")

</div>

Hi,

Assume the local domain for the Main network is `.lan`, and the local domain for the Guest network is `.guest`.

**The reference steps are as follows:**

1. SSH into the router and manually edit `/etc/dnsmasq.conf` to add local domain access:

2. Go to **LuCI → Network → Interfaces → Interfaces** , edit the **LAN** and **Guest** networks, and add the following DHCP options respectively:

**Test results:**

- PC and phone are both on the LAN network:  

- PC and phone are both on the Guest network:  

- PC is on LAN, and the phone is on Guest:

---

<div class="post-metadata">

**Author:** ![ptselios](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/p/58956e/32.png) [@ptselios](https://forum.gl-inet.com/u/ptselios)\
**Post date:** [May 27, 2026, 6:44am UTC](https://forum.gl-inet.com/t/flint-2-can-i-have-different-domain-per-vlan/68767/4 "2026-05-27T06:44:21Z")

</div>

Actually this is not what I am asking for!

In any case, the answer is yes I can have a different domain per VLAN. However, I didn’t see any option to do this via the GUI. One has to:

1. Edit the main `dnsmasq` configuration file to allow per-VLAN domains

2. Edit the DHCP configuration for the VLAN

If anyone is interest I can send samples.

---

<div class="post-metadata">

**Author:** ![system](https://forum-static.gl-inet.com/original/3X/7/7/77e28f6cb342ac4bd641bd9a6254595d61b2812a.png) [@system](https://forum.gl-inet.com/u/system)\
**Post date:** [August 25, 2026, 6:44am UTC](https://forum.gl-inet.com/t/flint-2-can-i-have-different-domain-per-vlan/68767/5 "2026-08-25T06:44:39Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
