!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

902 Members
on your Router! Declaratively manage your switching, routing, wireless, tunneling and more.263 Servers

Load older messages


SenderMessageTime
25 May 2021
@alexey96:matrix.orgalexey96Redacted or Malformed Event17:39:25
@andi:kack.itandi-Maybe dnsmasq is just overloaded by the amount of filters you have? How many are there? Have you tried removing the fiters to see if that improves anything?17:39:30
@alexey96:matrix.orgalexey96I am using configuration suggested here: https://github.com/NixOS/nixpkgs/issues/61617#issuecomment-62393419317:41:01
@alexey96:matrix.orgalexey96Same block-lists from pi-hole repository17:41:19
@alexey96:matrix.orgalexey96except for listen address, i have added machine's static address to resolve inbound requests17:42:39
@alexey96:matrix.orgalexey96and have opened TCP and UDP ports 5317:43:08
@alexey96:matrix.orgalexey96It 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
@alexey96:matrix.orgalexey96I have a stock AsusWRT on my router and i have no way of disabling it broadcasting itself as secondary DNS for local domain17:47:34
@alexey96:matrix.orgalexey96So the only option to prevent this looping is removing it from resolv.conf on the NixOS machine and i have trouble with this17:48:29
@alexey96:matrix.orgalexey96 * 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 this17:49:03
@alexey96:matrix.orgalexey96

Network and dnsmasq configs: # DNS server
services.dnsmasq.enable = true;
services.dnsmasq.extraConfig = ''

domain-needed
bogus-priv
no-resolv

server=208.67.220.220
server=8.8.8.8

listen-address=::1,127.0.0.1,192.168.1.100
bind-interfaces

cache-size=10000
log-queries
log-facility=/tmp/ad-block.log
local-ttl=300

conf-file=/etc/nixos/assets/hosts-blocklists/domains.txt
addn-hosts=/etc/nixos/assets/hosts-blocklists/hostnames.txt
# address=/nixos.home/192.168.1.100

'';

17:51:21
@alexey96:matrix.orgalexey96 networking.useDHCP = false; networking.interfaces.eno0.useDHCP = true; networking.interfaces.wlp2s0.useDHCP = true; networking.nameservers = [ "127.0.0.1" "::1" ]; 17:52:55
@andi:kack.itandi- 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
@alexey96:matrix.orgalexey96How can i get that information?17:54:46
@andi:kack.itandi- systemctl cat dnsmasq should show you the cmdline that process was launched with 17:55:03

There are no newer messages yet.


Back to Room ListRoom Version: 6