I created a virtual machine with 2 network interfaces. One is bridged and the other one is host-only.
They are both using DHCP, and are overwriting the /etc/resolv.conf file.
if eth0 gets the DHCP response first then eth1 overwrites the file with the wrong DNS server address.
if eth1 gets the DHCP response first then eth0 overwrites the file with the right address and everything is fine.
It would be ideal to just always take the DNS response from eth0 (bridged interface).
I had a look at /etc/dhcp/dhcpclient.conf but i couldn't find a way to create somekind of if here so that the dhcp client would only request a dns address from eth0
what would be the best way to solve this?