Re: Configuring BIND to answer to two domain names (four IP addresses)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Fri, Sep 24, 2010 at 22:24, Robert Heller <heller@xxxxxxxxxxxx> wrote:
>> So, then, the association of a FQDN with any particular IP address is
>> only done in the domain name's control panel where the nameservers are
>> set?
>
> It is in bind's database (zone files). ÂIn named.conf you associate
> domains (all but the leftmost part of the FQDN) with zone files and
> zone files map from hostnames (left-most part of the FQDN) to ip
> addresses.
>

Thank you. That is quite what I had suspected, and of course the zone
files that I am experimenting with reflect that. How is this:


# cat /var/named/exampleA.com.hosts

$ORIGIN exampleA.com.
$TTL 1h
exampleA.com. IN      SOA     ns1.exampleA.com. ns2.exampleA.com. (
                       1; Serial - increment me
                       10800
                       3600
                       604800
                       38400 )
             IN      NS      ns1.exampleA.com.
             IN      NS      ns2.exampleA.com.
exampleA.com. IN      A       1.1.1.1
exampleA.com. IN      A       1.1.1.2
ns1           IN  A   1.1.1.1
ns2           IN  A   1.1.1.2


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux