Use Vyos (1.3.4) Default gateway address (10.1.120.1) as DNS-server for vif120 (DNS forwarding)

Hi
Have a test network with following:

vif 120
address 10.1.120.1/24
description VLAN120

I have setup
system name-server 8.8.8.8
system name-server 1.1.1.1

dns forwarding allow-from 10.1.120.0/24
dns forwarding listen-address 10.1.120.1
dns forwarding system

service {
dhcp-server {
shared-network-name VLAN120 {
subnet 10.1.120.0/24 {
range 0 {
start 10.1.120.100
stop 10.1.120.200

But when I use client with DHCP on VLAN120 i only get ip address, no DNS address.

What am I missing/doing wrong?

BR

You didn’t set name-server for shared-network-name

Thanks for reply
Should it be 10.1.120.1 ??
BR

If you want to use the forwarder in VyOS then yes it should be 10.1.120.1.

But personally I would generally avoid using forwarder and instead just use NAT towards Internet if needed.

A better option if you still want to use forwarder is to install PI-Hole or similar in a container in your VyOS to get better statistics and filtering of DNS queries passing by.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.