I want to reset all my networking files to default. The files include /etc/hosts, /etc/network/interfaces, /etc/resolv.conf, and more. How can I do that without re installing?
/etc/hosts
127.0.0.1 localhost
::1 localhost
/etc/resolv.conf
nameserver 192.168.1.1
/etc/network/interfaces
##Local Loopback
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.24
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination