Question

DNS cache problem

Posted January 31, 2020 188 views
DNS

I have several droplets and with curl i can connect to a specific url. But on 1 droplet its not possible i get this error:

curl -vv #example_url

  • Rebuilt URL to: #example_url
  • Hostname was NOT found in DNS cache
  • Trying #ipadress…
  • connect to #ipadress port 8088 failed: Connection timed out
  • Failed to connect to #ipadress port 8088: Connection timed out
  • Closing connection 0 curl: (7) Failed to connect to #ipadress 8088: Connection timed out

How can i clear/fix this DNS cache problem? Firewall is disabled.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
3 answers

Hello, @matthijsd7af445

If you’re not able to connect to the IP address as well using curl this might not be a DNS issue. Have you tried rebooting the droplet? Also have you tried to connect using alternative network/device as well? Can you check if currently port 8088 is open and the rescpetive service is listening on it? You can do that by executing this command from the droplet.

netstat -plunta | grep 8088

Let me know how it goes

Regards,
Alex

I tried a reboot the droplet.

For your knowledge: i do the curl command on the droplet. I have also 3 other droplets and there it works fine. Only on this droplet i get this. It’s the oldest one with ubuntu 14 on it.

netstat -plunta | grep 8088 gives no output.

Hello, @matthijsd7af445

If the command returns no output then the service is not running at the moment. Could you please try to restart the service which is also running fine on the other droplets and try again? I assume you have a web server like Tomcat running on this port.

Let me know how it goes.

Regards,
Alex

  • I did the reboot.

    If i only type netstat it working.

    But netstat -plunta | grep 8088 no error or any results.

    root@dutchshop:~# sudo service –status-all
    [ + ] acpid
    [ - ] apache2
    [ + ] apparmor
    [ ? ] apport
    [ + ] atd
    [ + ] atop
    [ ? ] console-setup
    [ + ] cron
    [ - ] dbus
    [ ? ] dns-clean
    [ + ] elasticsearch
    [ + ] friendly-recovery
    [ - ] grub-common
    [ ? ] irqbalance
    [ ? ] killprocs
    [ ? ] kmod
    [ - ] lm-sensors
    [ + ] memcached
    [ ? ] mysql
    [ ? ] netdata
    [ ? ] networking
    [ + ] nginx
    [ + ] nscd
    [ + ] ntp
    [ ? ] ondemand
    [ - ] php5-fpm
    [ + ] php7.0-fpm
    [ + ] php7.2-fpm
    [ - ] postfix
    [ ? ] pppd-dns
    [ - ] procps
    [ ? ] rc.digitalocean
    [ ? ] rc.local
    [ + ] redis-server
    [ + ] resolvconf
    [ - ] rsync
    [ + ] rsyslog
    [ ? ] screen-cleanup
    [ + ] sendmail
    [ ? ] sendsigs
    [ + ] ssh
    [ - ] sudo
    [ - ] sysstat
    [ + ] udev
    [ ? ] umountfs
    [ ? ] umountnfs.sh
    [ ? ] umountroot
    [ - ] unattended-upgrades
    [ - ] urandom
    [ - ] x11-common
    root@dutchshop:~#

Submit an Answer