Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
dnsmasq and dhcpd static entries not resolved
« previous
next »
Print
Pages: [
1
]
Author
Topic: dnsmasq and dhcpd static entries not resolved (Read 1452 times)
ja3far
Newbie
Posts: 5
Karma: 0
dnsmasq and dhcpd static entries not resolved
«
on:
October 12, 2020, 03:05:45 pm »
Hello guys,
I searched this forum before posting this message, so I hope I'm not duplicating this topic.
I have a very basic DHCP setup on my home network (see attachment dhcpd config). I wanted to add custom hostnames for some hosts on my network, like my android tv, so I would be able to resolve it as tv.mydomain.com
In order to do that, I have added static leases under the DHCP configuration for some hosts (see attachement dhcpd static entries).
My DNS server is dnsmasq with the needed options enabled (see attachement dnsmasq config).
Under DHCP leases (see dhcp leases), I see some hosts have been served and registered, with dynamic hostnames, like laptop-xxxx and when I query them using nslookup I get a good response. Same for the PTR record.
The problem happens, when I query a host with a static hostname set in DHCP configuration.
For now I have checked the /var/etc/dnsmasq-hosts and I can see the dynamic hosts being registered in this file and served by dnsmasq, however the static hosts are not in this file.
Under /var/dhcpd/var/db/dhcpd.leases I find the static defined hosts in that file, however without the "client-hostname" option
Under /var/dhcpd/etc/dhcpd.conf I can see my static hosts defined as part of the configuration
How can I proceed from here?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
dnsmasq and dhcpd static entries not resolved