Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 06:08 PM
Wayne
 
Posts: n/a
Default 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.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 06:08 PM
Davide Bianchi
 
Posts: n/a
Default Re: DNS - Primary / Secondary on one machine

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 06:08 PM
Wayne
 
Posts: n/a
Default 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...
> 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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 06:08 PM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: DNS - Primary / Secondary on one machine

Davide Bianchi wrote:
> 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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 06:09 PM
Michael Heiming
 
Posts: n/a
Default Re: DNS - Primary / Secondary on one machine

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

--
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 06:09 PM
Keith Keller
 
Posts: n/a
Default Re: DNS - Primary / Secondary on one machine

On 2006-06-28, Wayne <wayne@somedomain.com> wrote:
>
> 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 06:09 PM
SadOldGit
 
Posts: n/a
Default Re: DNS - Primary / Secondary on one machine

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

>> 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-18-2008, 06:09 PM
Michael Heiming
 
Posts: n/a
Default Re: DNS - Primary / Secondary on one machine

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. So you can setup things faster if you
are running your own authoritative DNS servers, instead of asking
your ISP doing things for you.

> 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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-18-2008, 06:09 PM
The Natural Philosopher
 
Posts: n/a
Default Re: DNS - Primary / Secondary on one machine

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.

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-18-2008, 06:09 PM
SadOldGit
 
Posts: n/a
Default Re: DNS - Primary / Secondary on one machine

The Natural Philosopher wrote:
> 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.

> 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
> 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.
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553