Question: the 2 screenshots i attached is 1) the problem / python code I need 2) the screenshot of the txt it mentions in the problem.

Lab 4 Pile Handling Continued In this lab you will be accessing the file /etc/hosts. You will write a script (s) that analyzes the existing content and inserts content located in a different file. You will be writing two scripts. Script 1: -Open file "dns_list.txt" -create a python list Script 2: -import python list created by script 1 -Add the contents of the imported lists to the existing /etc/hosts file where the red arrow is pointing rootgandrew-campbell:/etc/Intt.de cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 andrew-campbell The following lines are destrable for IPv6 capable hosts po-localhost (p6-Loopback fe00:30 Ipo. Localnet ff00:50 Ipo-ncastprefix f02:po-allnodes 170252 Lpb-allrouters dns_list - Notepad File Edit Format View Help 10.0.0.1 10.0.0.2 10.0.0.3 10.0.0.4 10.0.0.5 10.0.0.6 10.0.0.7 dns 1 dns 2 dns 3 dns 4 dns 5 dns 6 dns 7 ad pi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
