SomeWhereOverTheRainBow
Part of the Furniture
Is there a way to define more than one custom DNS address for a device, kind of like for example a fall back address?
is it using a python style method?Not possible due to the way DNSFilter is implemented.
Pihole is brings too much for my simple needs.Try a pi hole It might be what you are looking for.
You can set up two DNS servers in it then just let it work from there, by setting it's IP in DNS filter.
dhcp-host=
dhcp-option=
you do it by specifying a tag to the host and selecting
option:dns-server
found what i need
Code:dhcp-host= dhcp-option= you do it by specifying a tag to the host and selecting option:dns-server
You are talking about 2 different things. You either use DHCP (dnsmasq) to issue DNS server addresses to a client or you use DNSFilter (iptables) to intercept outgoing DNS requests and redirect them to another (single) server. It's one or the other.though i do not know what Nat rule i would need to specify for the forcing of it
iptables -t nat -A PREROUTING
You are talking about 2 different things. You either use DHCP (dnsmasq) to issue DNS server addresses to a client or you use DNSFilter (iptables) to intercept outgoing DNS requests and redirect them to another (single) server. It's one or the other.
True, but I thought you were trying to force a client to use two different DNS servers. Maybe I misunderstood what you're trying to achieve.One option would be to specify the DNS, the other option would be to force it if someone tried to manipulate it.
to keep it short I have a specific DNS server I want to force certain devices to use, this dns server has certain features, and it would be foolish to use the gui option to specify only one of the addresses without the fallback option.True, but I thought you were trying to force a client to use two different DNS servers. Maybe I misunderstood what you're trying to achieve.
If the main criteria is to force a device to use a particular DNS server regardless of what it is trying to use, then that is what DNSFilter does. But as Merlin said, because of the way it works you can only direct it to one server, it's not possible to specify a "fallback" server.to keep it short I have a specific DNS server I want to force certain devices to use, this dns server has certain features, and it would be foolish to use the gui option to specify only one of the addresses without the fallback option.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!