LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to add two domain on DNS server (not subdomain) (https://www.linuxquestions.org/questions/linux-server-73/how-to-add-two-domain-on-dns-server-not-subdomain-653537/)

AK007HK 07-04-2008 05:27 AM

How to add two domain on DNS server (not subdomain)
 
Dear All,

I want add two difference doamin on one DNS server.
e.g. (www.apple.com ,www.orange.com)
Linux DNS server can do it or not ?
If yes, How to do?
Thanks a lot.

Mr. C. 07-04-2008 05:36 AM

Of course. But don't use somebody else's domains (apple.com, orange.com) - as a) you are not authoritative for those domains, and b) it will prevent your DNS users from reaching the real apple.com/orange.com.

Have you read anything, or learned anything, about Bind/named ?

custangro 07-04-2008 11:06 AM

Create a new forward zone and reverse.

-C

AK007HK 07-04-2008 09:50 PM

Quote:

Originally Posted by Mr. C. (Post 3203799)
Of course. But don't use somebody else's domains (apple.com, orange.com) - as a) you are not authoritative for those domains, and b) it will prevent your DNS users from reaching the real apple.com/orange.com.

Have you read anything, or learned anything, about Bind/named ?

Just a example, don't be too serious.

I can handle one domain on dns e.g. (www.xyz.com don't think too much),
Just a example. but don't know how to handle two difference domain on one DNS server.

Mr. C. 07-04-2008 09:57 PM

When a question is asked vaguely or could be misinterpreted, or when ambiguous examples are used, one can either respond by asking for further clarification, or by assuming the user has little knowledge. Since I can't know what you know, I chose the latter, to get the ball rolling

What do you mean "you can handle one domain" in DNS? What is confusing about a second, third, or nth zone ?

1) Show what you have for your zone files and named.conf file.
2) Explain what you don't understand regarding additional zones.

AK007HK 07-04-2008 10:47 PM

Quote:

Originally Posted by Mr. C. (Post 3204525)
What do you mean "you can handle one domain" in DNS? What is confusing about a second, third, or nth zone ?

1) Show what you have for your zone files and named.conf file.
2) Explain what you don't understand regarding additional zones.

Thanks for your quick reply.

assume xxx is domain A
assume yyy is domain B
two domain with difference True IP address
assume domain A IP address 229.a.a.a
assume domain B IP address 229.b.b.b
assume DNS server IP address 229.c.c.c

domain A is the first doamin on my DNS server.

Domain A
file name save as /var/named/xxx.hosts
$ORIGIN xxx.com.
@ IN SOA xxx.com. ns1.xxx.com. (
1234562502 ; serial
86400 ; refresh
3600 ; retry
3600000 ; expire
1D ) ; minimum
IN NS ns1.xxx.com.
localhost IN A 127.0.0.1
ns1 IN A 229.c.c.c
www IN CNAME ns1

rev.zone of doamin A
file name save as /var/named/xxx.rev
$TTL 86400
@ IN SOA xxx.com. ns1.xxx.com. (
1234562502 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ) ; minimum
@ IN NS ns1.xxx.com.
c IN PTR ns1.xxx.com.

if I want domain B work on same DNS server.
May I create another zone file at/var/named/yyy.hosts & yyy.rev just like doamin A. And Just change the domain name & IP address ?
If it is a wrong way to place Domain B, How to do ?
Thanks a lot.

Mr. C. 07-05-2008 12:02 AM

Yes, that's the idea. Just create additional zone files (forward and reverse), and add additional zone entries in your named.conf file, then reload named.

AK007HK 07-05-2008 12:18 AM

Quote:

Originally Posted by Mr. C. (Post 3204612)
Yes, that's the idea. Just create additional zone files (forward and reverse), and add additional zone entries in your named.conf file, then reload named.

Get it ! Thanks a lot.

Mr. C. 07-05-2008 12:29 AM

FYI: for more info that might be helpful, see the week 8 DNS Notes, Lab, and Homework: http://cis68c2.mikecappella.com .


All times are GMT -5. The time now is 10:18 AM.