Skip to main content
edited body
Source Link
sinister
  • 13
  • 1
  • 1
  • 4

I am running a debian based linux vm using virt-manager with two ethernet interfacs one connected with NAPNAT and the other is bridged to br0, in /etc/network/interfaces I have the following configuration

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

br0 has a dhcp server that in not connected to anything except for a switch

when I reboot the machine /etc/resolv.conf has the following entry

nameserver 192.168.150.1

which is the network address assigned by NAP, that being said when I try to ping google.com I get the error temporary name resolution failure then I add another entry which is

nameserver 8.8.8.8

and the vm works fine and I can visit any website but after some time it check /etc/resolv.conf and it has one entry again, even if i left the machine running with out starting anny services or running any programs

Is there a way to find out what is overwriting /etc/resolv.conf Is there a wat to add nameserver 8.8.8.8 to /etc/resolv.conf if it is not found (without using bash files)

I am running a debian based linux vm using virt-manager with two ethernet interfacs one connected with NAP and the other is bridged to br0, in /etc/network/interfaces I have the following configuration

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

br0 has a dhcp server that in not connected to anything except for a switch

when I reboot the machine /etc/resolv.conf has the following entry

nameserver 192.168.150.1

which is the network address assigned by NAP, that being said when I try to ping google.com I get the error temporary name resolution failure then I add another entry which is

nameserver 8.8.8.8

and the vm works fine and I can visit any website but after some time it check /etc/resolv.conf and it has one entry again, even if i left the machine running with out starting anny services or running any programs

Is there a way to find out what is overwriting /etc/resolv.conf Is there a wat to add nameserver 8.8.8.8 to /etc/resolv.conf if it is not found (without using bash files)

I am running a debian based linux vm using virt-manager with two ethernet interfacs one connected with NAT and the other is bridged to br0, in /etc/network/interfaces I have the following configuration

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

br0 has a dhcp server that in not connected to anything except for a switch

when I reboot the machine /etc/resolv.conf has the following entry

nameserver 192.168.150.1

which is the network address assigned by NAP, that being said when I try to ping google.com I get the error temporary name resolution failure then I add another entry which is

nameserver 8.8.8.8

and the vm works fine and I can visit any website but after some time it check /etc/resolv.conf and it has one entry again, even if i left the machine running with out starting anny services or running any programs

Is there a way to find out what is overwriting /etc/resolv.conf Is there a wat to add nameserver 8.8.8.8 to /etc/resolv.conf if it is not found (without using bash files)

Source Link
sinister
  • 13
  • 1
  • 1
  • 4

Why does /etc/resolv.conf keep changing?

I am running a debian based linux vm using virt-manager with two ethernet interfacs one connected with NAP and the other is bridged to br0, in /etc/network/interfaces I have the following configuration

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

br0 has a dhcp server that in not connected to anything except for a switch

when I reboot the machine /etc/resolv.conf has the following entry

nameserver 192.168.150.1

which is the network address assigned by NAP, that being said when I try to ping google.com I get the error temporary name resolution failure then I add another entry which is

nameserver 8.8.8.8

and the vm works fine and I can visit any website but after some time it check /etc/resolv.conf and it has one entry again, even if i left the machine running with out starting anny services or running any programs

Is there a way to find out what is overwriting /etc/resolv.conf Is there a wat to add nameserver 8.8.8.8 to /etc/resolv.conf if it is not found (without using bash files)