Hi,
I have one ip address which I'm using for my dns and web server. I plan on hosting 3 domains using named vitual hosting. Do I need a reverse zone for each domain? I'm confused on whether I should even need reverse zone files.
Thanks
Hi marsd,
I am a newbie so excuse me for my ignorance. I don't understand how two create the reverse zone files for three domains if I only have one ip. Right now I can only get my web site by using my nameserver ip. What am I missing?
THKS, rookie
Do you need to provide dns for all three sites?
If so you need to create entries for these addresses
in your forward and reverse zones if you want the names to resolve properly.
You create these entries as you would for your own
ip address...
IN NS NS1.mydomain.net
IN NS NS2.otherdomain.net
IN MX 20 mx.mydomain.net
IN MX 55 mx2.otherdomain.net
NS1 1D IN A ip address
NS2 1D IN A ip address
mx 1D IN A ip address
mx2 1D IN A ip address
webhostname 1D IN A ip address
other info here
webvirtualhostname 1D IN CNAME webhstnameip address
#other info here ; including alt MX if necessary
webvirtualhostname 1D IN CNAME webhstnameip address
The reverse zone
say your ip address is 172.16.210.98/16
off site dns is 192.168.1.106/24
webserver is 172.16.210.95/16
$TTL 1D
info here(filename, auth, etc..)
IN NS NS1.mydomain.net.
IN NS NS2.otherdomain.net.
210.98 IN PTR NS1.mydomain.net.
106(the other off-site ns) IN PTR NS2.otherdomain.net.
210.95 IN PTR webhostname
The idea is that the cnames map back to your webserver. This is one way to do it. There are others.
Hope this is clearer than mud. Please see the sample-configs in your doc/packages/bind dir.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.