Score:0

Unbound DNS (Redirection of LAN)

vn flag

I'm trying to redirect my LAN queries to local DNS server (installed in LAN) instead of default DNS ie 8.8.8.8.

I'm using unbound 1.13.1 and tried the following:

  1. tried localzone

local-zone: "10.in-addr.arpa." transparent domain-insecure: "10.in-addr.arpa." forward-zone: name: "10.in-addr.arpa." forward-addr: 192.168.0.228

  1. Changed module config to respip validator

    define-tag: "tag1 tag2 tag3" access-control-tag: 10.0.0.0/8 "tag2 tag3" access-control-tag-action: 10.0.0.0/8 "tag2" redirect access-control-tag-data: 10.0.0.0/8 "tag2" "A 192.168.0.228"

Also, tried redirecting via iptables (PREROUTING) but thats also not working.

My first objective is to do this via unbound config. Please help!!

Nikita Kipriyanov avatar
za flag
What do you want to achieve in the end?
Akshay avatar
vn flag
I'm trying to redirect my LAN queries i.e. 10.0.0.0/8 to my captive portal hosted at 10.10.10.10.
Nikita Kipriyanov avatar
za flag
Got it. It is always better to state the original purpose [in the question](https://serverfault.com/posts/1100476/edit).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.