|
|
|
|
|
|
| Author |
Message |
Wayne *nix forums Guru
Joined: 20 Feb 2005
Posts: 527
|
Posted: Wed Jun 28, 2006 8:55 am Post subject:
DNS - Primary / Secondary on one machine
|
|
|
Hi,
Question: Can one machine act as both the primary and secondary DNS for a
domain?
Senario: I have just installed Fedora Core 5 (Following the howtoforge
perfect setup as
I am new to linux). The machine will be used as a web server,
ftp server and
dns server for my personal domains (About 15 domains) and
educational purposes.
I am aware that if my machine is down everything goes down but since my
sites are hosted
on the same machine it makes little difference, and they are personal sites
anyway :)
Is there perhaps a tutorial/howto/guide that explains how this can be done?
Any help is most appreciated.
Wayne. |
|
| Back to top |
|
 |
Davide Bianchi *nix forums Guru
Joined: 24 Feb 2005
Posts: 373
|
Posted: Wed Jun 28, 2006 9:19 am Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
On 2006-06-28, Wayne <wayne@somedomain.com> wrote:
| Quote: | Question: Can one machine act as both the primary and secondary DNS for a
domain?
|
Sure he can, but what's the point of doing so? The idea of having two
DNSes is because if the first is down the second can take up the job, if
both are on the same system... the primary DNS is the only mandatory one, then
you can have as many as you like.
Davide
--
General Protection Fault! [ Ignore ] [ Reboot ] [ Install Linux ]
-- From a Slashdot.org post |
|
| Back to top |
|
 |
Wayne *nix forums Guru
Joined: 20 Feb 2005
Posts: 527
|
Posted: Wed Jun 28, 2006 9:50 am Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
Hi Davide,
The reason I would need to run two is that the domain registrar for (co.za)
domain names requires two DNS servers.
The fact that it all goes down (primary and secondary) doesnt matter much
because the sites are hosted on the same machine as the primary anyway.
(And its purely my personal sites).
Wayne.
"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnea4ic8.1bf.davideyeahsure@wrom.onlyforfun.net...
| Quote: | On 2006-06-28, Wayne <wayne@somedomain.com> wrote:
Question: Can one machine act as both the primary and secondary DNS for
a
domain?
Sure he can, but what's the point of doing so? The idea of having two
DNSes is because if the first is down the second can take up the job, if
both are on the same system... the primary DNS is the only mandatory one,
then
you can have as many as you like.
Davide
--
General Protection Fault! [ Ignore ] [ Reboot ] [ Install Linux ]
-- From a Slashdot.org post |
|
|
| Back to top |
|
 |
Nico Kadel-Garcia *nix forums Guru
Joined: 21 Feb 2005
Posts: 1068
|
Posted: Wed Jun 28, 2006 1:22 pm Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
Davide Bianchi wrote:
| Quote: | On 2006-06-28, Wayne <wayne@somedomain.com> wrote:
Question: Can one machine act as both the primary and secondary DNS
for a domain?
Sure he can, but what's the point of doing so? The idea of having two
DNSes is because if the first is down the second can take up the job,
if
both are on the same system... the primary DNS is the only mandatory
one, then you can have as many as you like.
|
You put the second one on a different IP address with a different network
card, so if you lose one connection you still have the other. You also use
it to test out your setups, until you can get a second DNS server. |
|
| Back to top |
|
 |
Michael Heiming *nix forums Guru
Joined: 19 Feb 2005
Posts: 1423
|
Posted: Wed Jun 28, 2006 7:15 pm Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
In comp.os.linux.setup Wayne <wayne@somedomain.com>:
| Quote: | "Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnea4ic8.1bf.davideyeahsure@wrom.onlyforfun.net...
On 2006-06-28, Wayne <wayne@somedomain.com> wrote:
Question: Can one machine act as both the primary and secondary DNS for
a
domain?
Sure he can, but what's the point of doing so? The idea of having two
DNSes is because if the first is down the second can take up the job, if
both are on the same system... the primary DNS is the only mandatory one,
then
you can have as many as you like.
Hi Davide,
The reason I would need to run two is that the domain registrar for (co.za)
domain names requires two DNS servers.
The fact that it all goes down (primary and secondary) doesnt matter much
because the sites are hosted on the same machine as the primary anyway.
(And its purely my personal sites).
|
It's generally a good idea two have an secondary off-site DNS, as
well as off site backup MX entry. What about mail for the domain?
The MTA might still be up even if your web server is down, or you
backup MX should just jump in. Ask your ISP, he might offer this
service for his customer more or less for free.
Think about that an error not reaching some http server because
it is down doesn't look as distracting as if the domain isn't
resolvable. Some people might not mention the difference others
might not come back because even DNS doesn't work.
I'd rethink your position.
Good luck
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 309: firewall needs cooling |
|
| Back to top |
|
 |
