Page 1 of 1

[SOLVED] Different DNS for one client

Posted: Thu Aug 07, 2014 2:28 pm
by possebom
Have any way to set via dhcp different dns for one host ?

Re: Different DNS for one client

Posted: Fri Aug 08, 2014 3:53 pm
by ispyisail
I've wanted to do the same thing :(

Re: Different DNS for one client

Posted: Fri Aug 08, 2014 3:55 pm
by ispyisail
I think you best option would be command line

http://wiki.openwrt.org/doc/howto/dhcp.dnsmasq

Re: Different DNS for one client

Posted: Sat Aug 09, 2014 9:54 am
by possebom
ispyisail wrote:I think you best option would be command line

http://wiki.openwrt.org/doc/howto/dhcp.dnsmasq
Thank you I will try this and back later for show the result :D

I think Gargoyle not using standard dhcp file because this using /etc/ether file instead dhcp static block.

Re: Different DNS for one client

Posted: Sat Aug 09, 2014 2:04 pm
by possebom
It's works !!

Code: Select all

root@Gargoyle:~# uci add dhcp mac 
cfg0a8f76
root@Gargoyle:~# uci set dhcp.@mac[-1].mac=5C:F9:38:XX:XX:XX
root@Gargoyle:~# uci set dhcp.@mac[-1].networkid=kidsnote
root@Gargoyle:~# uci add_list dhcp.@mac[-1].dhcp_option=6,208.67.222.123,208.67.220.123
root@Gargoyle:~# uci commit dhcp
root@Gargoyle:~# /etc/init.d/dnsmasq reload
This for block porn in my daughter notebook.

Thanks ispyisail.

Re: [SOLVED] Different DNS for one client

Posted: Sat Aug 09, 2014 5:08 pm
by ispyisail
Thanks for this info

A couple of questions come to mind

1. Does it still work if "Force clients to Routers DNS service" is ticked? (This question depends on the one above)

Image

2. Does the client's internet still work if they manually change the DNS on their device?


If you are only worried about porn maybe you would use OpenDNS family filter for everyone?