Adding DNS entries

Hi LEDE community,

where can I define/add DNS entries for my local VM's?

Thanks

Edit file:

/etc/config/dhcp

and add section:

config domain
      option name 'host_name'
      option ip 'host_ip'

for each host and restart dnsmasq.
Or in LuCi: Network -> Hostnames

3 Likes

You should probably try adding them to /etc/hosts
Router reboot might be required after the changes.

@Wally @r43k3n Thanks a lot. works like a charm.