arrow_upward

Pages (2):
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DNS Management
#1
Smile 
Hello Guyz, I am newbie to the linux.I got a VPS from the Post4VPS community.I have installed Ubuntu 16.I want to multiple websites.I searched out google for help.I have successfully installed Apache2, MySql and PhpMyAdmin.I have installed a mybb script in a sub directory and a simple php file for testing.I want to attach both of these installations with different domains.I searched out google and found bind9.I am unable to configure it.I watched some tutorials at y*****e, but they use bind9 for only 1 website.I want to point two domains with two different installations.When i configure bind9 a question come in my mind.
If i make a installation in a directory how can i manage dns for it? Because the videos which i watched they use IP of Server with the name server.If i create a nameserver for default directory. How will i manage the nameserver for the other directory? IP is always same and they use IP with the nameserver? I am confused what to do?  Undecided
#2
Don't run your own NS servers to host websites with your domains. For a total beginner like you this is not a good idea at all. Especially bind is absolutely not beginner friendly. A space more or less at the wrong place and nothing works. Configuration is absolutely not user friendly.

Use a service such as CloudFlare, 1984.is, Hurricane DNS and similar. Just register a free account, add your domain there and use the provided name servers to point your domain at your registrar page to teh DNS service you signed up for. After that you can start creating DNS records for your domains.

So to use the domain with your VPS you simply create A records with IPv4 addresses and the hostname you want.


For a beginner I would recommend CloudFlare since they offer free unlimited DNS zones, with unlimited DNS records per zone and anycast DNS servers. A web interface is available for configuration and it's easy to use. So CloudFlare offers a pretty good service for free. In addition you get free CDN service (which you can disable if you want, by making the clouds at the DNS records overview table grey).

Look at their tutorials to find out how to create DNS records on their service:
- https://support.cloudflare.com/hc/en-us/...-A-records-
- https://support.cloudflare.com/hc/en-us/...AA-records- (if you have IPv6 addresses, too)



The next step is to create vHosts in Apache with the right domains for the server names. This is how the server will known which website to display when opening a domain that is pointed to your server.

[Image: zHHqO5Q.png]
#3
I agree with @"Hidden Refuge". In addition, if you don't know what you are doing with DNS, particularly with Bind, you could become a victim of exploits very easy. People can use your DNS to attack other sites and before you know it your VPS is suspended. Through no fault of your own. It's always the best advice not to play around with DNS and to follow what others are doing until you are a specialist yourself.

What I do for myself is to use VestaCP panel with Namecheap for name servers. I've heard excellent reports about Cloudflare, but perhaps because I'm at a distance from their hubs, I'm one of the rare exceptions who haven't done well with Cloudflare. So what I do is to create two name servers with my Namecheap domain ns1.domain.com and ns2.doman.com. One can do it in the Advanced DNS tab of a Namecheap domain. Namesilo also allows one to create two name servers out of one IP. I then use VestaCP that has set up everything to work perfectly with Named. One doesn't have to fiddle with anything as it's already perfectly created for you. All I do with the install command of VestaCP is to add the primary domain as the host name. And then in the VestaCP panel it is very easy to add on domains. You need to add your name servers when you launch the panel and after that it is very easy to add on domains when you add websites to your VPS.
Terminal
Thank you to Post4VPS and VirMach for my awesome VPS 9!  
#4
(06-22-2018, 02:27 PM)deanhills Wrote: In addition, if you don't know what you are doing with DNS, particularly with Bind, you could become a victim of exploits very easy. People can use your DNS to attack other sites and before you know it your VPS is suspended.

Totally agree here with you. NS servers if configured wrong are a powerful (D)DoS weapon and they're quickly abused for that by automated bots just looking for find a misconfigured server. This will get you quickly suspended and thrown off a provider.

@Rehan

DNS amplification attack is a key term you want to look up if you want to know what the dangers of misconfigured NS servers are.

CloudFlare has bit of stuff to read about it, too Smile. They literally have everything around DNS that happened in the last years since they started business.

- https://www.cloudflare.com/learning/ddos...os-attack/
- https://www.us-cert.gov/ncas/alerts/TA13-088A
[Image: zHHqO5Q.png]
#5
Seems like you are a beginner, if you are up for hosting websites then the best suggestion is to go for hosting with a control panel. It would be also good to install a free panel such as VestaCP which will make your life easier.
#6
Thanks a lot for the information both of you. Especially @Hiden Refuge , I have removed the bind9.Now i am going to try cloud flare.
I shall post here if i face any problem during this.
#7
@Rehan : if you try to use freenom or namecheap domains. don't forget to get register your domain on cloudflare. even a free service. it will be the first step to be safe from unknown traffic. or DDos.
Heart LOVE FOR ALL  HATRED FOR NONE Heart
#8
If you want to setup for your own nameserver, VestaCP can manage it.
You can use it, and it's easier than you should doing it with terminal (or too lazy for it, like me).

Installation guide: https://freevps.us/thread-21729.html (This one really clear to read, really easy to follow.)
To setup your own NS, use this: https://vestacp.com/docs/#how-to-setup-v...ameservers

And you're good to go.

Btw, I found Cloudflare + VestaCP is a good idea. Cloudflare automatically scan your DNS, so you don't need to input it manually. (And VestaCP adds it automatically.)
#9
Or you can also use Cyber Panel, looks like very easy to use. Installed it with one command and was able to set it up with private name servers so fast.
#10
Plesk Panel is very easy to use and it comes with what you are looking for!
Thank you VPSlices and Post4VPS for your beautiful VPS!
Pages (2):


Possibly Related Threads…
Thread
Author
Replies
Views
Last Post

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting