Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: jeniha on June 12, 2018, 05:40:44 AM

Title: Proper setup for name servers and hostname how?
Post by: jeniha on June 12, 2018, 05:40:44 AM
Proper setup for name servers and hostname how?
What i do, frist i read all tutorials and wiki about that and i do this:
First make domain(site.com)m then i make subdomains ns1.site.com, ns2.site.com and site.site.com
For hostname i use site.site.com
For nameservers i use : ns1.site.com(with my real IP of server) and ns2.site.com(with my real IP of server)
Is it proper configuration and what i missed, bcs for host name still show localhost(our Hostname is: localhost and it resolves to IP: (ERROR: You don't have a valid hostname set!) ?

Thanks for a time.
Title: Re: Proper setup for name servers and hostname how?
Post by: affriedl on March 29, 2019, 04:38:04 PM
Not sure if this still applies to you.  But maybe it will apply properly to others.

NOTE: Replace [domain.com] with your actual domain name.


Hope this helps anyone struggling with DNS setup.
Cheers.
Title: Re: Proper setup for name servers and hostname how?
Post by: neoart on April 05, 2019, 12:22:14 AM
First, suppose you're using some kind of vps!
When you created vps, you had to enter a domain name that will be hosted! your example site.com
With your Domain Name provider, enter for your domain, for example, site.com nameservers from your vps provider.
then with your vps provider you enter, for example, srv1.site.com to create the server name because you need it when installing cwp test your server neme in terminal with
Code: [Select]
hostname and you shuld get some result

After that, you create ns1 and ns2.site.com subdomains with your vps provider. all of these sub domains and srv1 and ns1 and ns2 are set to ip address from the server.
After that, the cwp configures your
Quote
hostname to srv1.site.com
reboot
When registering with cwp log in via srv1.site.com:2030
user root is your password
go to dns settings and change ns1 and ns2 for your record and put ip address form server,
Save the configuration and rebuild all users it is mandatory that Bind can work properly. After that, you have your dns