Secondary VLAN resolving DNS query without PiHole

I did try to setup a VLAN before on the Raspberry PI but never managed to.

My version of Ubuntu Server don't use /etc/network/interfaces but /etc/netplan/01-netcfg.yaml and I never found the solution

I tried to install the VLAN package still / modprobe 8021q / add the interface to /etc/dhcpcd.conf , but that didn't workout