Running multiple websites from different domains on same webserver
Phusion
phusion2k at gmail.com
Tue Jul 4 17:46:38 UTC 2006
Last night, I figured out what the problem was. It was such a stupid
little mistake. Thanks for the help though.
Phusion
On 7/4/06, Merton Campbell Crockett <m.c.crockett at adelphia.net> wrote:
>
> Having multiple domain names or names in different domain name spaces
> resolve to the same IP address is not a problem. However, the IP address
> may only resolve to one domain name.
>
> First, you need to decide which domain is the "primary" domain. Create the
> "primary" domain and IN-ADDR.ARPA zone files and ensure that they are
> consistent. Create the "secondary" domain zone files. If you need to
> support SSL or your web site visitors are behind firewalls or proxies, you
> may need to use different IP addresses.
>
> You appear to be using a Linux tool to generate your zone files. Consider
> doing it manually to eliminate bogus data in your zone files. The
> "old-fashioned" way of stating the current origin is to place the "@" on the
> SOA statement. Let BIND append the zone string.
>
> zone 1.168.192.in-addr.arpa. {...};
>
> $TTL 3600
> @ IN SOA ns.abc.com. root.ns.abc.com. (...)
> IN NS ns.abc.com.
> 33 IN PTR ns.abc.com.
> 35 IN PTR www.abc.com.
> ...
>
> zone abc.com {...};
>
> $TTL 3600
> @ IN SOA ns.abc.com. root.ns.abc.com. (...)
> IN NS ns.abc.com.
> ns IN A 192.168.1.33
> www IN A 192.168.1.35
> ...
>
> zone abc.net {...};
>
> $TTL 3600
> @ IN SOA ns.abc.com. root.ns.abc.com. (...)
> IN NS ns.abc.com.
> reports IN A 192.168.1.35
> ...
>
> BIND hasn't complain about zone files structured as shown above. On a SuSE
> Linux system, I had to create the zone files manually because YaST didn't
> like multiple domain names with the same IP address.
>
> Merton Campbell Crockett
>
>
>
>
> On 03 Jul 2006, at 18:23 , Phusion wrote:
>
> I am running BIND9 and need help with the following. I have a server that
> runs
> a few different websites using different domains. Let's use the following
> names.
>
> http://www.abc.com/
> http://reports.abc.net/
>
> Below, I've listed the output from the following files. Both of these
> websites
> are located at 192.168.1.35. I currently have it in the
> 1.168.192.in-addr.arpa
> file and in the db.abc.net file. When I add it to the db.abc.com file I get
> the
> following error in from named.
>
> Jul 3 19:51:21 ns named[19453]: db.abc.com:22: ignoring out-of-zone
> data (www.abc.com)
>
> Output from files.
>
> --------------------
>
> %cat 1.168.192.in-addr.arpa
> $TTL 3600
>
> 1.168.192.in-addr.arpa. IN SOA ns.abc.com. root.ns.abc.com. (
> 20060615
> 3600
> 900
> 3600000
> 3600)
>
> ; Name servers
> 1.168.192.in-addr.arpa. IN NS ns.abc.com.
>
> 35.1.168.192.in-addr.arpa. IN PTR reports.abc.net.
>
> --------------------
>
> %cat db.abc.net
> $TTL 3600
>
> abc.net. IN SOA ns.abc.com. root.ns.abc.com. (
> 20050908
> 3600
> 900
> 3600000
> 3600)
>
> ; Name servers
> @ IN NS ns.abc.com.
>
> ; Host Addresses
> reports.abc.net. IN A 192.168.1.35
>
> --------------------
>
> The problem seems to be because of the different domains. Let me know how
> this
> can be done.
>
> Phusion
>
>
>
>
>
> Merton Campbell Crockett
> m.c.crockett at adelphia.net
>
>
>
>
More information about the bind-users
mailing list