Skip to content

Commit

Permalink
Merge pull request #8 from iArcanic/Ext-DNS
Browse files Browse the repository at this point in the history
Ext-DNS
  • Loading branch information
iArcanic authored Jul 14, 2023
2 parents 7198950 + b62ba2f commit 1b875fa
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Ext-DNS.startup
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions Ext-DNS/etc/dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions Ext-DNS/etc/dnsmasq_static_hosts.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
201.224.19.7 this.test.com
201.224.19.7 faceybooky.com
2 changes: 2 additions & 0 deletions Ext-DNS/etc/resolvconf/resolv.conf.d/base
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# hosts external to fido
nameserver 8.8.8.8
1 change: 1 addition & 0 deletions lab.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ Squid[0]=DMZ
# External subnet
External-switch[0]=External
Ext-Office[0]=External
Ext-DNS[0]=External

0 comments on commit 1b875fa

Please sign in to comment.