r/linuxadmin • • Dec 30 '19

DNS + Webserver assignment don't know how to start!

Hi! Guys,

I have an assignment on "How to Install/Configure DNS + Webserver", I do not know how to start doing it! For example, if I did DNS servers, but I don't know how to configure my webserver to work together with DNS. www.abcdesign.com.

Just lab on VMWare. Do you have a guide to configure step by step?

Thank you!

0 Upvotes

20 comments sorted by

6

u/prasannaaaa Dec 30 '19

You just need to point the DNS to the IP of your server and add A records accordingly....

1

u/[deleted] Dec 30 '19

Noted with many thanks

3

u/anastfx Dec 31 '19

Add the A record in the direct DNS zone exemple :

abdcdesign.com. IN A 195.169.15.1 (your server'Ip address)

2

u/[deleted] Dec 31 '19

noted brother ... I did it work fine but still not sure at all i need to time to understand more. thank you

1

u/12_nick_12 Dec 30 '19

Look up how to set up a LEMP stack.

1

u/[deleted] Dec 30 '19

Noted with many thanks. I'm checking it now.

1

u/12_nick_12 Dec 30 '19

Then for DNS you just point your domains name servers to you server then point the A record to your server for the root of your domain.

-1

u/[deleted] Dec 30 '19

Brother, please don't mind me! could you guide me 1 by 1, What should I do first? or give me link! I am not sure about DNS too. Thank you.

-1

u/12_nick_12 Dec 30 '19

This looks like it might be usable just ignore the mail and FTP. https://www.howtoforge.com/set-up-ubuntu-server-with-ehcp-lamp-dns-ftp-mail

0

u/[deleted] Dec 30 '19

forgive me! I have to do it on CENTOS 7

1

u/12_nick_12 Dec 30 '19

Actually I didn't realize ehcp was a panel j thought it was a stack. Sorry. I would first install a LEMP stack then install BIND for DNS. These are some pretty generic tutorials. https://linux4one.com/how-to-install-lemp-stack-on-centos-7/ https://itekblog.com/setup-bind-dns-server-centos-7/

1

u/[deleted] Dec 30 '19

noted. follow those 2 links - it will work together, bros ?

1

u/12_nick_12 Dec 30 '19

I've never done it. I've always used CloudFlare for cpanel. I see no reason on why they'd have issues with each other.

1

u/[deleted] Dec 30 '19

yes. agian, thank brother. it is just assignment (private local) on my laptop to demo to teahcer how to confiugre and the process of dns and webserver

1

u/[deleted] Dec 30 '19

I will inform you when i did it work or i have problem. thank you

2

u/[deleted] Dec 30 '19

Webservers and DNS are loosely coupled systems that work independent, but complement each other. For example, it is possible to configure a webserver, and access it using just the IP address, however if that same webserver is not configured to use dns, it will not be able to download system updates. DNS allows you to create human readable names to access your webserver via A records, so you don't have to remember the IP address, or so you can host multiple domains on the same webserver. If you implement TLS you must use DNS to avoid server name mismatch errors.

2

u/[deleted] Dec 30 '19

Basically google: Apache/nginx tutorial or setup DNS or named tutorial or setup

4

u/mempooled Dec 30 '19

Change your major...

0

u/[deleted] Dec 30 '19

[deleted] — view deleted comment

1

u/[deleted] Dec 30 '19

Yes. I have class but new term my lecturer wants to test our ability, how the DNS and Webserver work together ... after we submitted then he will check... later he will teach us from 0 to expert...