Connection timed out no servers could be reached

New Page

;libID=3608122

;libID=3269167

The DNS server in Plesk does not respond to las llamadas debido a que se ha tocado el puerto: se agotó el tiempo de conexión; no se pudo alcanzar ningún servant

Avatar

Leonid Gukman

Updated 4 months ago

Seguir

Plesk for Linux kb: Technical ABT: Group B

Applicable to:

  • Plesk for Linux

Symptoms

  • Websites on the server are unavailable.

  • The DNS server does not respond to calls. They fail due to a timeout:

    # dig example.com @203.0.113.2; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.62.rc1.el6_9.5 <<>> example.com @203.0.113.2 ;; global options: +cmd ;; the connection has expired; no server could be reached

  • If you force TCP to dig before asking, it works:

    # dig example.com @203.0.113.2 +vc ; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.62.rc1.el6_9.5 <<>> example.com @203.0.113.2 +vc ;; global options: +cmd ;; Response obtained: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22918;; flags: qr aa rd; REQUEST: 1, RESPONSE: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; WARNING: recursion requested but not available ;; QUESTIONS SECTION: ;example.com. IN A ;; ANSWER SECTION: example.com. 86400 IN A 203.0.113.2

Cause

UDP traffic is not allowed on port 53.

Resolution

Check the server’s firewall to ensure that incoming TCP and UDP traffic is allowed on port 53. If the problem persists, contact the network administrator to also allow TCP and UDP on intermediate firewalls.

  • Facebook
  • Twitter
  • LinkedIn

¿Te resultó útil este artículo

Back to top

comments

1 comment

Sort by Date Votes

  • Avatar

    Curtis Maurand October 22, 2021 2:33 p.m.

    In my case the ports are open and the daemon is running.

    0

    Comment Actions Permalink

Please sign in to leave a comment.

You have more questions ? Submit a request

Se agotó el tiempo de conexión, no se pudo acceder a los servidores, el puerto está abierto pero se rechazó la conexión

Pregunta

Preguntó hace 2 years, 7 months

Edited 9 days ago

Visto 7k times

This question shows research effort; it is useful and clear

1

This question shows no research effort; it’s not clear or not helpful

Bookmark this question.

View activity on this post.

Estoy tratando to configure a dnsmasq in a CentOS 7. The machine is in the local IP 192.168.0.50. The DNS server gets the response through nslookup. Pero, cuando uso nslookup desde otra máquina en la misma red local, obtentiongo un

the connection has expired; no server could be reached

Configuring /etc/dnsmasq.conf :

conf-dir=/etc/dnsmasq.d,.rpmnew,.rpmsave,.rpmorig resolv-file=/etc/resolv.conf.upstream

Configuring /etc/dnsmasq.d/ma_config_dns.conf  :

strict order listen address = 192.168.0.50 listen address = 127.0.0.1 cache size = 5000

Configuring /etc/resolv.conf :

find novalocal nameserver 192.168.0.50

netstat-tulpn:

tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 12224/dnsmasq tcp6 0 0 :::53 :::* LISTEN 12224/dnsmasq udp 0 0 0.0.0.0:53 0.0.0.0:* 12224/dnsmasq udp6 0 0:::53:::*12224/dnsmasq

/etc/hosts:

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.0.172 vm1.novalocal

  • centos
  • DNS
  • dnsmasq

To share

Share a link to this question

Copy link CC BY-SA 4.0

Mejora esta pregunta

Seguir

Sigue esta pregunta para recibir notifications

modified on February 26, 2020 at 4:14 PM

Avatar of Paulo Tomé

Paulo Tome

3,631 5 5 gold badges 25 25 silver badges 36 36 bronze badges

asked on February 26, 2020 at 3:58 p.m.

Avatar of AMAR BESSALAH

AMAR BESSALAH AMAR BESSALAH

11 1 1 silver badge 3 3 bronze badges

Add a comment | 

3 answers3

