Per Device DNS?

Hi, I was wanting to have specific devices that I will setup a static entry for having its own DNS separate to other devices on the network.

Is this possible and if it is how would I go about doing this please?

So what I mean by this, for every device on my network I would like 1.1.1.1 as my DNS except for 3 devices on my network I would want something different for its DNS eg 253.29.20.101 as my DNS for those 3 alone

Hi @anth , you just adjust the device you want to with the DNS if the device is a windows or a Linux system, mac i don’t know,and android you can’t, at least I don’t know how.

Best regards

Neopegasus

1 Like

Hi Anthony,
I assume you are using DHCP?

I found it is possible to manually create a customised lease for these hosts in /var/ipfire/dhcp/dhcpd.conf.local:

host foobar {
  option domain-name-servers 253.29.20.101;
  hardware ethernet AA:BB:CC:DD:EE:FF;
}

You can also assign a static IP by adding fixed-address 1.2.3.4; to the host entry.

Further reading:

https://linux.die.net/man/5/dhcpd.conf

3 Likes