Reverse lookup doesn't seem to work - irc hostname remains the IP address

February 25, 2015 1.1k views

I've set up a droplet with the hostname xyz.se, with an A-record pointing to the correct ip (444.333.111.222), with a FQDN set on my droplet, and with the droplet being named name.tld.

I can log in to the server using my domain name. The PTR seems to be correct (http://mxtoolbox.com)

Yet, when I connect to IRC using Irssi, I expected my hostname to be user@xyz.se, but to no avail. My irc-host is still user@444.333.111.222 What am I doing wrong? Below are my zone file, my /etc/hosts and the result of '# host $ip'.

Zone file:

$ORIGIN xyz.se.
$TTL 1800
xyz.se. IN SOA ns1.digitalocean.com. hostmaster.xyz.se. 1424810273 10800 3600 604800 1800
xyz.se. 1800 IN NS ns1.digitalocean.com.
xyz.se. 1800 IN NS ns2.digitalocean.com.
xyz.se. 1800 IN NS ns3.digitalocean.com.
xyz.se. 1800 IN A 444.333.111.222
abc.xyz.se. 1800 IN A 444.333.111.222
xyz.se. 1800 IN MX 1 aspmx.l.google.com.
xyz.se. 1800 IN MX 5 alt1.aspmx.l.google.com.
xyz.se. 1800 IN MX 5 alt2.aspmx.l.google.com.
xyz.se. 1800 IN MX 10 alt3.aspmx.l.google.com.
xyz.se. 1800 IN MX 10 alt4.aspmx.l.google.com.
*.xyz.se. 1800 IN CNAME xyz.se.

/etc/hosts-file: xyz.se xyz.se
444.333.111.222 xyz.se xyz.se localhost.localdomain localhost
444.333.111.222 xyz.se

host $ip

444.333.111.222.in-addr.arpa domain name pointer xyz.se.

1 Answer

The PTR record is provided by Digital Ocean and is set to the name of the droplet on the control panel. Check and confirm that the name of the droplet on the Control Panel is a FQDN, and is the name you want the IP address to rlookup to.

Have another answer? Share your knowledge.