Keith Keller *nix forums Guru
Joined: 20 Feb 2005
Posts: 608
|
Posted: Wed Jun 28, 2006 8:37 pm Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
On 2006-06-28, Wayne <wayne@somedomain.com> wrote:
| Quote: |
The reason I would need to run two is that the domain registrar for (co.za)
domain names requires two DNS servers.
The fact that it all goes down (primary and secondary) doesnt matter much
because the sites are hosted on the same machine as the primary anyway.
|
It doesn't matter much to you, but obviously it matters to your
registrar.
There are a few free secondary DNS providers that will provide this
service for you. There are even a few that will provide full primary
and secondary (or master/slave, depending on the terminology you want to
use) DNS for you, too. Google will help you find these providers.
--keith
--
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information |
|
| Back to top |
|
 |
SadOldGit *nix forums beginner
Joined: 17 Jun 2006
Posts: 7
|
Posted: Mon Jul 03, 2006 12:31 am Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
Michael Heiming wrote:
| Quote: | In comp.os.linux.setup Wayne <wayne@somedomain.com>:
"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnea4ic8.1bf.davideyeahsure@wrom.onlyforfun.net...
On 2006-06-28, Wayne <wayne@somedomain.com> wrote:
Question: Can one machine act as both the primary and secondary DNS for
a
domain?
Sure he can, but what's the point of doing so? The idea of having two
DNSes is because if the first is down the second can take up the job, if
both are on the same system... the primary DNS is the only mandatory one,
then
you can have as many as you like.
Hi Davide,
The reason I would need to run two is that the domain registrar for (co.za)
domain names requires two DNS servers.
The fact that it all goes down (primary and secondary) doesnt matter much
because the sites are hosted on the same machine as the primary anyway.
(And its purely my personal sites).
It's generally a good idea two have an secondary off-site DNS, as
well as off site backup MX entry. What about mail for the domain?
The MTA might still be up even if your web server is down, or you
backup MX should just jump in. Ask your ISP, he might offer this
service for his customer more or less for free.
Think about that an error not reaching some http server because
it is down doesn't look as distracting as if the domain isn't
resolvable. Some people might not mention the difference others
might not come back because even DNS doesn't work.
I'd rethink your position.
Good luck
There seems to be a considerable confusion in the thread between DNS, |
and 'name servers'.
The OP is talking about DNS whilst obviously referring to 'name
servers'. DNS is the Domain Name System - it resolves name queries to IP
addresses - that's what it does. 'Name servers' are sat at the other end
of the chain - they provide the IP addresses - they hold the MX entries,
etc., when queried via the downward hierarchical Domain Name System, a
'name server' will (if it exists) eventually be found to supply the IP
address matching the query, enabling IP datagrams to be routed.
My li'l old P-III 450 is sat there quite content running BIND, and
resolving all my DNS queries for me - I don't recall ever putting any MX
records in there...
....because all the domains that I deal with are hosted in a proper
facility. Why on earth would OP ever want to host *anything* on his own
machine? Where I host (for multiple domains, at about $25 per month) has
four 155Mbps connections, each with a different supplier - how much
would that cost OP?
Sorry to pick you up on that Michael - I normally find your replies to
be amongst the most informative and polite on any of the newsgroups
where I might be lurking :)
Steve |
|
| Back to top |
|
 |
