Results 1 to 9 of 9

Thread: Domains, DNS and name servers, HELP!

  1. #1
    Registered+
    Join Date
    Sep 2003
    Posts
    27
    Thanks
    0
    Thanked
    0 times in 0 posts

    Domains, DNS and name servers, HELP!

    Right there is a little thing i do not understand (As i have never come accross it before).

    I have bought a domain, for example www.example.com

    Now if i have 3 servers that i want to be accessable on the net for example

    www.example.com - Web page
    terminal.example.com - Terminal Services Server
    mail.example.com - E-Mail

    Do install a DNS server on the server that resolves to example.com, then in that add entrys for

    terminal.example.com
    mail.example.com

    in MY DNS Server? Then as long as the servers all have puplic IP's it will work??

  2. #2
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts
    Erm, I aren't sure, but you should usually get your domain registrar to set that domain to point to whatever IP the server uses.

    I'm afraid I'm not up on subdomains, so I can't give you any more advice.
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  3. #3
    Ex-MSFT Paul Adams's Avatar
    Join Date
    Jul 2003
    Location
    %systemroot%
    Posts
    1,926
    Thanks
    29
    Thanked
    77 times in 59 posts
    • Paul Adams's system
      • Motherboard:
      • Asus Maximus VIII
      • CPU:
      • Intel Core i7-6700K
      • Memory:
      • 16GB
      • Storage:
      • 2x250GB SSD / 500GB SSD / 2TB HDD
      • Graphics card(s):
      • nVidia GeForce GTX1080
      • Operating System:
      • Windows 10 x64 Pro
      • Monitor(s):
      • Philips 40" 4K
      • Internet:
      • 500Mbps fiber
    First off, just a minor correction - in your example the domain is example.com, not www.example.com

    The people who registered your domain are most likely listed as the start of authority and have the ability to modify the DNS records for you.

    The hosts "www" and "terminal" would be 'A' records and allow the hostnames www.example.com and terminal.example.com to resolve to IP addresses respectively - depending on the value of the record.

    Mail is a little different - you need an MX record to indicate where mail for your domain is routed to, this can either be an IP address directly or a host name (which would require another 'A' record).
    You can have more than 1 MX record if required.

    Examples work best:

    example.com
    www A 12.34.56.78
    terminal A 87.65.43.21
    mail A 12.12.12.12
    MX mail.example.com


    www.example.com resolves to 12.34.56.78
    terminal.example.com resolves to 87.65.43.21

    Mail for your domain is sent to mail.example.com, which resolves to 12.12.12.12


    Your domain hosting company should be able to sort this out for you - a lot of hosting companies have web-based interfaces so you can do a great deal of it yourself.

    Remember, these IP addresses must be public ones, don't try putting 192.168.x.x or 10.x.x.x addresses in there, noone will be able to route to you


    If you want to have your own DNS server, then your domain record needs to reflect this by an 'NS' (name server) record.
    If you don't know a great deal about DNS I would strongly recommend avoiding this.

    HTH
    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    PC: Win10 x64 | Asus Maximus VIII | Core i7-6700K | 16GB DDR3 | 2x250GB SSD | 500GB SSD | 2TB SATA-300 | GeForce GTX1080
    Camera: Canon 60D | Sigma 10-20/4.0-5.6 | Canon 100/2.8 | Tamron 18-270/3.5-6.3

  4. #4
    Registered+
    Join Date
    Sep 2003
    Posts
    27
    Thanks
    0
    Thanked
    0 times in 0 posts
    See i have bought the domain, and its hosted with them (Currently) I said i wanted to host the site on my servers and want them to change the DNS to the IP of my Server. They said they can do this, but they want the Primary and Secondary Name servers IP's to do this. This is what has confussed me.

  5. #5
    Ex-MSFT Paul Adams's Avatar
    Join Date
    Jul 2003
    Location
    %systemroot%
    Posts
    1,926
    Thanks
    29
    Thanked
    77 times in 59 posts
    • Paul Adams's system
      • Motherboard:
      • Asus Maximus VIII
      • CPU:
      • Intel Core i7-6700K
      • Memory:
      • 16GB
      • Storage:
      • 2x250GB SSD / 500GB SSD / 2TB HDD
      • Graphics card(s):
      • nVidia GeForce GTX1080
      • Operating System:
      • Windows 10 x64 Pro
      • Monitor(s):
      • Philips 40" 4K
      • Internet:
      • 500Mbps fiber
    Hmm, sounds like you would be well to transfer the domain to someone who allows you to modify your domain records directly.

    I use www.123-reg.co.uk, they have a web-based control panel so you can just set up the records yourself, they have a pretty good FAQ section - here's their page on DNS stuff.
    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    PC: Win10 x64 | Asus Maximus VIII | Core i7-6700K | 16GB DDR3 | 2x250GB SSD | 500GB SSD | 2TB SATA-300 | GeForce GTX1080
    Camera: Canon 60D | Sigma 10-20/4.0-5.6 | Canon 100/2.8 | Tamron 18-270/3.5-6.3

  6. #6
    Registered+
    Join Date
    Sep 2003
    Posts
    27
    Thanks
    0
    Thanked
    0 times in 0 posts
    i bought another domain with 123-reg, and they are much better, i actually have DNS controlls!!!!

  7. #7
    Registered+
    Join Date
    Mar 2004
    Posts
    18
    Thanks
    0
    Thanked
    0 times in 0 posts
    Just out of interest, I've got a domain name pointing to my web server at home, through www.zoneedit.com, who supply free DNS services. Basically you run a piece of software which updates zoneedit with your current IP address and as such your domain name can point to anywhere you wish it to.

  8. #8
    daft ideas inc. scottyman's Avatar
    Join Date
    Jul 2003
    Location
    Charming and Exotic Bracknell
    Posts
    1,576
    Thanks
    2
    Thanked
    3 times in 3 posts
    I'm with welly on this one - depending on your router, it may also support other free dynamic dns servers such as dyndns or free-ip
    i've been using dyndns for the last few years, and every time my router's ip changes, it changes at dyndns so I don't lose any spam!

  9. #9
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable
    Quote Originally Posted by ripsaw82
    See i have bought the domain, and its hosted with them (Currently) I said i wanted to host the site on my servers and want them to change the DNS to the IP of my Server. They said they can do this, but they want the Primary and Secondary Name servers IP's to do this. This is what has confussed me.
    Basically, the people you registered your domain from will forward DNS requests to your domain to your own DNS servers (other words they will host the NS records), they will add the forwarding records to their DNS servers, and your own DNS server will deal with the A and MX records (Host to IP resolution, and mail exchange server).. also make sure you contact the ISP/Lease provider hosting the servers to update their PTR records (IP to Host resolution) for consistancy.

    Heres what happens.. client X opens his browser and types 'www.example.com'.. his browser asks his ISP's DNS server if it knows this domain, and the likelyhood is no.. so it connects to the .com root server and fetches a list of DNS servers.. it checks with each DNS server for the existance of example.com domain, when it finds it it will use the NS record to connect to and asks your DNS server what is the ip of www.example.com.. his ISP caches this new DNS information and sends the resolved IP number to the client, which allows X to connect to your webserver.

    I could explain the exact process in greater detail however it would likely to leave more confused than when you started reading lol. I hope this is clear enough.

    But that is it in a nutshell, if your really going to get into DNS in a big way you should probibly buy a book on BIND, or try experimenting with BIND on a *NIX box. man bind is a great help, and google is your friend as always.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •