[SOLVED] dns server configuration to add new domain
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.
thank you for your response,
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.
Then I have to modify only one file "/etc/bind/named.conf.local":
Code:
zone "hhffll.com" {
type master;
file "/etc/bind/db.hhffll.com";
};
zone "hhffll.net" {
type master;
file "/etc/bind/db.hhffll.net";
};
zone "3.2.1.in-addr.arpa" {
type master;
file "/etc/bind/db.3.2.1";
};
and I have to create new zone file "/etc/bind/db.hhffll.net":
Code:
$TTL 6H
@ IN SOA ns1.hhffll.net. admin.hhffll.net. (
1 ;serial number
8H ;refresh
2H ;retry
4W ;expiration
1D ) ;
;
NS ns1
;
@ IN NS ns1.hhffll.net.
@ IN A 1.2.3.4
ns1 IN A 1.2.3.4
And as you say no way for reverse zone. I have to restart dns service.
Is this wright way?
if not Please advice me.
thank you in advance
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.