I installed Kali inside virtual box and the bridge adapter setting worked for a day or two. But suddenly it stopped connecting to the internet. I tried to ping a website and I get an error reading "Temporary Failure in name resolution". When I type ifconfig I dont get an inet: address anymore only an inet6. I remember messing with the network settings using some commands I dont remember so I did deleted the system and reinstalled it a few times and I still cant connect to the internet using bridge adapter on virtual box, but it does work if I use NAT. Please if anyone has some suggestions let me know.