Michael Heiming *nix forums Guru
Joined: 19 Feb 2005
Posts: 1423
|
Posted: Mon Jul 03, 2006 6:25 am Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
In comp.os.linux.setup SadOldGit <sog@linux.bogus>:
| Quote: | Michael Heiming wrote:
In comp.os.linux.setup Wayne <wayne@somedomain.com>:
"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnea4ic8.1bf.davideyeahsure@wrom.onlyforfun.net...
On 2006-06-28, Wayne <wayne@somedomain.com> wrote:
Question: Can one machine act as both the primary and secondary DNS for
[..] |
| Quote: | It's generally a good idea two have an secondary off-site DNS, as
well as off site backup MX entry. What about mail for the domain?
The MTA might still be up even if your web server is down, or you
backup MX should just jump in. Ask your ISP, he might offer this
service for his customer more or less for free.
Think about that an error not reaching some http server because
it is down doesn't look as distracting as if the domain isn't
resolvable. Some people might not mention the difference others
might not come back because even DNS doesn't work.
I'd rethink your position.
Good luck
There seems to be a considerable confusion in the thread between DNS,
and 'name servers'.
|
No there isn't. ;-)
| Quote: | The OP is talking about DNS whilst obviously referring to 'name
servers'. DNS is the Domain Name System - it resolves name queries to IP
addresses - that's what it does. 'Name servers' are sat at the other end
of the chain - they provide the IP addresses - they hold the MX entries,
etc., when queried via the downward hierarchical Domain Name System, a
'name server' will (if it exists) eventually be found to supply the IP
address matching the query, enabling IP datagrams to be routed.
My li'l old P-III 450 is sat there quite content running BIND, and
resolving all my DNS queries for me - I don't recall ever putting any MX
records in there...
|
As you are just running it as standalone or forwarding DNS
server. A name server can run in this mode or/and be
primary/secondary for one ore multiple domains. Just how you
configured it.
| Quote: | ...because all the domains that I deal with are hosted in a proper
facility. Why on earth would OP ever want to host *anything* on his own
machine? Where I host (for multiple domains, at about $25 per month) has
|
Why not, if you are already authoritative for some domain say
sadoldgit.com you can just configure a new host
"linux.sadoldgit.com" into your dns server and it should be
resolvable from everywhere. So you can setup things faster if you
are running your own authoritative DNS servers, instead of asking
your ISP doing things for you.
| Quote: | four 155Mbps connections, each with a different supplier - how much
would that cost OP?
Sorry to pick you up on that Michael - I normally find your replies to
be amongst the most informative and polite on any of the newsgroups
where I might be lurking
|
Thx and no problem. Albeit it seems you are a little confused how
DNS works. The DNS howto (www.tldp.org) should have more
information about the matter.
Good luck
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 331: those damn raccoons! |
|
| Back to top |
|
 |
The Natural Philosopher *nix forums beginner
Joined: 02 Feb 2006
Posts: 48
|
Posted: Mon Jul 03, 2006 8:05 am Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
SadOldGit wrote:
| Quote: | ...because all the domains that I deal with are hosted in a proper
facility. Why on earth would OP ever want to host *anything* on his own
machine? Where I host (for multiple domains, at about $25 per month) has
four 155Mbps connections, each with a different supplier - how much
would that cost OP?
DNS servers - name servers - are among the least bandwidth hungry and |
bandwidth intensive servers you can mount. When I ran a hosting service,
the oldest and slowest machines were relegated to use as name servers.
There are very GOOD reason to have the locally, if you have to do a lot
of changes to them..like being able to access the machine if it goes
wrong. Remote versus local hosting is a simple and direct cost benefit
analysis with low cost per unit bandwidth at the ISP hub site trading
off against low cost per unit installation and service visit with a
local server.
With the bandwidth being so low, it comes out firmly in favour of local.
However the whole point of a secondary server is to be there if the main
one fails. Having it on the same machine completely defeats the object. |
|
| Back to top |
|
 |
SadOldGit *nix forums beginner
Joined: 17 Jun 2006
Posts: 7
|
Posted: Tue Jul 04, 2006 12:00 am Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
The Natural Philosopher wrote:
| Quote: | SadOldGit wrote:
...because all the domains that I deal with are hosted in a proper
facility. Why on earth would OP ever want to host *anything* on his own
machine? Where I host (for multiple domains, at about $25 per month) has
four 155Mbps connections, each with a different supplier - how much
would that cost OP?
DNS servers - name servers - are among the least bandwidth hungry and
bandwidth intensive servers you can mount. When I ran a hosting service,
the oldest and slowest machines were relegated to use as name servers.
|
Yes Michael, but you still don't distinguish between DNS servers that
seek an IP address in response to a query, and 'Name servers' that
actually provide the response.
| Quote: | There are very GOOD reason to have the locally
|
What are we talking here DNS resolvers or 'Name servers' with MX
records, etc?
Not at all the same thing.
, if you have to do a lot
| Quote: | of changes to them..like being able to access the machine if it goes
wrong. Remote versus local hosting is a simple and direct cost benefit
analysis with low cost per unit bandwidth at the ISP hub site trading
off against low cost per unit installation and service visit with a
local server.
With the bandwidth being so low, it comes out firmly in favour of local.
However the whole point of a secondary server is to be there if the main
one fails. Having it on the same machine completely defeats the object.
|
|
|
| Back to top |
|
 |
