Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd January 2007, 19:00
showe1966 showe1966 is offline
Member
 
Join Date: Jan 2007
Location: naples italy
Posts: 46
Thanks: 4
Thanked 2 Times in 2 Posts
Default Traditional DNS Howto - NS record question

Hi,
First all apologies for the dumb question- i know not a lot about mail servers and DNS.
I have just one computer to assign a dns to.
I read all about how I should have a backup name server in case the primary server goes down.
So, what do I write in my zones file if I only have one server ?
And, is it okay fro me to host my mail server using an mx record at the same ip address.
my zones file currently looks like this.
I think that the second NS entry is redundant but i don't know:-

@ IN SOA server1.mydomain.com. root.localhost. (
2007010205 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
NS server1.mydomain.com. ; Inet Address of name server 1
NS ns0.mydomain.com. ; Inet Address of name server 2
;

MX 10 server1.mydomain.com.;
MX 20 mail.anotherdomain.com.;
;
mydomain.com. A 88.456.123.46
www A 88.456.123.46

server1 A 88.456.123.46
ns0 A 88.456.123.46

ftp CNAME www.
Reply With Quote
Sponsored Links
  #2  
Old 3rd January 2007, 18:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Quote:
Originally Posted by showe1966
So, what do I write in my zones file if I only have one server ?
Nothing. Just leave out http://www.howtoforge.com/traditional_dns_howto_p8 .
Quote:
Originally Posted by showe1966
And, is it okay fro me to host my mail server using an mx record at the same ip address.
Yes.
Quote:
Originally Posted by showe1966
I think that the second NS entry is redundant but i don't know:-
Yes, you can leave that out. Apart from that, the zone looks fine.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd January 2007, 19:40
showe1966 showe1966 is offline
Member
 
Join Date: Jan 2007
Location: naples italy
Posts: 46
Thanks: 4
Thanked 2 Times in 2 Posts
Default What to put in named.conf in the case of more than 1 dns

Dear Falko,

Thanks very much for your input.
I have another question.
Supposing I want to specify more than one secondary name server, just to make sure everything really stays working.

In order to make sure only my specified name servers can transfer my zone from the primary name server, I guess I need to specify all the ips of my backup nameservers in my named.conf file.

So , what is the format for muliple IPs ?
is it:-

allow-transfer { xx.yy.zz.aa; aa.bb.cc.dd; };
???

I don't fancy guessing, as I heard it's really easy to break BIND.
Reply With Quote
  #4  
Old 4th January 2007, 15:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
 
Default

Quote:
Originally Posted by showe1966
allow-transfer { xx.yy.zz.aa; aa.bb.cc.dd; };
That's right.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Configuration Problems VMartins Installation/Configuration 10 24th July 2007 14:40
ubuntu 6.06 dns question jwan Server Operation 4 22nd December 2006 16:16
Pri & Slave DNS HOWTO (FC4) ppettigrew Suggest HOWTO 0 1st April 2006 15:35
Record DNS brownie Installation/Configuration 7 9th March 2006 08:55
Question about MX record for new site Rocky Installation/Configuration 2 1st December 2005 22:58


All times are GMT +2. The time now is 06:02.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.