Ordenado por: Restablecer a predeterminado

Puntaje más alto (predeterminado) Fecha de modificación (más reciente primero) Fecha de creación (el más antiguo primero)

This answer is helpful

0

This answer is not helpful

View activity on this post.

¿Abriste your firewall? Se puede hacer con estos comandos.

firewall-cmd –zone=public –add-port=53/tcp –permanent firewall-cmd –zone=public –add-port=53/udp –permanent firewall-cmd –reload

To share

Share a link to this answer

Copy link CC BY-SA 4.0

improve this respuesta

Seguir

Sigue esta respuesta para recibir notifications

modified on February 26, 2020 at 5:42 PM

answered on February 26, 2020 at 5:36 PM

Hoto Cocoa User Avatar

Hoto Cocoa Hoto Cocoa

111 4 4 bronze badges

1

  • the firewall on my local machine was open

    – AMAR BESSALAH

    February 27, 2020 at 7:55 am

Add a comment | 

This answer is helpful

0

This answer is not helpful

View activity on this post.

Descubrí que hay un firewall externo en la infraestructura remote que estaba blocando el puerto.

To share

Share a link to this answer

Copy link CC BY-SA 4.0

improve this respuesta

Seguir

Sigue esta respuesta para recibir notifications

answered on February 27, 2020 at 8:06 am

Avatar of AMAR BESSALAH

AMAR BESSALAH AMAR BESSALAH

11 1 1 silver badge 3 3 bronze badges

Add a comment | 

This answer is helpful

0

This answer is not helpful

View activity on this post.

If está bien con iptables y selinux; debe verificar el estado de todos los servicios de red una vez en su máquina.

The problem encountered is network.service; estaba fallando en la vm.

To share

Share a link to this answer

Copy link CC BY-SA 4.0

improve this respuesta

Seguir

Sigue esta respuesta para recibir notifications

answered on Sep 19 at 9:40

Avatar of Ajay Tumsare

Ajay Tumsare Ajay Tumsare

1

Add a comment | 

Your answer

Please contribute with an answer to Unix & Linux Stack Exchange!

  • Por favor, asegúrese de responder a la pregunta. ¡Proportione detalles y comparta su investigation!

But avoid…

  • Ask for help, clarification, or respond to other responses.
  • Make statements based on opinion; back them up with references or personal experience.

To learn more, check out our tips for writing great answers.

Saved Draft

Draft rejected

Sign up or log in

Sign up with Google

Sign up using Facebook

Sign up using your email and password

Submit

Post as guest

Last name

E-mail

Required, but never displayed

Post as guest

Last name

E-mail

Required, but never displayed

Post your answer Ignore

By clicking “Post your answer” you agree to our Terms of Service, Privacy Policy and Cookies Policy

Not the answer you are looking for? Browse other tagged questions

  • centos
  • DNS
  • dnsmasq

or ask your own question.

  • The overflow blog
  • Ethereum finally merges, semiconductors remain scarce (Ep. 490)

  • Stack Overflow Trends: Weekday vs. Weekend Site Activity

  • Featured on Meta
  • Recent color contrast changes and accessibility updates

Related

1

cannot connect to dnsmasq on local machine, port is open but connection is refused

seven

Postfix smtp connection timed out, why?

3

Connection refused on port 8081 using curl

2

Unbound no server could be reached

0

Unable to open server in Centos 7 after inserting DROP in Iptables (connection timeout)

0

ssh: connect to host. The connection timed out.

0

Dig connection timed out while Ping and nslookup are working fine

