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

<inotify-tools> Inotifywait breaks DNS (sort of..) #25622

Open
MassiPi opened this issue Dec 26, 2024 · 0 comments
Open

<inotify-tools> Inotifywait breaks DNS (sort of..) #25622

MassiPi opened this issue Dec 26, 2024 · 0 comments

Comments

@MassiPi
Copy link

MassiPi commented Dec 26, 2024

Maintainer: @dangowrt - Daniel Golle [email protected]
Environment: X86-64 - Both 23.05.5 and 24.10-RC4

Description:

Very strange issue here. inotify running on a router serving as DNS server.
If i nslookup a local name from CLI, it correclty resolves through the local DNS server.
If i nslookup the very same name inside a inotify pipe or loop, the query is sent to the WAN dns server failing.

Sample script:

#!/bin/sh
echo "Resolving out of the loop"
nslookup accesspoint.lan
echo "Looping"
inotifywait -m /tmp/dhcp.leases -e delete,close_write,move | 
 while read action; do
  nslookup accesspoint.lan
 done

Sample output

Resolving out of the loop
Server:         127.0.0.1
Address:        127.0.0.1:53
Name:   accesspoint.lan
Address: 192.168.1.2
Non-authoritative answer:
Looping
Setting up watches.
Watches established.
Server:         2001:4860:4860::8888
Address:        [2001:4860:4860::8888]:53
** server can't find accesspoint.lan: NXDOMAIN
** server can't find accesspoint.lan: NXDOMAIN

as you can see the first nslookup correctly uses the local DNS server, but the second uses directly the google ipv6 DNS server (that is the server setup for my WAN connection)

i honestly have no idea
thanks

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

1 participant