How to add two domain on DNS server (not subdomain)
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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 ?
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.