Network burning questions

  • In Old Modern English, are there examples of the progressive “a- + gerund” construction where the gerund begins with a vowel?
  • Develop intuition about altitude and speed in multistage rockets
  • Why doesn’t the bypass capacitor cause phase shift in this oscillator circuit?
  • Power Series Method on Heat Equation
  • How to indicate to the user that they haven’t completed a prerequesite?
  • Is my homebrew Hiccupera spell any good?
  • What caused the jitter in the DART video as it approached Dimorphos?
  • Copied the red band of the RGB TIFF file with GDAL in C++
  • Are these two sentences equivalent? 「トイレはあそこです。」、「あそこはトイレです。」
  • Do characters have to wait 24 hours to long rest, if a long rest is interrupted?
  • How database engine of SQL swap two columns values?
  • What is the largest aircraft ever flown with no pilot on board?
  • Assign value from boolean comparison to a variable
  • Can the princess escape using shoddy craftsmanship in a one-sided lock?
  • Slovakia has been the first state to have not affirmed joining NATO of Sweden and Finland with magnitudinal majority — why?
  • For linear regression, why do people usually standardize the X variables and log y variables to make them normally distributed?
  • How does the ATF flow between torque converter and the transmission?
  • Apply UK VIsa without passport details
  • It’s Just Rocket Science
  • What region codes require GDPR compliance?
  • A robot that doesn’t repeat move triplets
  • What is the process by which humanity gains its prescience-immunity in the Dune series?
  • First salary no taxes
  • How to patch underwater power line

Question feed

Subscribe to RSS

Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Connection timed out; no servers could be reached error

Ask Question

Asked 6 years, 6 months ago

Modified 2 months ago

Viewed 128k times

This question shows research effort; it is useful and clear

8

Cette question ne montre aucun effort de recherche; ce n’est pas clair ou pas utile

2

Mettez cette question en signet.

Afficher l’activité sur ce post.

En essayant d’envoyer un ping à www.google.com, j’obtenais l’erreur :

;; la connexion a expiré; aucun serveur n’a pu être atteint

I was neither able to run sudo apt-get update nor access any web pages. So I modified my /etc/resolv.conf file to contain the OpenDNS servers so that it looks like this:

~$ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND — YOUR EDITS WILL BE OVERWRITE # OpenDNS IPv4 nameservers nameserver 208.67.222.222 nameserver 208.67.220.220

However, I still get the same error:

~$ host -v www.google.com Try “www.google.com” ;; the connection has expired; no server could be reached

I tried it with dig as well, and the results are:

:~$ dig @8.8.8.8 www.google.com

; <<>> DiG 9.9.5-3ubuntu0.4-Ubuntu <<>> @8.8.8.8 www.google.com ; (1 server found) ;; global options: +cmd ;; connection timed out; no servers could be reached

Could anyone please help me resolve the problem? I am running Ubuntu 14.04 on VirtualBox.

EDIT:

ifconfig’s output:

eth0 Link encap:Ethernet HWaddr 08:00:27:6a:81:38 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe6a:8138/64 Scope: Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8368 errors:0 dropped:0 overruns:0 frame:0 TX packets:5197 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes: 7814822 (7.8 MB) bytes TX: 467136 (467.1 KB) lo Link encap: Local Loopback inet addr: 127.0.0.1 Mask: 255.0.0.0 inet6 addr::: 1/128 Scope: Host UP LOOPBACK RUNNING MTU: 65536 Metric:1 RX packets:409 errors:0 dropped:0 overruns:0 frame:0 TX packets:409 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:42,236 (42.2 KB) TX bytes: 42236 (42.2 KB)

ip route output:

~$ ip route default via 10.0.2.2 dev eth0 proto static 10.0.2.0/24 dev eth0 proto kernel scope link src 10.0.2.15 metric 1

  • 14.04
  • networking
  • virtual box
  • DNS

To share

Share a link to this question

Copy link CC BY-SA 3.0

Improve this question

Follow

Follow this question to receive notifications

modified on March 9, 2016 at 12:07

Vishnu NK user avatar

Vishnu NK

595 5 5 silver badges 22 22 bronze badges

asked on March 9, 2016 at 11:35

QPTR user avatar

QPTR QPTR

213 1 1 gold badge 2 2 silver badges 9 9 bronze badges

