[SOLVED] Different DNS for one client

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
possebom
Posts: 3
Joined: Tue Aug 05, 2014 10:18 am

[SOLVED] Different DNS for one client

Post by possebom »

Have any way to set via dhcp different dns for one host ?
Last edited by possebom on Sat Aug 09, 2014 2:05 pm, edited 1 time in total.

ispyisail
Moderator
Posts: 5218
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Different DNS for one client

Post by ispyisail »

I've wanted to do the same thing :(

ispyisail
Moderator
Posts: 5218
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Different DNS for one client

Post by ispyisail »

I think you best option would be command line

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

possebom
Posts: 3
Joined: Tue Aug 05, 2014 10:18 am

Re: Different DNS for one client

Post 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.

possebom
Posts: 3
Joined: Tue Aug 05, 2014 10:18 am

Re: Different DNS for one client

Post 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.

ispyisail
Moderator
Posts: 5218
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: [SOLVED] Different DNS for one client

Post 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?

Post Reply