FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 09-24-2010, 08:07 PM
"James A. Peltier"
 
Default Configuring BIND to answer to two domain names (four IP addresses)

----- Original Message -----
| ----- Original Message -----
| | Thank you for all the help so far. To conclude:
| | I have one physical server that answers to the following IP
| | addresses:
| | 1.1.1.1
| | 1.1.1.2
| | 1.1.1.3
| | 1.1.1.4
| |
| | I need 1.1.1.1 & 1.1.1.2 to be the name servers for exampleA.com,
| | and
| | 1.1.1.3 & 1.1.1.4 to be the nameservers for exampleB.com. I have
| | these
| | files:
| |
| | # cat /etc/named.conf
| |
| | options {
| | directory "/etc";
| | pid-file "/var/run/named/named.pid";
| | listen-on {
| | any;
| | };
| | };
| |
| | zone "." {
| | type hint;
| | file "/etc/db.cache";
| | };
| |
| | zone "exampleA.com" {
| | type master;
| | file "/var/named/exampleA.com.hosts";
| | };
| | zone "exampleB.com" {
| | type master;
| | file "/var/named/exampleB.com.hosts";
| | };
| |
| |
| |
| | # 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 )
| | exampleA.com. IN NS ns1.exampleA.com.
| | exampleA.com. IN NS ns2.exampleA.com.
| | exampleA.com. IN A 1.1.1.1
| | exampleA.com. IN A 1.1.1.2
|
| formatting for NS records is incorrect. It should just read
|
| NS ns1.exampleA.com
| NS ns2.exampleA.com
|

correction! It should read

NS ns1.exampleA.com.

Please note the trailing period


| where is your ns1.exampleA.com entry?
| where is your ns2.exampleA.com entry?
|
|
| | # cat /var/named/exampleB.com.hosts
| |
| | $ORIGIN exampleB.com.
| | $TTL 1h
| | exampleB.com. IN SOA ns1.exampleB.com. ns2.exampleB.com. (
| | 1; Serial - increment me
| | 10800
| | 3600
| | 604800
| | 38400 )
| | exampleB.com. IN NS ns1.exampleB.com.
| | exampleB.com. IN NS ns2.exampleB.com.
| | exampleB.com. IN A 1.1.1.3
| | exampleB.com. IN A 1.1.1.4
|
| NS records are same as above. Correct your formatting.
|
| A records are not needed for NS records from a different zone, only
| for that zone
|
| | How does that look?
|
| Broken!
|
| --
| James A. Peltier
| Systems Analyst (FASNet), VIVARIUM Technical Director
| Simon Fraser University - Burnaby Campus
| Phone : 778-782-6573
| Fax : 778-782-3045
| E-Mail : jpeltier@sfu.ca
| Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
| MSN : subatomic_spam@hotmail.com
|
| Does your OS has a man 8 lart?
| http://www.xinu.nl/unix/humour/asr-manpages/lart.html
|
|
| _______________________________________________
| CentOS mailing list
| CentOS@centos.org
| http://lists.centos.org/mailman/listinfo/centos

--
--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone : 778-782-6573
Fax : 778-782-3045
E-Mail : jpeltier@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_spam@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-24-2010, 09:14 PM
"James A. Peltier"
 
Default Configuring BIND to answer to two domain names (four IP addresses)

----- Original Message -----
| ----- Original Message -----
| | On Fri, Sep 24, 2010 at 22:41, Robert Heller <heller@deepsoft.com>
| | wrote:
| | > You need:
| | >
| | > ns1.exampleA.com. IN A 1.1.1.1
| | > ns2.exampleA.com. IN A 1.1.1.2
| | >
| |
| | Here I have found conflicting information, it seems that some
| | sources
| | suggest this instead:
| | ns1 IN A 1.1.1.1
| | ns2 IN A 1.1.1.2
| |
| | Any idea?
| |
| | > And you might also consider:
| | >
| | > www.exampleA.com. IN A 1.1.1.1
| | > www.exampleA.com. IN A 1.1.1.2
| | >
| |
| | Yes, of course! Thanks.
| |
| | --
| | Dotan Cohen
| |
| | http://gibberish.co.il
| | http://what-is-what.com
| | _______________________________________________
| | CentOS mailing list
| | CentOS@centos.org
| | http://lists.centos.org/mailman/listinfo/centos
|
|
| This is a matter of preference, but may depend on your configuration
| too. I'm lazy so I use short form
|
| http://www.zytrax.com/books/dns/ch6/mydomain.html

Damn fingers!

It depends on your configuration because if you don't define $ORIGIN example.com. you need to fully qualify

--
James A. Peltier
Systems Analyst (FASNet), VIVARIUM Technical Director
Simon Fraser University - Burnaby Campus
Phone : 778-782-6573
Fax : 778-782-3045
E-Mail : jpeltier@sfu.ca
Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca
MSN : subatomic_spam@hotmail.com

Does your OS has a man 8 lart?
http://www.xinu.nl/unix/humour/asr-manpages/lart.html


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 05:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org