5

  • Show output of ifconfig and ip route. Virtualbox network is set to NAT or BRIDGED or something else?

    – EdID

    March 9, 2016 at 11:41 am

  • @EdiD just did it above in the original post.

    – QPTR

    March 9, 2016 at 12:01

  • What about the host system? firewall status/configuration on host and guest

    – EdID

    9 mars 2016 à 12:08

  • Donc, je viens de redémarrer mon Ubuntu et ça marche maintenant. Comme dans la résolution se passe bien. Je reçois toujours une erreur en essayant d’exécuter tor : Impossible de terminer la connexion SOCKS5 à 0.0.0.0:0 mais cela peut ne pas être connecté ? Quoi qu’il en soit, pour une résolution générale, cela fonctionne. Qu’indique l’état/la configuration du pare-feu ?

    – QPTR

    9 mars 2016 à 12:12

  • 1

    Je me demandais peut-être que le pare-feu bloque votre trafic sortant

    – EdiD

    9 mars 2016 à 12:14

Ajouter un commentaire | 

2 réponses 2

Trié par : Réinitialiser par défaut

Score le plus élevé (par défaut) Date de modification (la plus récente en premier) Date de création (la plus ancienne en premier)

Cette réponse est utile

15

Cette réponse n’est pas utile

Afficher l’activité sur ce post.

As soon as I had the same situation and restarting didn’t fix the problem, here are my simple steps that might help find the problem:

  1. check internet connection

ping 8.8.8.8

If the destination is unreachable, check if your 10.0.2.2 gateway is reachable. And fix the problem.

if the connection is good, you will see something like:

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes since 8.8.8.8: icmp_seq=1 ttl=46 time=4.13 ms 64 bytes since 8.8.8.8: icmp_seq=2 ttl=46 time=4.13 ms

  1. Check if host/dig sends packets correctly:

sudo tcpdump -n -i en0 host 8.8.8.8

At the same time from another console of the same machine

dig @ 8.8.8.8 www.google.com

You will get a response similar to:

tcpdump: verbose output removed, use -v or -vv for full listening protocol decode on eth0, link type EN10MB (Ethernet), capture size 65535 bytes 13:34:00.980550 IP 10.0.2.15.56570 > 8.8 .8.8.53: 47059+ A? google.com. (27) 13:34:05.980541 IP 10.0.2.15.56570 > 8.8.8.8.53: 47059+ A? google.com. (27)

This means that the request went to the external network but did not come back…

You can check what your firewall is doing by analyzing the result of your firewall rules:

iptables -n -L

The problem can be with any firewall between you and 208.67.222.222 or 208.67.220.220 or 8.8.8.8

In my case, my provider’s firewall is coincidentally blocking incoming UDP packets from port 53.

and so fixing the vendor firewall rules solves the problem.

I hope this analysis will be useful to someone.

To share

Share a link to this answer

Copy link CC BY-SA 4.0

Improve this answer

Follow

Follow this answer to receive notifications

modified on December 15, 2020 at 0:07

傅继晗's user avatar

傅继晗

213 2 2 silver badges 6 6 bronze badges

answered on January 13, 2017 at 11:02

khe user avatar

khe khe

151 1 1 silver badge 5 5 bronze badges

1

  • My problem was that all hosts were unreachable. But reading this gave me the idea of ​​turning off and on my wifi connection on Ubuntu 20 and everything started working fine again.

    – Matthis Kohli

    Dec 7, 2021 at 8:45 am

Add a comment | 

This answer is useful

1

This answer is not useful

Show activity on this post.

I had the same issue of pinging the google DNS 8.8.8.8 but not able to resolve the google or any web. The issue was at firewall acl; NAT was there so ping was fine but subnet was not allowed in ACL. After allowing the subnet in ACL, the problematic subnet started working. Hope this helps.

Share

Share a link to this answer

Copy link CC BY-SA 4.0

Improve this answer