SadOldGit *nix forums beginner
Joined: 17 Jun 2006
Posts: 7
|
Posted: Tue Jul 04, 2006 12:11 am Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
Michael Heiming wrote:
| Quote: | In comp.os.linux.setup SadOldGit <sog@linux.bogus>:
Michael Heiming wrote:
In comp.os.linux.setup Wayne <wayne@somedomain.com>:
"Davide Bianchi" <davideyeahsure@onlyforfun.net> wrote in message
news:slrnea4ic8.1bf.davideyeahsure@wrom.onlyforfun.net...
On 2006-06-28, Wayne <wayne@somedomain.com> wrote:
Question: Can one machine act as both the primary and secondary DNS for
[..]
It's generally a good idea two have an secondary off-site DNS, as
well as off site backup MX entry. What about mail for the domain?
The MTA might still be up even if your web server is down, or you
backup MX should just jump in. Ask your ISP, he might offer this
service for his customer more or less for free.
Think about that an error not reaching some http server because
it is down doesn't look as distracting as if the domain isn't
resolvable. Some people might not mention the difference others
might not come back because even DNS doesn't work.
I'd rethink your position.
Good luck
There seems to be a considerable confusion in the thread between DNS,
and 'name servers'.
No there isn't. ;-)
The OP is talking about DNS whilst obviously referring to 'name
servers'. DNS is the Domain Name System - it resolves name queries to IP
addresses - that's what it does. 'Name servers' are sat at the other end
of the chain - they provide the IP addresses - they hold the MX entries,
etc., when queried via the downward hierarchical Domain Name System, a
'name server' will (if it exists) eventually be found to supply the IP
address matching the query, enabling IP datagrams to be routed.
My li'l old P-III 450 is sat there quite content running BIND, and
resolving all my DNS queries for me - I don't recall ever putting any MX
records in there...
As you are just running it as standalone or forwarding DNS
server. A name server can run in this mode or/and be
primary/secondary for one ore multiple domains. Just how you
configured it.
...because all the domains that I deal with are hosted in a proper
facility. Why on earth would OP ever want to host *anything* on his own
machine? Where I host (for multiple domains, at about $25 per month) has
Why not, if you are already authoritative for some domain say
sadoldgit.com you can just configure a new host
"linux.sadoldgit.com" into your dns server and it should be
resolvable from everywhere.
|
Ah, yes indeed - absolutely right. Unfortunately if I configure that on
my own (elderly) linux server, the max bandwidth that I am going to get
is 125K upstream.
So you can setup things faster if you
| Quote: | are running your own authoritative DNS servers, instead of asking
your ISP doing things for you.
|
Yes indeed - but will they actually RUN faster?
| Quote: |
four 155Mbps connections, each with a different supplier - how much
would that cost OP?
Sorry to pick you up on that Michael - I normally find your replies to
be amongst the most informative and polite on any of the newsgroups
where I might be lurking :)
Thx and no problem. Albeit it seems you are a little confused how
DNS works.
|
Na, I do actually know how DNS works - I have used ethereal to analyze
many DNS queries from right here - FFSake, I teach this s**t!!
The DNS howto (www.tldp.org) should have more
| Quote: | information about the matter.
Good luck
Thanks Michael - once again an interesting discussion  |
|
|
| Back to top |
|
 |
Rick Moen *nix forums Guru
Joined: 20 Feb 2005
Posts: 439
|
Posted: Tue Jul 18, 2006 5:58 am Post subject:
Re: DNS - Primary / Secondary on one machine
|
|
|
Wayne <wayne@somedomain.com> wrote:
| Quote: | Question: Can one machine act as both the primary and secondary DNS for a
domain?
|
Have you no pride of workmanship? Also, if any of your domains accept
e-mail, do you really want all incoming mail to immediate start bouncing
instead of queueing up per the normal practice?
Honestly, ask around and find someone else willing to do secondary DNS
for your domain, with you doing the same for his/her domain. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Mon Dec 01, 2008 9:34 pm | All times are GMT
|
|
Modded Xbox | Yugioh | Property for sale in Spain | Bad Credit Mortgages | Home Loan
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|