NixOS Networking | 891 Members | |
| Declaratively manage your switching, routing, wireless, tunneling and more. | 260 Servers |
| Sender | Message | Time |
|---|---|---|
| 25 May 2021 | ||
| and have opened TCP and UDP ports 53 | 17:43:08 | |
| It is in loop indeed. Have just checked log file: May 25 20:44:22 dnsmasq[27139]: forwarded router.asus.com.home to 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: query[A] router.asus.com.home from 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: forwarded router.asus.com.home to 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: query[A] router.asus.com.home from 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: forwarded router.asus.com.home to 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: query[A] router.asus.com.home from 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: forwarded router.asus.com.home to 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: query[A] router.asus.com.home from 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: forwarded router.asus.com.home to 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: query[A] router.asus.com.home from 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: forwarded router.asus.com.home to 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: query[A] router.asus.com.home from 192.168.1.1 May 25 20:44:22 dnsmasq[27139]: forwarded router.asus.com.home to 192.168.1.1 | 17:45:22 | |
| I have a stock AsusWRT on my router and i have no way of disabling it broadcasting itself as secondary DNS for local domain | 17:47:34 | |
| So the only option to prevent this looping is removing it from resolv.conf on the NixOS machine and i have trouble with this | 17:48:29 | |
| * So the only option to prevent this looping is removing ip 192.168.1.1 from resolv.conf on the NixOS machine and i have trouble with this | 17:49:03 | |
| Network and dnsmasq configs: # DNS server
''; | 17:51:21 | |
| networking.useDHCP = false; networking.interfaces.eno0.useDHCP = true; networking.interfaces.wlp2s0.useDHCP = true; networking.nameservers = [ "127.0.0.1" "::1" ]; | 17:52:55 | |
That log is interesting. As you've set no-resolv it should only use the server statements to do the resolving. What arguments is dnsmasq launched with? | 17:53:04 | |
| How can i get that information? | 17:54:46 | |
systemctl cat dnsmasq should show you the cmdline that process was launched with | 17:55:03 | |
or rather systemctl status dnsmasq | 17:55:12 | |
| /nix/store/zsdx9lmnjma8xdv2acz4ha0hi45wkxvh-dnsmasq-2.85/bin/dnsmasq -k --enable-dbus --user=dnsmasq -C /nix/store/x4nvgi8mz9vj1myfb6hbsd8vh7zxlm57-dnsmasq.conf | 17:56:10 | |
| * So the only option I see to prevent this looping is removing ip 192.168.1.1 from resolv.conf on the NixOS machine and i have trouble with this | 18:04:06 | |
| alexey96: try passing a dummy resolv.conf to dnsmasq via the resolv-file=... argument.. I somehow suspec that server=.. isn't doing exactly the right thing. Dnsmasq might fall back to libc based DNS and then end up on your router again? | 18:04:14 | |
| In the config block above you could write
| 18:05:21 | |
| (Obviously add the v6 address as well I was just lazy) | 18:05:53 | |
In reply to @andi:kack.itHad no effect. dsnmasq-resolve.conf didnt change, still 100% cpu usage | 18:13:24 | |
| cat /etc/dnsmasq-resolv.conf Generated by resolvconfnameserver 192.168.1.100 | 18:13:39 | |
| what is that file relevant? I don't see it in the earlier pastes. Did you declare that? | 18:18:28 | |
| I didnt declare it anyway before. Shouldn't the resolv-file=... change it? | 18:26:50 | |
| * I didnt declare it in anyway before. Shouldn't the resolv-file=... change it? | 18:27:05 | |
| no, that only tells it which file to read. It shouldn't read that file on disk | 18:27:46 | |
So dnsmasq starts with paramaters: /nix/store/zsdx9lmnjma8xdv2acz4ha0hi45wkxvh-dnsmasq-2.85/bin/dnsmasq -k --enable-dbus --user=dnsmasq -C /nix/store/a48s6kwn7clmqz9kf8wmf648jj5j76z8-dnsmasq.conf | 18:47:33 | |
| 18:49:13 | |
*
| 18:49:50 | |
*
| 18:50:42 | |
*
| 18:50:50 | |
*
| 18:51:11 | |
| * cat /nix/store/a48s6kwn7clmqz9kf8wmf648jj5j76z8-dnsmasq.conf``` domain-needed server=208.67.220.220 listen-address=::1,127.0.0.1,192.168.1.100 cache-size=10000 resolv-file=/nix/store/ks8wii7ff51jb1f1ln0sdamwv6syy1v6-dnsmasq-resolv.conf address=/nixos.home/192.168.1.100
| 18:51:19 | |
| * cat /nix/store/a48s6kwn7clmqz9kf8wmf648jj5j76z8-dnsmasq.conf ``` domain-needed server=208.67.220.220 listen-address=::1,127.0.0.1,192.168.1.100 cache-size=10000 resolv-file=/nix/store/ks8wii7ff51jb1f1ln0sdamwv6syy1v6-dnsmasq-resolv.conf address=/nixos.home/192.168.1.100
| 18:51:26 | |