DNS records for only one instance

Continuation from Spoof IP for only 1 subnet - #2 by frollic

  1. At https://gateway/cgi-bin/luci/admin/network/dhcp, I'm able to add another DNS instance
  2. However, all instances share the same DNS records, i.e. if I add something to the first, the 2nd also has it
  3. How can I add DNS records to only 1 instance?

Check this box on both instances (corresponds to option ignore_hosts_dir '1').

image

Manually add the instance name to the custom DNS record.

config domain
        option name 'some_name'
        option ip 'A.B.C.D'
        option instance 'instance_name'

Reboot the router afterwards.

Tested on 24.10.0

Thanks, but I ended up using addnhosts which as a file, is much easier to edit and maintain

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