LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-04-2008, 05:27 AM   #1
AK007HK
LQ Newbie
 
Registered: Jul 2007
Location: Hong Kong
Distribution: FC9, FC7, RHEL5
Posts: 8

Rep: Reputation: 0
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.
 
Old 07-04-2008, 05:36 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
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 ?
 
Old 07-04-2008, 11:06 AM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,933
Blog Entries: 1

Rep: Reputation: 188Reputation: 188
Create a new forward zone and reverse.

-C
 
Old 07-04-2008, 09:50 PM   #4
AK007HK
LQ Newbie
 
Registered: Jul 2007
Location: Hong Kong
Distribution: FC9, FC7, RHEL5
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Mr. C. View Post
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.
 
Old 07-04-2008, 09:57 PM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
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.

Last edited by Mr. C.; 07-05-2008 at 12:03 AM.
 
Old 07-04-2008, 10:47 PM   #6
AK007HK
LQ Newbie
 
Registered: Jul 2007
Location: Hong Kong
Distribution: FC9, FC7, RHEL5
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Mr. C. View Post
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.
 
Old 07-05-2008, 12:02 AM   #7
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
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.
 
Old 07-05-2008, 12:18 AM   #8
AK007HK
LQ Newbie
 
Registered: Jul 2007
Location: Hong Kong
Distribution: FC9, FC7, RHEL5
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Mr. C. View Post
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.
 
Old 07-05-2008, 12:29 AM   #9
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
add subdomain adnanm Linux - Newbie 1 04-26-2006 04:34 AM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM
subdomain in the dns server bind c0nsur Linux - Software 4 03-29-2005 04:11 PM
Yet another apache domain/subdomain problem xtra Linux - Newbie 2 08-18-2004 07:30 AM
Domain and subdomain macadam Linux - Newbie 2 09-18-2003 04:00 PM


All times are GMT -5. The time now is 05:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration