Skip to content

Commit

Permalink
rc: skip second plain names forward restriction with no domain
Browse files Browse the repository at this point in the history
  • Loading branch information
themiron committed Jun 25, 2018
1 parent e2600a9 commit 350dc54
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions release/src/router/rc/services.c
Original file line number Diff line number Diff line change
Expand Up @@ -1363,9 +1363,10 @@ void start_dnsmasq(void)
"expand-hosts\n", value); // expand hostnames in hosts file
}
if (nvram_get_int("lan_dns_fwd_local") != 1) {
fprintf(fp, "bogus-priv\n"
"domain-needed\n"
"local=/%s/\n", value); // Don't forward local queries upstream
fprintf(fp, "bogus-priv\n" // don't forward private reverse lookups upstream
"domain-needed\n"); // don't forward plain name queries upstream
if (*value)
fprintf(fp, "local=/%s/\n", value); // don't forward local domain queries upstream
}

if ((is_routing_enabled() && nvram_get_int("dhcp_enable_x"))
Expand Down

0 comments on commit 350dc54

Please sign in to comment.