-
Notifications
You must be signed in to change notification settings - Fork 31
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
Name resolution fails if reverse DNS zone not setup #8
Comments
Having thought about this, I would expect this code not to:
if The reasoning is that: uci add dhcp host
uci set dhcp.@host[-1].name=my-smartphone
uci set dhcp.@host[-1].mac='08:18:13:25:c1:87'
uci set dhcp.@host[-1].ip=192.168.0.100
uci set dhcp.@host[-1].dns=1 |
Is nslookup by default using router's |
@zxdavb are you running regular dnsmasq? If so, the empty hostname is not because of not having set up the reverse DNS zone, but rather because the association event precedes assigning of a DNS name. Any subsequent events will likely have the correct DNS name, e.g. polling or disassociation events. Can you confirm that? If so, this issue is essentially resolved by home-assistant/core#31886 |
I am sorry, I have too much going on to help with this at the moment. |
If the
nslookup
fails, then maybe a warning in the log file would be a good idea?I was getting (note
host_name
is a zero-length string,""
):instead of:
This happens when reverse name lookups fails in
function get_host_name
infunctions.sh
:Say:
logger -t $0 -p warning "Reverse DNS is not setup, so names cannot be resolved"
The text was updated successfully, but these errors were encountered: