In a small server environment it is often easier to set DNS manually on the few servers that you have, rather then set up a full fledged DNS server.
This video shows you how to manually set DNS on CentOS 7.
To see how to manually set a IP address on CentOs you can watch this video:
• CentOS 7 Tutorial: static IP Address ...
If you are unsure on ho to use vi you can watch this video here:
• How does VI work