Follow

Follow this answer to receive notifications

answered Jul 22 at 5:49

User avatar of Tausif Mehmood

Tausif Mehmood Tausif Mehmood

11 1 1 bronze badge

Add a comment  | 

Your Answer

Thanks for contributing an answer to Ask Ubuntu!

  • Veuillez vous assurer de répondre à la question. Fournissez des détails et partagez vos recherches !

Mais évitez…

  • Demander de l’aide, des éclaircissements ou répondre à d’autres réponses.
  • Faire des déclarations basées sur une opinion ; étayez-les par des références ou une expérience personnelle.

To learn more, check out our tips for writing great answers.

Saved Draft

Draft rejected

Sign up or log in

Sign up with Google

Sign up using Facebook

Sign up using your email and password

Submit

Publish by invitation

Number

Email

Requerido, pero nunca mostrado

Post as guest

Last name

E-mail

Required, but never displayed

Publica tu respuesta Desechar

Al hacer clic en “Publicar su respuesta”, accept our service terms, privacy policy and cookie policy

No es la respuesta que estás buscando? Explorar otras preguntas etiquetadas

  • 14.04
  • redes
  • virtual caja
  • DNS

o haga su propia pregunta.

  • Overflow’s blog
  • Ethereum finally merged, los semiconductores siguen siendo escasos (Ep. 490)

  • Tendencias de overflow of pila: activity of the site between week and end of week

  • Destacado in Meta
  • Recientes cambios de contrast de color y actualizaciones de accesibilidad

vinculado

4

Problemas de busqueda de DNS solo en una red specífica

Related

4

Unable to connect to local network

5

Internet connection not working although it says connected

4

Wireless completely gone

2

14.04 no internet connection when I mount bridge interface (for LXC container)

1

In Ubuntu 14.04, Wi-Fi disconnects when I’m not using

2

Dual network card not working

Preguntas calientes of the red

  • How to obtain the number of página físico (absoluto)
  • ¿Se pueden intercambiar prisoneros de guerra contra su voluntad?
  • ¿Debo seguir mi propia dirección para mi investigación de doctoratado?
  • ¿Cuál es el caso de uso de dishabilitar un índice?
  • Desarrollar the intuition over the altitude and the speed in multistep cohetes
  • std::is_same different results between compilers
  • Mi gobierno (China) cancels mi pasaporte. Estoy en Malasia, ¿qué puedo hacer?
  • ¿Se modifica el título y la cifra de un monarca si la Reina tiene el mismo nom que su rey anterior?
  • Can you pass very 3/0 and conducto #1 of 235 feet through a conducto of 2″?
  • ¿Cuál es el avión más grande jamás volado sin piloto a bordo?
  • ¿Podría survive a bosque de pinos con nevadas Durante todo el año?
  • ¿Qué hace que un juego no se pueda modificar?
  • ¿Cómo deshacerse de una gran cantidad de azúcar húmedo?
  • primer sueldo sin impuestos
  • Razones para desconfiar de los certificados de Let’s Encrypt
  • Mostrar manipulation de identidad trigonométrica larga
  • ¿Cómo funcionarían las oceánicas mareas en un planeta blocado por mareas?
  • Is this a breathable atmosphere for extraterrestrials parecidos a humanos que tienen sangre transportadora de oxigeno más eficiente? Normal humans will require a gas máscara (oxygen)
  • El interruptor de la sala de estar no se enciende después de lavado a presión
  • Tutorial request on the implementation of the HiGHS solution
  • ¿Es comprensivo el latin de Wheelock?
  • Coefficient of an interaction termino cuando los regresores son independentes
  • Apply for the visa del Reino Unido sin los datos del pasaporte
  • var() not equal to sd()^2 in R

Feed of preguntas

Subscribe to an RSS

Feed of preguntas

To subscribe to an RSS feed, copy and follow this URL as an RSS reader.


Video Connection timed out no servers could be reached

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…