Hostname and error on some DNS entries

jdn1976

Verified User
Joined
Mar 30, 2020
Messages
107
Hello, I have setup a new server, because the VPS was blocking some ports. Anyway, I already installed the server setup the server (not a VPS), but it is showing some two odd things:

hostname
when I type on ssh hostname -f is showing the correct hostname that I have configured. But if I type ping domain.tld is showing a different hostname.
Any ideas what could be?

Second: dns entries
when I go to website intodns.com and type the main domain of server, shows red (error) on:

Mismatched NS records
DNS servers responded
Missing nameservers reported by your nameservers
SOA record
MX Records
WWW A Record

yes, www cname is created, mx records value 10 is created, A entrie is created. And... the default page of DA and I created a phpinfo and is loading.
Any clue about this?
 
hostname: when you ping domain/ip you will see RDNS for this IP - so you need to update it too
DNS entries:
Are You using own domain-based NS? then you must create glue-records (hosts) at domain registar panel and configure the same in DNS management at your server
 
hostname: when you ping domain/ip you will see RDNS for this IP - so you need to update it too
DNS entries:
Are You using own domain-based NS? then you must create glue-records (hosts) at domain registar panel and configure the same in DNS management at your server

@Zhenyapan, thanks.
The hostname is because the RDNS. I forgot to setup this on datacenter. I will check this.

Yes, I am using domain-based NS.
Something like for example:
ns1.domain.tld - IP 123.123.123.89
ns2.domain.tld - IP 123.123.123.161

On the domain registar are set ns1, ns2 and IP, and on DA server on main domain there created an A record to ns1.domain.tld to IP 123.123.123.89 and ns1.domain.tld to IP 123.123.123.161.
Then I have the NS record that shows domain.tld. --> ns1.domain.tld and domain.tld. --> ns2.domain.tld

That is odd, showing red.
 
How long ago did you setup the server? Because it might be setup correctly but using your own nameservers it can take up to 24 hours before the DNS is propagated worldwide.
Also, intodns is sometimes using cached information and is updated later, so you can best check at 2 places, like intodns and for example dnsstuff.com where you can click on free tools and then use dnsreport.
 
How long ago did you setup the server? Because it might be setup correctly but using your own nameservers it can take up to 24 hours before the DNS is propagated worldwide.
Also, intodns is sometimes using cached information and is updated later, so you can best check at 2 places, like intodns and for example dnsstuff.com where you can click on free tools and then use dnsreport.

I have setup on friday.
I checked on dnsstuff and seems ok. only shows 1 error because i did not create the e-mail postmaster.
and 2 warnings in Nameserver software version and MX records check

but mx record is there on account server.
 
Flush the dnscache on the pc you are using and clear your temp internet cache. does this help?
Are you using some kind of ad blocker or DNS blocker on your PC network?
 
and 2 warnings in Nameserver software version and MX records check
Oke MX records check, if that is a notice because you only have 1 MX then ignore it.

As for the nameserver version check, you can secure that by adding something like this in your /etc/named.conf under options:
Code:
version "my private version";
or some text you like in betwee the brackets. Restart named and your version is hidden. ;)

If DNSstuf says it's oke then you're oke.
 
Flush the dnscache on the pc you are using and clear your temp internet cache. does this help?
Are you using some kind of ad blocker or DNS blocker on your PC network?

Well, I already try on different browser and in 3 PCs. Same result on 3 different pcs.
 
what gives.
Code:
dig +answer -x "your servers ip here"

Code:
dig hostname.domainname.com a

Code:
dig domainname.com a

Tell us if you see it correctly here?

Do they match?
Code:
hostnamectl
 
Back
Top