We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 603d4fd commit f81345fCopy full SHA for f81345f
0x08-networking_basics_2/0-change_your_home_IP
@@ -0,0 +1,9 @@
1
+#!/usr/bin/env bash
2
+# This script configures an Ubuntu server as follows:
3
+# **** localhost resolves to 127.0.0.2
4
+# **** facebook.com resolves to 8.8.8.8
5
+
6
+cp /etc/hosts ~/hosts.new
7
+echo "127.0.0.2 localhost" > ~/hosts.new
8
+echo "8.8.8.8 facebook.com" >> ~/hosts.new
9
+cp -f ~/hosts.new /etc/hosts
0 commit comments