Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2008
    Posts
    186
    Rep Power
    7

    First time hosting DNS


    Hi, I have a domain at which I am trying to create name servers for, having never hosted DNS before, I am not sure what is required here for these name servers to resolve.
    I have a few questions

    1. Is there a minimum of records that must be created in order for my records to be accepted by the global domain registrar? ie 1xMX record, 2xNS records, 2xA records etc?

    2. Do I setup the NS2 zone as a primary zone or a secondary zone (windows server 2008 DNS)?

    3. Lastly, with the configuration shown below, why is my domain name not propogating with whatsmydns.net propogation check.

    4. Also, the SOA records. Do I need to specify ns1.megahosting.co.nz for both zones SOA?

    Thanks alot guys!


    NS1.MEGAHOSTING.CO.NZ (NS1) (Primary)
    $ttl 14400

    megahosting.co.nz. IN SOA ns1.megahosting.co.nz. root.megahosting.co.nz.
    (
    1211542297 ; Serial in YYYYMMDDXX (XX is increment)
    10800; refresh seconds
    3600; retry
    604800; expire
    38400; minimum
    );

    megahosting.co.nz. IN A 101.98.172.85

    megahosting.co.nz. IN NS ns1.megahosting.co.nz.
    megahosting.co.nz. IN NS ns2.megahosting.co.nz.

    megahosting.co.nz. IN MX 1 mail.megahosting.co.nz.

    ns1.megahosting.co.nz. IN A 101.98.172.85
    ns2.megahosting.co.nz. IN A 122.61.186.232

    www IN A 101.98.172.85
    ftp IN A 101.98.172.85
    mail IN A 101.98.172.85


    NS2.MEGAHOSTING.CO.NZ (NS2) (SECONDARY)

    $ttl 14400
    megahosting.co.nz. IN SOA ns2.megahosting.co.nz. root.megahosting.co.nz.
    (
    1211542297 ; Serial in YYYYMMDDXX (XX is increment)
    10800; refresh seconds
    3600; retry
    604800; expire
    38400; minimum
    );

    megahosting.co.nz. IN NS ns1.megahosting.co.nz.
    megahosting.co.nz. IN NS ns2.megahosting.co.nz.

    ns2.megahosting.co.nz. IN A 122.61.186.232
  2. #2
  3. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,103
    Rep Power
    5049
    You need 2 NS records min.

    As for your domain not propogating, have you added both NS records over at the domain registrar?
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2012
    Location
    Australia
    Posts
    6
    Rep Power
    0

    How To Change Your DNS


    I agree with Hiker, just to clarify what needs to be done.

    You brought a domain name and got an account with them.

    You joined a web host company and they have set DNS that you need to copy into your domain name account. Two of them are given to you in a email intro when you join the web host company.

    Put the new DNS settings into your domain name account, look around for existing settings and change them.

    Takes anything from 2 hours to 48 hours for new settings to upgrade and display your new web pages.

    Be patient

    Hope this helps!
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2008
    Posts
    186
    Rep Power
    7
    Thanks for your replys guys!

    With the above settings, it appears the records have all propgated now?

    As for my domain name company, delegating my own name servers automatically creates a entry with the global domain registrar, which i have done

    As for hosting, im running a hosting company (megahosting.co.nz) so im hosting my own site. These are the name servers i need to issue my customers!


    If i check the propogation on the NS records, i get both ns1 and ns2 which is good, however when i do a nslookup megahosting.co.nz it just gives me a IP, it doesnt list the name servers?

    And one more thing. My MX records are only updating with about 3 domain registrars.

    Thanks guys!!
  8. #5
  9. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,424
    Rep Power
    4539
    You may need to create glue records if they weren't automatically created when you delegated the ns.
    ======
    Doug G
    ======
    The man who doesn't read good books has no advantage over the man who can't read them.
    --Mark Twain
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2008
    Posts
    186
    Rep Power
    7
    Ok thanks guys

    this is weird as.

    The propogation keeps changing. One minute its propogated with the world, the next minute only 3 registrars?

    any ideas? this is weird.
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2008
    Posts
    186
    Rep Power
    7
    Guys, i really need help with this

    1 minute my domain works, the next minute its not working.

    The propogation keeps changing which registrars its updated.

    Any ideas??

    Cheers
  14. #8
  15. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,103
    Rep Power
    5049
    Originally Posted by onlinegamesnz
    Guys, i really need help with this

    1 minute my domain works, the next minute its not working.

    The propogation keeps changing which registrars its updated.

    Any ideas??

    Cheers
    A secondary is a copy of the primary. It is used in case the primary goes down. You only have ns2 listed in the secondary, which is probably why the server does not always seem to be up.

    Since this is your first time hosting DNS, start simple and then expand.

    The first thing I would do is to eliminate the secondary altogether temporarily. Get the primary working, and then work on the secondary. As you go through the steps needed to get your primary and secondary working, you will be able to see at which point things stop working. This will help you figure out what you need to do (or fix) as you continue on.

    Start with this:
    $ttl 38400

    megahosting.co.nz. IN SOA ns1.megahosting.co.nz. root.megahosting.co.nz.
    (
    2012040401 ; Serial in YYYYMMDDXX (XX is increment)
    10800; refresh seconds
    3600; retry
    604800; expire
    38400; minimum
    );

    megahosting.co.nz. IN A 101.98.172.85
    www.megahosting.co.nz. IN A 101.98.172.85
    ftp.megahosting.co.nz. IN A 101.98.172.85
    mail.megahosting.co.nz. IN A 101.98.172.85
    ns1.megahosting.co.nz. IN A 101.98.172.85
    ns2.megahosting.co.nz. IN A 101.98.172.85

    megahosting.co.nz. IN NS ns1.megahosting.co.nz.
    megahosting.co.nz. IN NS ns2.megahosting.co.nz.

    megahosting.co.nz. IN MX 1 mail.megahosting.co.nz.
    (I changed the relatives to absolute, as I have seen problems before in using relatives, although it's not always that common).

    Both NS records above reflect the same IP. As I mentioned, get the primary working first. As soon as this works, then create the secondary zone (which is a read-only copy of the primary). Change the NS2 to the new IP, etc.
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2008
    Posts
    186
    Rep Power
    7
    [IMG]Thanks for your help on this! Its really annoying as i really need my site up! any down time is loss is customers!

    Im going to include 2 attachment of my NS1 server and NS2 server, as im not sure what needs to differ in the records. IE, ns1.megahosting.co.nz wont also have the www, ftp, mail records etc, correct?

    also, is it required by the registrar to have a PTR record?

    and lastly, you mentioned just working with the primary name server, ns1.megahosting.co.nz

    if i understood correctly, i was told that for my name servers to propogate correctly, it needs BOTH name servers to be active.

    And just thinking about it, i also recall that i must have a static IP, my IP is NOT static, however it never changes. Does this matter.

    Please answer all my questions!

    Thanks so much for your help guys!


    NS1.megahosting.co.nz


    NS2.megahosting.co.nz
  18. #10
  19. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,103
    Rep Power
    5049
    Originally Posted by onlinegamesnz
    [IMG]
    Im going to include 2 attachment of my NS1 server and NS2 server, as im not sure what needs to differ in the records. IE, ns1.megahosting.co.nz wont also have the www, ftp, mail records etc, correct?
    Nothing needs to differ. A Slave (or secondary) is a copy of the Master (or primary). Think of it this way. If your primary server goes down, it looks at your secondary. Which in this case is the one for ns2. But all that is listed there is ns1 and ns2 listings. Then what? It has no idea what else to do because there are no other A records listed.

    also, is it required by the registrar to have a PTR record?
    Required, no.

    and lastly, you mentioned just working with the primary name server, ns1.megahosting.co.nz

    if i understood correctly, i was told that for my name servers to propogate correctly, it needs BOTH name servers to be active.
    2 nameservers are required for the rfc, but right now you have nothing working. So having 1 NS working is better than having 2 not working, right?

    This was more of a suggestion just to help you figure out the problem easier. We can continue getting both set up at the same time. Since we are not always on here, or while you are waiting on a reply, you can work on just 1 to see if you can get it working. But try what I suggested in this thread first. Make sure you restart the DNS service after any changes.

    And just thinking about it, i also recall that i must have a static IP, my IP is NOT static, however it never changes. Does this matter.
    Domains refer to IP's. Whether it's static or dynamic doesn't matter. Static is "recommended"; not "required". The problem with most that try and run DNS on dynamic is that the IP may change. If it does, then they have to redo their DNS (or use a third party program/script that will automatically update DNS entries upon IP change.)

    If your IP never changes, then it's as if you have a static and you'll be fine.
    Last edited by hiker; April 5th, 2012 at 09:00 AM.
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
  20. #11
  21. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2008
    Posts
    186
    Rep Power
    7
    Thanks Hiker, this answers alot of questions for me.

    I still have the issue however of my DNS working sometimes and then other times not.

    It seems most of the time the www record works fine, www.megahosting.co.nz and not the root record. Also nothing looks good on whatsmydns.net

    Thanks!
  22. #12
  23. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,103
    Rep Power
    5049
    The correct nameservers / IP's are listed at the registrar?

    With changes you have made:
    - Can you post back your 2 zone files
    - Did you restart your DNS once you made any changes
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
  24. #13
  25. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2008
    Posts
    186
    Rep Power
    7
    Originally Posted by hiker
    The correct nameservers / IP's are listed at the registrar?

    With changes you have made:
    - Can you post back your 2 zone files
    - Did you restart your DNS once you made any changes
    Thanks, here are my zone files. I didnt restart DNS but reloaded the zone.


    ;
    ; Database file megahosting.co.nz.dns for megahosting.co.nz zone.
    ; Zone version: 15
    ;

    @ IN SOA ns1.megahosting.co.nz. root.megahosting.co.nz. (
    15 ; serial number
    900 ; refresh
    600 ; retry
    86400 ; expire
    3600 ) ; default TTL

    ;
    ; Zone NS records
    ;

    @ NS ns2.megahosting.co.nz.
    @ NS ns1.megahosting.co.nz.

    ;
    ; Zone records
    ;

    @ A 101.98.172.85
    ftp A 101.98.172.85
    imap A 101.98.172.85
    mail A 101.98.172.85
    MX 10 mail.megahosting.co.nz.
    ns1 A 101.98.172.85
    ns2 A 122.61.186.232
    pop3 A 101.98.172.85
    smtp A 101.98.172.85
    www A 101.98.172.85


    ------------------------------------------------------------

    ;
    ; Database file megahosting.co.nz.dns for megahosting.co.nz zone.
    ; Zone version: 8
    ;

    @ IN SOA ns2.megahosting.co.nz. hostmaster. (
    8 ; serial number
    900 ; refresh
    600 ; retry
    86400 ; expire
    3600 ) ; default TTL

    ;
    ; Zone NS records
    ;

    @ NS ns2.megahosting.co.nz.
    @ NS ns1.megahosting.co.nz.

    ;
    ; Zone records
    ;

    ns1 A 101.98.172.85
    ns2 A 122.61.186.232


    Thanks!
  26. #14
  27. They're coming to take me away

    Join Date
    Jan 2005
    Location
    Florida
    Posts
    5,103
    Rep Power
    5049
    Both zone files still look different. Both zones need to have the same data. The secondary is a copy of the primary.
    "I don't need to get a life. I'm a gamer. I have lots of lives!"
  28. #15
  29. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2008
    Posts
    186
    Rep Power
    7
    thanks, i really appreciate your help with this!!

    heres my new new zone files.

    NS1 (primary)

    ;
    ; Database file megahosting.co.nz.dns for megahosting.co.nz zone.
    ; Zone version: 21
    ;

    @ IN SOA ns1.megahosting.co.nz. root.megahosting.co.nz. (
    21 ; serial number
    900 ; refresh
    600 ; retry
    86400 ; expire
    3600 ) ; default TTL

    ;
    ; Zone NS records
    ;

    @ NS ns1.megahosting.co.nz.
    @ NS ns2.megahosting.co.nz.

    ;
    ; Zone records
    ;

    @ A 101.98.172.85
    ftp A 101.98.172.85
    imap A 101.98.172.85
    mail A 101.98.172.85
    mx1 MX 10 megahosting.co.nz.
    mx2 MX 10 megahosting.co.nz.
    ns1 A 101.98.172.85
    ns2 A 122.61.186.232
    pop3 A 101.98.172.85
    smtp A 101.98.172.85
    www A 101.98.172.85


    NS2

    ;
    ; Database file megahosting.co.nz.dns for megahosting.co.nz zone.
    ; Zone version: 17
    ;

    @ IN SOA ns2.megahosting.co.nz. hostmaster. (
    17 ; serial number
    900 ; refresh
    600 ; retry
    86400 ; expire
    3600 ) ; default TTL

    ;
    ; Zone NS records
    ;

    @ NS ns1.megahosting.co.nz.
    @ NS ns2.megahosting.co.nz.

    ;
    ; Zone records
    ;

    @ A 101.98.172.85
    ftp A 101.98.172.85
    imap A 101.98.172.85
    mail A 101.98.172.85
    mx1 MX 10 megahosting.co.nz.
    mx2 MX 10 megahosting.co.nz.
    ns1 A 101.98.172.85
    ns2 A 122.61.186.232
    pop3 A 101.98.172.85
    smtp A 101.98.172.85
    www A 101.98.172.85

    another quick question, does the MX record need to point to my FQDN (megahosting.co.nz) or to a A host (mail.megahosting.co.nz)

    thanks
Page 1 of 2 12 Last
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo