Can someone give me some insight on setting up a Secondary DNS on RH 7.0? The RH linux DNS will be secondary to a Primary DNS with BIND version 4 for backward compatability.
Perhaps you wanted some configuration help. It´s better if you read up on the function of dns and ask questions when you get stuck. It´s such a big subject anyway. /Sören
options {
directory "/var/named";
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa"{
type master;
file "named.local";
};
zone "22.10.in-addr.arpa"{
type slave;
file "sec.22.10";
masters{
10.22.10.10; #ip of your DNS master
};
};
zone "dnsname.com"{
type slave;
file "sec.hosts.dname";
masters{
IP of your DNS server;
};
};
go to /etc/rc.d/init.d
run ./named start # this will get you running.
And as Nostradamus says read book.
I hope this will helps you.
Just curious. I have just installed rh 7.1 and have just been doing a little research before I start doing any configuration. I thought that in order to be you own ns1 and ns2 would require two machines is this correct.
I was wondering because I corrently have one box and one ip address can I set up ns1 and ns2 using one box and one static ip address or will I need a second box with an additional ip from my isp provider?
Before I start configuration of my server should I
register two domains to provide primary and secondary ns or will just registering one domain suffice and if so how do you regiter nameservers with internic?
As you can tell I'm a newbie just looking for some clarity.
The dns howto is very good and has many examples.
Use Bind 8.x and get the security updates so
you don't have to worry about the ramen and lion worms.
optimised:
Just one domain name is all you need.
Run a single machine and one nameserver:
:master only.
Have your isp or another provider help you
with slave dns. I have run many times without
secondaries , or even as a resolver client.
Depending on your needs you may not want
to go overboard with dns.
You register your domain name with who
you get it from; they will provide the
domain name and it's servers to the proper
persons. (You hope.)
In the next few months I plan on hosting about 5 sites for some local organizations and a few of my own. I'm not sure what the total number will be. From what I have read updating the dns would be easier if I had my own primary and secondary nameservers.
So my question is Do I need two machines? Currently I have one box and one ip address can I set up ns1 and ns2 using one box and one static ip address or will I need a second box with an additional ip from my isp. I would like to control the dns when others decide to register there domains I could provide them with the ns1 and ns2 numbers prior to registering the domains to aviod doing transfers and avoid having to depend on others when I want to add a site.
I'm new at this as you can tell. My next question would be can I register a HOST or ns1 and ns2 name now prior to setting up the nameservers? Whats the process of registering nameservers? Thanks in advance~
Yes,
Use two machines and get a second ip from your ISP,
or arrange with your ISP to have them slave a box
to your master. As long as your isp is agreeable
(some aren't) then this saves you the trouble of the
second machine. Tell them they are saving an IP address
for the trouble of a zone entry;-)
As far as needing two machines:
Yes, technically you do. In practice you do not.
But it is better to be safe and thorough. The way
you want to admin the dns seems fairly typical to me.
As far as "transfers" go there should only be zone
traffic from your master and slave. None of the remote
sites need to do anything but ask who they are and
where is what. The resolver queries the name servers
and gets this info: no zone transfers occur.
Registering a domain name is fairly simple, and yes
you can do it now. Keep in mind that time is an
issue with $$. You have to renew your domain name
periodically.
Contact whatever organization you think is reliable
or contact your ISP and get their recommendation on
a domain name provider. You buy the name, give them
the addresses of your NS(2) and then they register
with internic and the root NS get your records.
MMD: Thanks for the clarity.
So as it seams I should be good to go now. I have a second machine that I've aready set-up. My isp provides me with three static ip addresses with my plan.
I plan on registering a domain later on today with registers.com (bogus name registered = mydomain.com)
So in the section for ns1 and ns2 I would use-
primary nameserver: ns1.mydomain.com
primary address: 208.xx.xx.50 (ip of machine1)
secondary nameserver: ns2.mydomain.com
secondary address: 208.xx.xx.51 (ip of machine2)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.