Config multiple domains on one IP address

Kevin Darcy kcd at daimlerchrysler.com
Wed Jul 12 01:13:52 UTC 2000


Those A records were in separate zone files, yes? And the fully-qualified
names are all dot-terminated? Did named log any errors when it tried to
load the zonefile(s)?

Even with a wildcard entry, you still need explicit records for anything
which is referred to on the left-hand side of a resource record. So you
still need an A record for ns1.mydomain.com, for instance, if an NS record
points to it. Also, wildcards are specific to a particular *branch* of the
namespace tree, so the *.mydomain.com wildcard, for instance, doesn't match
mydomain.com itself -- only things underneath it -- and thus you'd still
need an A record for that name if you want it to resolve to an address. You
could get rid of the "www" entries, though, since the wildcard will take
care of them.

How carefully did you read _DNS_and_BIND_? Seems like all of this was
covered...


- Kevin

symbolicJ!M wrote:

> Hello everybody,
>
> I've taken the advice I constantly find here, and have wasted my money
> on DNS & BIND... my network has almost nothing in common with their
> example scenario, but I did get some useful background information, and
> a general sense of amazement that this protocol makes the 'Net go round.
>
> That said, hopefully now I have some clear, concise questions that can
> be answered easily by someone who has already eaten the magic beans...
>
> My situation I have one machine, which is configured with two IP
> addresses. The host is server.mydomain.com with an IP of
> 111.222.333.253, a second IP is bound to eth0 111.222.333.252 and is
> named NS1.mydomain.com. I have registered my nameserver with my
> registrar, and updated mydomain.com's whois to use my NS1.mydomain.com
> address and IP to handle DNS resolution.
>
> It is my desire to use Apache 1.3.12 to use NameVirtualHost to host
> multiple domains on the single 111.222.333.253 IP address. Within the
> httpd.conf file it seems very straightforward, and I believe that part
> of my configuration is correct. The DNS portion continues to baffle me.
>
> I want to point all requests for *.mydomain.com, *.mydomain.net,
> *.seconddomain.com, and *.thirddomain.com at the 111.222.333.253 IP to
> allow Apache to parse the requests properly. After reading DNS&BIND, my
> db.mydomain looked like this:
>
> mydomain.com IN SOA .... (blah blahblah)
>
> mydomain.com IN NS NS1.MYDOMAIN.COM
>
> localhost.mydomain.com IN A 127.0.0.1
> server.mydomain.com    IN A 111.222.333.253
> ns1.mydomain.com       IN A 111.222.333.252
>
> mydomain.com           IN A 111.222.333.253
> www.mydomain.com       IN A 111.222.333.253
> *.mydomain.com         IN A 111.222.333.253
>
> mydomain.net           IN A 111.222.333.253
> www.mydomain.net       IN A 111.222.333.253
> *.mydomain.net         IN A 111.222.333.253
>
> seconddomain.com       IN A 111.222.333.253
> www.seconddomain.com   IN A 111.222.333.253
> *.seconddomain.com     IN A 111.222.333.253
>
> ...etc.
>
> Didn't work. As far as I could tell. No satisfaction from Netscape,
> NSLOOKUP and ping puked on reqeuests for mydomain.com.
>
> After scouring the newsgroups again, I changed my A records (aside from
> the first two of course) to CNAME like:
> mydomain.com           IN CNAME server.mydomain.com.
> www.mydomain.com       IN CNAME server.mydomain.com.
> *.mydomain.com         IN CNAME server.mydomain.com.
>
> Yes, I changed the serial number in db.mydomain, and restarted named.
>
> What is the correct syntax here?
> If I have the wildcard *, do I really need the other entries?
>
> Any help is greatly appreciated.
> J!M
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.






More information about the bind-users mailing list