Author Topic: Having Problems with DNS  (Read 259 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Having Problems with DNS
« on: January 08, 2025, 08:17:10 AM »
Hello everyone. I am having a big problem. This is my first post here. Any help will be appreciated. (Note: domain name and IP is not real)

I bought a new VPS, installed almalinux 8 and CWP to host my wordpress websites. I used mydomain.com to use as nameserver domain using "EDIT Nameserver IPs" in DNS Functions section. So my webserver nameservers setup as
ns1.mydomain.com
ns2.mydomain.com

Before doing that I setup these A records on domain registrar:

TypeNameValue
Awww128.11.11.11
Asrv128.11.11.11
Ans1128.11.11.11
Ans2128.11.11.11
A@128.11.11.11
CNAME*mydomain.com
NSns1ns1.mydomain.com
NSns2ns2.mydomain.com


But unfortunately, wordpress.com and dreamhost and does not accept ns1.mydomain.com and ns2.mydomain.com. They mainly say as error that these host names are not registered. Wordpress.com says:
Quote
"Invalid attribute value [Name servers "ns1.mydomain.com", "ns2.mydomain.com" not found]".
Dreamhost says:
Quote
There were some problems with the nameservers you specified ns1.mydomain.com is not a registered nameserver, ns2.mydomain.com is not a registered nameserver

What am I doing wrong? Can you please help me resolve this problem?

Thanks
« Last Edit: January 08, 2025, 08:36:16 AM by ercios »

Offline
***
Re: Having Problems with DNS
« Reply #1 on: January 08, 2025, 11:49:05 AM »
1. Check WHOIS of your domain and "dig" nameservers used by your domain for the records ns1.mydomain.com, ns2.mydomain.com:

Code: [Select]
dig @dns1.com ns1.mydomain.com
dig @dns2.com ns2.mydomain.com
(look for "answer" section)

replace "dns1.com, dns2.com" with the actual nameservers used by your domain (see WHOIS).

2. If your domain uses your own nameservers "nsX.mydomain.com" then register the nameservers at your registrar.

Offline
*****
Re: Having Problems with DNS
« Reply #2 on: January 08, 2025, 04:11:34 PM »

Offline
*
Re: Having Problems with DNS
« Reply #3 on: January 10, 2025, 09:58:11 AM »
1. Check WHOIS of your domain and "dig" nameservers used by your domain for the records ns1.mydomain.com, ns2.mydomain.com:

Code: [Select]
dig @dns1.com ns1.mydomain.com
dig @dns2.com ns2.mydomain.com
(look for "answer" section)

replace "dns1.com, dns2.com" with the actual nameservers used by your domain (see WHOIS).

2. If your domain uses your own nameservers "nsX.mydomain.com" then register the nameservers at your registrar.

Thanks for the answer. I have done it but I do not get regarding the results shown. You say
Quote
dig @dns1.com ns1.mydomain.com
dig @dns2.com ns2.mydomain.com

That totally makes something like this
dig @ns1.mydomain.com  ns1.mydomain.com
and
dig @ns2.mydomain.com  ns2.mydomain.com

What is the point of this? Sorry I am a newbie. Thanks a lot.

Offline
*
Re: Having Problems with DNS
« Reply #4 on: January 10, 2025, 10:00:00 AM »
Did you glue the DNS names at the registrar of the domain name?

http://www.webdnstools.com/dnstools/articles/glue_records

https://mxtoolbox.com/problem/dns/dns-bad-glue-detected

Reading those 2 links but I don't get anything at all. Can you please simply explain how you can glue mydomain.com at a registrar? Let's say Namecheap. What to do? If you mean adding A records or NS records, at the top of this thread, I listed my DNS records:

Quote
Type   Name   Value
A   www   128.11.11.11
A   srv   128.11.11.11
A   ns1   128.11.11.11
A   ns2   128.11.11.11
A   @   128.11.11.11
CNAME   *   mydomain.com
NS   ns1   ns1.mydomain.com
NS   ns2   ns2.mydomain.com
« Last Edit: January 10, 2025, 10:05:06 AM by ercios »