dns server configuration to add new domain
Hi
assume hhffll.com is domain A. assume hhffll.net is domain B. and assume Ubuntu DNS server IP address is 1.2.3.4 domain A is the first domain on my DNS server. content of named.conf.local is[/etc/bind/named.conf.local] : Code:
zone "hhffll.com" { create file db.hhffll.com on /etc/bind/ Directory and file db.3.2.1 on /etc/bind/ Directory what I have to do to make domain B work properly on same DNS server? Thanks a lot. |
Hi,
Add the new zone in named.conf.local: Code:
zone "hhffll.net" { Regards |
Quote:
Do you mean put the info of reverse zone of domain B at zone file "db.hhffll.net"? if not what about reverse zone of domain B? Thank you. |
You cannot have 2 reverse zones for the same IPs. I.e. the IP 1.2.3.4 must resolve to one host, either it's from the domain hhffll.com or from hhffll.net.
|
Then to make domain B work, Do I need a second IP, no other way?
I have web server and as you know, by using virtual host more than one site it can work. but how to make dns server point to second site. I.e when request domain A >>>>>>>> first site appear. when request domain B >>>>>>>> second site appear. Thank you in advance. |
You don't need a 2nd IP
You can use the same IP for different domains/hosts, like Code:
hhffll.com. IN A 1.2.3.4 Code:
hhffll.net IN A 1.2.3.4 Regards |
Then I have to modify only one file "/etc/bind/named.conf.local":
Code:
zone "hhffll.com" { Code:
$TTL 6H Is this wright way? if not Please advice me. thank you in advance |
Yes, this is all you have to do.
Regards |
Thank you very much my friend.
Now I get the Idea. |
Hi,
Also check this blog,which i have created for configuring multiple domains in ubuntu http://dinakumar12.wordpress.com |
Thanks that what I need exactly.
You and bathory, are give me great help. |
All times are GMT -5. The time now is 05:44 PM. |