Hi All,
Having trouble setting a different DNS server for a specific machine using DHCP scope.
Yesterday I was following the link
https://docs.vyos.io/en/sagitta/configuration/service/dhcp-server.html#dhcp-server-v4-example-raw
set service dhcp-server shared-network-name dhcpexample subnet 192.0.2.0/24 static-mapping example static-mapping-parameters "option domain-name-servers 192.0.2.11, 192.0.2.12;"
When I commit I got the following error
Configuration file errors encountered - check your options!
[[service dhcp-server]] failed
This morning I tried running the same command and this time committed properly? How do I check?
When I look at journalctl I see following messages??.
WARNING: Host declarations are global. They are not limited to the scope you declared them in.
Warning: subnet 172.16.12.0/24 overlaps subnet 172.16.12.0/24
Run 'dpkg-reconfigure isc-dhcp-server' to fix the problem.
/etc/default/isc-dhcp-server does not exist! - Aborting...
DHCP scope for Guest Wireless
set service dhcp-server listen-address '172.16.12.254'
set service dhcp-server shared-network-name GuestWLAN_POOL authoritative
set service dhcp-server shared-network-name GuestWLAN_POOL subnet 172.16.12.0/24 default-router '172.16.12.254'
set service dhcp-server shared-network-name GuestWLAN_POOL subnet 172.16.12.0/24 domain-name 'guestwlan.lan'
set service dhcp-server shared-network-name GuestWLAN_POOL subnet 172.16.12.0/24 lease '86400'
set service dhcp-server shared-network-name GuestWLAN_POOL subnet 172.16.12.0/24 name-server '8.8.8.8'
set service dhcp-server shared-network-name GuestWLAN_POOL subnet 172.16.12.0/24 name-server '8.8.4.4'
set service dhcp-server shared-network-name GuestWLAN_POOL subnet 172.16.12.0/24 range 0 start '172.16.12.2'
set service dhcp-server shared-network-name GuestWLAN_POOL subnet 172.16.12.0/24 range 0 stop '172.16.12.250'
Cheers