• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Nameserver setup

C

carpman

Guest
Hello, despite doing a search and reading the many post on setting up nameservers i am still a little lost!

So i have done/got

servers>dns>DNS zone template

Code:
<domain>.	A	<ip>
	<domain>.	MX (10)	mail.<domain>.
	<domain>.	TXT	v=spf1 +a +mx -all
	<ip> / 24	PTR	<domain>.
	ftp.<domain>.	CNAME	<domain>.
	mail.<domain>.	A	<ip>
	mydomain.net.<domain>.	NS	ns1.mydomain.net.
	mydomain.net.<domain>.	NS	ns2.mydomain.net.
	webmail.<domain>.	A	<ip>
[/code

I have also created the domain mydomain.net

This server is not going to be used to sell any hosting just used for my own domains.

In registrar i have set the name servers for this domain to:
[code]
ns1.mydomain.net.
ns2.mydomain.net.

and entered the two IP that are used by server, the mydomain.net was not created on shared IP but on its own IP, the primary IP for server.

Now when i go to

Home>Domains>mydomain.net>DNS

i see

Code:
*.webmail.mydomain.net.	CNAME	mydomain.net.
	90.192.195.442 / 24	PTR	mydomain.net.
	ftp.mydomain.net.	CNAME	mydomain.net.
	mail.mydomain.net.	A	90.192.195.442
	mydomain.net.	A	90.192.195.442
	mydomain.net.	MX (10)	mail.smaartpublishing.net.
	mydomain.net.	TXT	v=spf1 +a +mx -all
	mydomain.net.mydomain.net.	NS	ns1.mydomain.net.
	mydomain.net.mydomain.net.	NS	ns2.mydomain.net.
	webmail.mydomain.net.	A	90.192.195.442
	www.mydomain.net.	CNAME	mydomain.net.



Now i believe that somewhere i need to setup ns1/ns2.mydomain.net with IP address but not sure where?

any ideas?

cheers
 
Try just before webmail.<domain>.A <ip> in the zone template

ns.<domain>.A <ip>
 
Hello, ok still no go, though did have an issue where the server provider had given incorrect and already allocated second IP. That is now sorted but still can't get server wide name servers working or access default domain.

dsn from server dns settings
Code:
	<domain>.	A	<ip>
	<domain>.	MX (10)	mail.<domain>.
	<domain>.	TXT	v=spf1 +a +mx -all
	<ip> / 24	PTR	<domain>.
	ftp.<domain>.	CNAME	<domain>.
	mail.<domain>.	A	<ip>
	ns1.mydomain.net.<domain>.	A	91.192.195.100
	ns2.mydomain.net.<domain>.	A	91.192.195.101
	mydomain.net.<domain>.	NS	ns1.mydomain.net.
	mydomain.net.<domain>.	NS	ns2.mydomain.net.
	webmail.<domain>.	A	<ip>


dns from the one domain (default) current on server
Code:
*.webmail.domain.net.	CNAME	mydomain.net.
	91.192.195.100 / 24	PTR	mydomain.net.
	ftp.mydomain.net.	CNAME	mydomain.net.
	mail.mydomain.net.	A	91.192.195.100
	mydomain.net.	A	91.192.195.100
	mydomain.net.	MX (10)	mail.mydomain.net.
	mydomain.net.	TXT	v=spf1 +a +mx -all
	mydomain.net.mydomain.net.	NS	ns1.mydomain.net.
	mydomain.net.mydomain.net.	NS	ns2.mydomain.net.
	webmail.mydomain.net.	A	91.192.195.100
	www.mydomain.net.	CNAME	mydomain.net.

dns report show name server IP address is correct.
Code:
Domain NS records  	Nameserver records returned by the parent servers are:

ns1.mydomain.net.   ['91.192.195.100']   [TTL=172800]
ns2.mydomain.net.   ['91.192.195.101']   [TTL=172800]




error from dns report
Code:
Mismatched NS records  	WARNING: One or more of your nameservers did not return any of your NS records.
Error 	DNS servers responded 	ERROR: One or more of your nameservers did not respond:
The ones that did not responded are:
91.192.195.100 91.192.195.101


Missing nameservers reported by your nameservers  	You should already know that your NS records at your nameservers are missing, so here it is again:

ns1.mydomain.net.
ns2.mydomain.net.

note IP and domain details change for post.

cheers
 
try this sequence:

<domain>. A <ip>
<domain>. MX (10) mail.<domain>.
<domain>. TXT v=spf1 +a +mx -all
<ip> / 24 PTR <domain>.
ftp.<domain>. CNAME <domain>.
mail.<domain>. A <ip>
mydomain.net.<domain>. NS ns1.mydomain.net.
mydomain.net.<domain>. NS ns2.mydomain.net.
ns1.mydomain.net.<domain>. A 91.192.195.100
ns2.mydomain.net.<domain>. A 91.192.195.101
webmail.<domain>. A <ip>
 
Actually you can.

Go to the store and pick up this book "DNS and BIND" by O'REILLY. Read it carefully. It is rather thick you will need several cups of coffee.

The ISBN number is ISBN: 1-56592-512-2 \ Cost is $37.95 American for version 3. Get Version 4

you should be good to go after that
 
Back
Top