Name based hosts and bind

Ray Van Dolson rvandolson at esri.com
Wed Apr 23 17:42:05 UTC 2008


> Mysite.com IN PTR 123.123.123.4
> Mysite2.com IN PTR 123.123.123.4
> 
> I would assume that both sites would end up using the same addr.arpa file
> 123.123.123.IN-ADDR.ARPA due to having the same exact ip address, nes pas?
> 
> I did a search online but could not find an example that showed named based
> and ipbased on the same server/dns configuration. PTR is fun-duh-mental!

You probably shoudln't do multiple PTR records.  I would do something
as follows:

  genericname.domain.com A 192.168.1.1
    vhost1.domain.com    A 192.168.1.1
    vhost2.domain.com    A 192.168.1.1

genericname.domain.com PTR 192.168.1.1

In "psuedo" code. :-)

So your IP reverse resolves to the generic name, but your vhosts still
forward resolve to the correct IP so you can do your named based
virtual hosting.

If you need forward and reverse to match for whatever reason, you'll
have to do separate IP addresses.

Ray


More information about the bind-users mailing list