I have a DNS server as well as a Web server. I have many websites/domains on the Web server and would like to forward requests for these websites to the Web Server from the DNS server using Bind9.
A few things first: My domain name that will be used for the DNS server is currently used elsewhere, I want to make sure all the dns settings are correct and working before pointing the nameservers to the my DNS server.
My Websites are also being used elsewhere.
Say:
- my ISP's Name Servers are 110.40.60.1 and 110.40.60.2
- my DNS ip is 200.90.90.180 / 10.0.0.1 (External / Internal) named "Firewall"
- my Web server is 10.0.0.80 (Internal) named "Spider"
- my domain to be used for the DNS is www.myfirewall.com.au
- my website to be hosted on the Web server is www.mywebsite.com.au
My resolv.conf file:
search myfirewall.com.au
search mywebsite.com.au
nameserver 110.40.60.1
nameserver 110.40.60.2
My named.conf.local file:
zone "myfirewall.com.au" {
type master;
file "/etc/bind/db.myfirewall.com.au";
};
zone "0.0.10.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.10";
};
My db.myfirewall.com.au file:
$TTL 3600
@ IN SOA firewall.myfirewall.com.au. root.myfirewall.com.au. (
166 ; Serial
3600 ; Refresh
3600 ; Retry
3600 ; Expire
3600 ; Negative Cache TTL
)
;
@ IN NS firewall.myfirewall.com.au.
firewall IN A 10.0.0.1
www IN A 10.0.0.80
My db.10 file:
$TTL 3600
@ IN SOA firewall.myfirewall.com.au. root.myfirewall.com.au. (
166 ; Serial
3600 ; Refresh
3600 ; Retry
3600 ; Expire
3600 ; Negative Cache TTL
)
;
@ IN NS firewall.
1 IN PTR firewall.myfirewall.com.au
80 IN PTR spider.myfirewall.com.au
Are these setup correctly an how do I get requests for mywebsite.com.au to go to 10.0.0.80?