Local hostnames - storage?

Where are local hostnames set under LuCI stored?
I would like to export them to Pi-Hole.

I don’t know, but I’d personally try grep someDistinctName -r /etc/ in SSH.

1 Like

Static entries (A, CNAME, MX, etc.) are in /etc/config/dhcp, for example:

uci show dhcp | grep host | grep name
uci show dhcp | grep cname | grep target

Dynamic entries (i.e. via DHCP) can be found via:

cat /tmp/dhcp.leases

But I think that includes static and dynamic.

1 Like

So I have just set local names on pihole. And at the same time I have changed some settings in Luci so that dhcp broadcasts pihole as dns server. I just dont get it why there is the 6 number necessary in the setting to have it correctly working.

Now I should see more information about clients requesting DNS services.