Learn about Centmin Mod LEMP Stack today
Register Now

Sysadmin can't resolve hostname

Discussion in 'System Administration' started by PeppaPigKilla, Dec 22, 2016.

  1. PeppaPigKilla

    PeppaPigKilla Member

    43
    12
    8
    Dec 21, 2016
    Ratings:
    +13
    Local Time:
    10:53 AM
    1.11.7
    10.0.28-MariaDB
    Hi people

    I have my domain all setup beautifully, even had namecheaps support whilst doing it as its first time ive used this sort of system.

    However, i cannt resolve dns even though all is setup fine. This is a test domain im using,http://r6hq.com/ , i have created the right setup for it in centmin option 2.

    What could i be doing wrong ?

    I have never used nginx before.
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    8:53 PM
    Nginx 1.13.x
    MariaDB 5.5
  3. PeppaPigKilla

    PeppaPigKilla Member

    43
    12
    8
    Dec 21, 2016
    Ratings:
    +13
    Local Time:
    10:53 AM
    1.11.7
    10.0.28-MariaDB
    set up by me at my registrar with the support of them www.digitalwarhound.com works

    works on my mac but not my pc. flushing

    edit. So that doesnt work anymore.

    I did make a change though since that worked which is adding a subdomain.

    I'm not sure if i did this right.

    Code:
    $TTL 14400
    @       IN      SOA     ns1.digitalwarhound.com.      hostmaster.digitalwarhound.com. (
                                                    2010091500
                                                    14400
                                                    3600
                                                    1209600
                                                    86400 )
    
    ; Nameservers
    digitalwarhound.com.       14400   IN      NS      ns1.digitalwarhound.com.
    digitalwarhound.com.       14400   IN      NS      ns2.digitalwarhound.com.
    
    ; A Records
    digitalwarhound.com.       14400   IN      A       149.202.223.191
    ftp                     14400   IN      A       149.202.223.191
    localhost       14400   IN      A       127.0.0.1
    mail            14400   IN      A       149.202.223.191
    ns1                     14400   IN      A       149.202.223.191
    ns2                     14400   IN      A       149.202.223.191
    pop                     14400   IN      A       149.202.223.191
    smtp            14400   IN      A       149.202.223.191
    www                     14400   IN      A       149.202.223.191
    community.digitalwarhound.com                     14400   IN      A       149.202.223.191
    
    ; MX Record
    digitalwarhound.com.       14400   IN      MX      10 mail
    
    ; TXT Record (for SPF)
    digitalwarhound.com.       14400   IN      TXT     "v=spf1 a mx ip4:149.202.223.191 ~all"
    
    I got this information off this thread.

    Domains - setup for subdomains
     
    Last edited: Dec 22, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    8:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    you hosting dns locally via NSD on centmin mod ? or the above zone entries from your domain registrar ?

    FYI OVH blocks DNS port 53 on game server range so NSD local hosting via Centmin Mod won't work apparently. @Matt reported this issue
     
  5. PeppaPigKilla

    PeppaPigKilla Member

    43
    12
    8
    Dec 21, 2016
    Ratings:
    +13
    Local Time:
    10:53 AM
    1.11.7
    10.0.28-MariaDB
    they are from my registrar. its the premium dns they offer.

    the ip shows up fine in browser.
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    8:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah ip should be fine, it's your registrar nameservers and dns not working so it can't translate the domain to the corresponding ip address A record

    Trust me for reliability and peace of mind just use cloudflare's free dns :)
     
  7. PeppaPigKilla

    PeppaPigKilla Member

    43
    12
    8
    Dec 21, 2016
    Ratings:
    +13
    Local Time:
    10:53 AM
    1.11.7
    10.0.28-MariaDB
    I did try cloudfare first time around but it didnt work, or more probably i did it wrong.
    I will giv eit another shot.

    Should i add the records here into cloudfare ?
    can't resolve hostname

    Also is that link right for adding subdomain ?
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    8:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    subdomain is like any other one existing ones
    Code (Text):
    community                 14400   IN      A       149.202.223.191
    

    and yes add the entries into cloudflare dns and make sure to update domain at domain registrar to point to cloudflare nameservers
     
    • Informative Informative x 1
  9. PeppaPigKilla

    PeppaPigKilla Member

    43
    12
    8
    Dec 21, 2016
    Ratings:
    +13
    Local Time:
    10:53 AM
    1.11.7
    10.0.28-MariaDB
    We have lift off.

    Learning curve for me thats for sure, again thanks for your patience.
    Now to install xenforo
     
    • Like Like x 1
  10. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    8:53 PM
    Nginx 1.13.x
    MariaDB 5.5
    Glad to hear :)