diff --git a/Ext-DNS.startup b/Ext-DNS.startup new file mode 100755 index 0000000..dcd3d44 --- /dev/null +++ b/Ext-DNS.startup @@ -0,0 +1,10 @@ +# IP of Ext-DNS +ip addr add 10.0.2.4/24 dev eth0 +ip link set up dev eth0 + +# Route to External-switch +ip route add default via 10.0.2.2 dev eth0 + +# Start DNS service +chmod +r /etc/dnsmasq_static_hosts.conf +systemctl start dnsmasq diff --git a/Ext-DNS/etc/dnsmasq.conf b/Ext-DNS/etc/dnsmasq.conf new file mode 100755 index 0000000..ba550eb --- /dev/null +++ b/Ext-DNS/etc/dnsmasq.conf @@ -0,0 +1,10 @@ +interface=eth0 +domain-needed +bogus-priv +no-resolv +no-poll +address=/doubleclick.net/127.0.0.1 +no-hosts +addn-hosts=/etc/dnsmasq_static_hosts.conf +expand-hosts +domain=example.com diff --git a/Ext-DNS/etc/dnsmasq_static_hosts.conf b/Ext-DNS/etc/dnsmasq_static_hosts.conf new file mode 100755 index 0000000..830d413 --- /dev/null +++ b/Ext-DNS/etc/dnsmasq_static_hosts.conf @@ -0,0 +1,2 @@ +201.224.19.7 this.test.com +201.224.19.7 faceybooky.com diff --git a/Ext-DNS/etc/resolvconf/resolv.conf.d/base b/Ext-DNS/etc/resolvconf/resolv.conf.d/base new file mode 100755 index 0000000..caa02b9 --- /dev/null +++ b/Ext-DNS/etc/resolvconf/resolv.conf.d/base @@ -0,0 +1,2 @@ +# hosts external to fido +nameserver 8.8.8.8 diff --git a/lab.conf b/lab.conf index 0a86ad9..ce6b9e1 100755 --- a/lab.conf +++ b/lab.conf @@ -14,3 +14,4 @@ Squid[0]=DMZ # External subnet External-switch[0]=External Ext-Office[0]=External +Ext-DNS[0]=External