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 ? |
Create a new forward zone and reverse.
-C |
Quote:
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. |
Quote:
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.
|
Quote:
|
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. |