DNS questions.

Discussion in 'Installation/Configuration' started by Pier-Luc, Jul 21, 2020.

  1. Pier-Luc

    Pier-Luc New Member

    This is a matter that a don't completely understand fully.

    So I have purchased a domain from a domain name provider: "whc.ca", which ask me to enter 3 Name server address. So to be legit, I need 3 computer running a server to be able to redirect a domain to my server? But since my service provider cannot provide me with a static ip address, I'm working with no-ip. Can't I just create 3 no-ip hostnames that will direct my domain to the same IP address? If yes, how does it convert my modem ip to the domain name that I choose? Because the request will get to my modem, will be filtered through my router, but since my server will possibly serve multiple website, how does it know where to go? Is there something that I need to do? I'm so lost with all that DNS stuff... X_X
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Usually two name servers is enough. I bet in this case also. They just let you enter third one if you have that.
    A host that runs as name server must have static IP-address.
    If your IP-numbers are changing often, consider a dynamic name service. Try finding one in country where you live. There is https://dyn.com/ for example.
     
  3. Pier-Luc

    Pier-Luc New Member

    I went with Noip.com and I've already configured the hostname to redirect to my ip address with a Dynamic Update Client. I can access my ISPconfig install remotely by following that link (a good sign).

    I created 3 hostname with them: hote.servehttp.com, hotealt1.servehttp.com and hotealt2.servehttp.com. The 3 domain name are redirected to my ip address, but there is only 1 server listening. When I query my domain "hote.ca" (that I bought with whc.ca) with intodns.org, I get the error that the name server did not respond. However, the server is up and running... And that's where I'm getting more lost... X_X
     
    Last edited: Jul 21, 2020
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    When I check with
    Code:
    $ whois hote.ca | grep "Name Server"
    Name Server: hote.servehttp.com
    Name Server: hotealt1.servehttp.com
    Name Server: hotealt2.servehttp.com
    
    it shows name servers for domain hote.ca are the three hosts you added for your one IP-number.
    But there seems to be no name service running on that host.
    Code:
    $ host hote.ca hote.servehttp.com
    ;; connection timed out; no servers could be reached
    
    Threre is pretty good article in Wikipedia about name service:
    https://en.wikipedia.org/wiki/Domain_Name_System
    Also a good book exists: https://www.oreilly.com/library/view/dns-and-bind/0596100574/
     
  6. Pier-Luc

    Pier-Luc New Member

  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    You should have two separate nameservers on separate networks for redundancy. You can get a cheap VPS from Hetzner for example and set it up as secondary NS. Or get a VPS with hetzner and use their free nameservers (use zone transfer).
     
  8. Pier-Luc

    Pier-Luc New Member

    Looks like you really want me to invest in a VPS ;P It would be a good solution, but I’d rather buy a RPI and use it as a nameserver. Cheaper solution for a startup :) Thanks for the advice.
     
  9. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Normally you just need two dns servers, not three and you don't need to build one since there are a lot of free reliable dns servers that can be used and most of the time domain registrars also provide the same service.

    However, since you have build a server, instead of building another dns server, you can also use a free secondary name servers like the one at afraid.org.

    In any event, it is matter of choice whether cost-wise or reliability-wise or else.

    I personally have tried all but I ended up using cloudflare dns server for all my domains with each domain have their own separate account.
     
  10. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What @ahrasis wrote. Also, if you use noip.com, check if they allow using your own domain, that hote.ca, as the dynamic client domain. Then register hote.ca so that it uses name servers from noip.com and name service should start working. Unless you want to run name service on your own host, this would be straight forward way and easy.
     
    ahrasis likes this.
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    It depends on what you want to run, but if it is a critical application, running it at home is not a good idea. If you use a RPi, run it on a remote location (like a friends house).
     
  12. Pier-Luc

    Pier-Luc New Member

    I'm getting somewhere, I think.
    Intodns.com give me an error about my MX, but I'll check that out later. (Feel free to give me hint if you want :3 )

    Since I have such a good karma with computers, there is always a problem ^-^' The new problem is that when I try to get to hote.ca, I always get "connection timed out" (I think it's a good step forward). I've climbed up the TTL to 14400 on the A zone, but still getting the "connection timed out". Though, on my local network, everything is working fine.

    Weirdly enough, when I tried to build the server on a standard computer, I had the opposite issue. I wasn't able to access the website locally. I had to share my cellphone connection to be able to code. There is surely something I did wrong again... X_X
     
  13. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I think I've said this before, but using the same server and second NS makes no sense and doesn't add any redundancy.

    Also, your mx is pointed to a local IP address, not a public IP address

    Did you forward the necessary ports to your server?
     
  14. Pier-Luc

    Pier-Luc New Member

    I'm still waiting to get internet at the office to transfer the server there. The technician from my ISP is supposed to come in the next few days. The second RPI will be at home. So I'll have the two NS needed. It's only a matter of time.
    But since my public ip address is dynamic, won't it be a problem?

    Yes I did. At least I think that I did forward the good port. I'll give it a second look.

    Thank you :)
     
  15. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    You should never run dns server on dynamic ip for very obvious reasons and the advices given in previous posts by members here about dns server are more than sufficient.

    You may however run web + database server on dynamic ip safely.
     
    Th0m likes this.
  16. Pier-Luc

    Pier-Luc New Member

    Thank you all for your help.

    I understand that I must be an extreme pain in the *** since I'm a turbo noob, and I'm really sorry about that. I'm trying to reach out for help, because as a graphic designer, I'm trying to find a job here in my locality, but there's no agency that wanna give me a chance. So I'm trying really hard to start my own business. What I understand so far is that I need to subscribe to some service somewhere to be able to run my own web service. I thought that it was possible alone without any monthly fee. I'm all starting here from zero. But since it's absolutely impossible without a second dns server for redundancy, that I need to buy somewhere else with a monthly cost, AND having a static ip address, which most service provider don't offer here in Quebec, Canada, I'm wondering how does every hosting company here are able to offer a Canadian hosting service.

    I just want to build websites, and be able to certify myself as a local entrepreneur which offer local web hosting and web development for small to medium business. Looks like my dreams crumbles before me. Everything I'm doing is wrong and impossible.

    Anyway, thank you very much for all your help so far. I'll just stop dreaming and get back to reality.
     
  17. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I mentioned this in post #9 above where there are a lot of free dns services and even free secondary dns server.

    For your personal problem, what you need as a start is just to build web + database for your biz; whereas server email or dns server is not suitable for you to build since you can never build any of them properly using public dynamic ip.

    Actually, you don't even need a web server if you are simply building static web pages as your main biz. Free github.io can be utilized for that purpose with custom domain.

    One should only venture real server biz if one can afford to maintain them for long continous period of time, thus, in my humble opinion, a newbie with lacks of capital to even rent reliable vps for 3-5 years, should not even try this biz.
     
    Last edited: Jul 29, 2020
  18. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    I understand that it's hard to get a job, for sure in these times, but it is not wise to start a commercial hosting service if you don't know what you're doing. Maybe it's a better idea to become a reseller of a hosting provider? Or have your systems set up by a professional sysadmin, who can help you if you are stuck.

    If you run this yourself and mess it up, you will lose clients, which will make business even harder.

    I don't want to go hard on you, I (and the others here aswell) really want to help you.
     
  19. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    These hosting providers can get static IP adresses in a datacenter, but not for home connections.

    Never stop dreaming, as I stated in my other post, this doesn't have to be a dead end. :)
     
    Pier-Luc likes this.

Share This Page