Assign Different DNS to DHCP clients

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

Moderator: Moderators

setham
Posts: 14
Joined: Sun Jun 28, 2015 1:47 pm

Assign Different DNS to DHCP clients

Postby setham » Fri Apr 13, 2018 12:37 pm

Hello,

Thanks in advance for any help.

Through DHCP I want to assign different DNS to clients, using option 6 editing /etc/config/dhcp and adding

config dhcp 'lan'
list 'dhcp_option' '6,192.168.1.10, 192.168.1.11'

I can assign a different to the router DNS servers (192.168.1.1)

I would like to add the option at the client level, is there a place in Gargoyle where I can add DHCP options at client level like it is possible with OpenWRT (eg. OpenWrt Chaos Calmer 15.05.1) where we can add it at the corresponding "config host" entry?

Thanks

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

Re: Assign Different DNS to DHCP clients

Postby ispyisail » Fri Apr 13, 2018 2:53 pm

command line only (not through the GUI)

setham
Posts: 14
Joined: Sun Jun 28, 2015 1:47 pm

Re: Assign Different DNS to DHCP clients

Postby setham » Fri Apr 13, 2018 7:02 pm

ispyisail wrote:command line only (not through the GUI)


Hi,

Not even through config files? When do you say command line only may you please elaborate a bit more on how to do it?

Thanks in advance

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

Re: Assign Different DNS to DHCP clients

Postby ispyisail » Fri Apr 13, 2018 9:36 pm


setham
Posts: 14
Joined: Sun Jun 28, 2015 1:47 pm

Re: Assign Different DNS to DHCP clients

Postby setham » Sat Apr 14, 2018 2:44 pm

ispyisail wrote:https://www.gargoyle-router.com/phpbb/viewtopic.php?f=8&t=8505

Hi,

I know how to access the cli.

I am in need for help on how to set DHCP client level options in gargoyle.

I am having a difficult time to locate where (not how) can I add those client level options.

Thanks

Lantis
Moderator
Posts: 3901
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Assign Different DNS to DHCP clients

Postby Lantis » Sat Apr 14, 2018 7:05 pm

Have you read the dnsmasq OpenWrt wiki? In particular, the section on assigning individual options to hosts?
https://wiki.openwrt.org/doc/uci/dhcp#c ... l_options1

This is probably the solution you are after, but it isn’t compatible with the Gargoyle GUI. any change you make in the GUI after setting this up might revert it.
WRT1900AC V1 on 1.10.X
WNDR3800/WRT3200ACM in a constant state of flux
www.lantisproject.com for custom builds and other projects
www.lantisproject.com/gargoyle_ispyisail/ for the latest releases


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests