Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hostname lookup from dnsmasq dhcp-hostsfile #53

Open
dandudikof opened this issue Dec 30, 2022 · 2 comments
Open

Hostname lookup from dnsmasq dhcp-hostsfile #53

dandudikof opened this issue Dec 30, 2022 · 2 comments

Comments

@dandudikof
Copy link

I run other linux/nonopenwrt dnsmasq servers and to keep it consisten
and ease of managment on openwrt side i use addn-hosts and dhcp-hostsfile
files for dnsmasq (instead of openwrt /etc/config/dhcp file).

addn-hosts file seems to be pickued up by nlbwmon for static ip to hostname lookups.
But not dhcp-hostsfile for mac to hostname (unless there is a current lease).

I have duplicated dhcp-hostsfile to openwrts /etc/config/dhcp config in the past
to get nlbwmon to lookup up the host names from mac addresses.

But would be nice if nlbwmon had an option to include dhcp-hostsfile
as an additional custom lookup locations/format.

dhcp-hostfile(for dhcp assignments) uses single line "mac,ip,hostname" format
ethers file can be used but only allows use of ip or hostname not both.

Also i use them because they can be reloaded after adding new hosts
without restarting dnsmasq, by just sending a HUP or reload to dnsmasq.
Unlike the standard openwrt /etc/config/dhcp config file which need full dnsmasq restart.

thank you

@jow-
Copy link
Owner

jow- commented Dec 30, 2022

nlbwmon does not track any hostnames at all. Maybe you mean the LuCI frontend

@dandudikof
Copy link
Author

Yes , LuCi interface that shows the associated names to macs or ips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants