Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reverse zones

Status
Not open for further replies.

optimised

Technical User
Jun 21, 2001
96
US
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
 
Yes, you need reverse zones for your primary site.
 
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.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top