Hi,
I have DHCP server configured using static reservations, I need that one specified computer should get IP address but without DNS entry. Is any way to do this?
As I wrote it: remove those settings from the DNS server setting (set No DNS in the networks setting) and then add a DHCP option for DNS to an option set and assign that option set to all PCs other than that single one.
You will have to lookup the option code and value structure for a DNS option in the relevant RFC.
This PC is blocked for standard user so anybody cannot change IP settings.
/ip dhcp-server network
#this will be used by all computers except 192.168.88.229
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=192.168.88.1 netmask=24
#this will be used by the 192.168.88.229 computer that should get no DNS
add address=192.168.88.229/32 comment=defconf dns-none=yes gateway=192.168.88.1 netmask=24
You don't have to change anything inside the static lease. Simply "make static" and don't bother changing anything in the lease and add the network under DHCP Server->Networks and it will work.Yes but how will you define that inside the static lease?
You can only select the DHCP server to use...!
Nice, that makes it totally clear to me...The matching of DHCP networks is like matching of routes, it will use the most specific network that matches the IP being handed out
@mducharmeThe easiest way to handle this is to give the computer in question a static lease and then create a separate DHCP network for that computer, as shown below:
Code: Select all/ip dhcp-server network #this will be used by all computers except 192.168.88.229 add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=192.168.88.1 netmask=24 #this will be used by the 192.168.88.229 computer that should get no DNS add address=192.168.88.229/32 comment=defconf dns-none=yes gateway=192.168.88.1 netmask=24