Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

DNS lookup doesn't work after update

General questions about VestaCP
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
Albros
Posts: 5
Joined: Tue Nov 22, 2016 8:33 pm

DNS lookup doesn't work after update
  • Quote

Post by Albros » Wed Nov 23, 2016 6:24 am

Hi everybody! It is seems that after update of Vesta CP, DNS lookup doesn't work anymore. Probably Iptables blocks all DNS outer requests from system (CentOS 6). As result Wordpress can't update plugins, some tools doesn't work:

Code: Select all

/etc/sysconfig$ ping -c 1 api.wordpress.org
ping: unknown host api.wordpress.org
If I ping an IP - all is Ok:

Code: Select all

/etc/sysconfig$ ping -c 1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=60 time=0.272 ms
--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.272/0.272/0.272/0.000 ms
This is certainly connected with rules in Iptables. If I switch Iptables off, everything works as supposed. Below is rules, which was qualified as "stateless" by some engineers at other forums:

Code: Select all

/etc/sysconfig$ iptables -L -n -v
Chain INPUT (policy DROP 9 packets, 1033 bytes)
 pkts bytes target     prot opt in     out     source               destination         
  305 2334K ACCEPT     all  --  *      *       212.*******        0.0.0.0/0           
    0     0 ACCEPT     all  --  *      *       127.0.0.1            0.0.0.0/0           
   51  8156 ACCEPT     tcp  --  *      *       87.******      0.0.0.0/0           multiport dports 22,3978 
  188 13015 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           multiport dports 80,443 
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0           udp dpt:53 
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           multiport dports 25,465,587,2525 
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           multiport dports 110,995 
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           multiport dports 3306,5432 
   10   453 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp dpt:8083 
    0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 728 packets, 2833K bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain vesta (0 references)
 pkts bytes target     prot opt in     out     source               destination     
As I newbie in Linux systems, could you please give me an advice - what command needed to unblock DNS requests. Many thanks in advance.

Additionally my /etc/resolv.conf has below content (I already tried different configs here and restarted server):

Code: Select all

# Generated by NetworkManager
search uaservers.net
options timeout:3 attempts:3
nameserver 8.8.8.8
DNS1=8.8.8.8
DNS2=8.8.4.4
Top

mike08
Posts: 160
Joined: Sat Jun 20, 2015 7:12 am

Os: Debian 6x
Web: apache + nginx
Re: DNS lookup doesn't work after update
  • Quote

Post by mike08 » Thu Nov 24, 2016 1:47 pm

Try this:

http://forum.vestacp.com/viewtopic.php? ... 471#p29471
Top

Albros
Posts: 5
Joined: Tue Nov 22, 2016 8:33 pm

Re: DNS lookup doesn't work after update
  • Quote

Post by Albros » Fri Nov 25, 2016 6:14 am

mike08 wrote:Try this:

http://forum.vestacp.com/viewtopic.php? ... 471#p29471
Sorry, this solution doesn't work. Moreover it is connected with WHOIS protocol (port 43), but I need resolve problem with DNS (port 53) . Now I looking for way how to permit outgoing DNS connections.
Top

Albros
Posts: 5
Joined: Tue Nov 22, 2016 8:33 pm

Re: DNS lookup doesn't work after update
  • Quote

Post by Albros » Fri Nov 25, 2016 7:30 am

It is seems that I found command for outer DNS requests

Code: Select all

iptables -I INPUT 3 --proto udp --sport 53 -j ACCEPT
But it is erased each time as I restart iptables. Is there any possibility in VestaCP firewall rules add OUTGOING rules or prohibit erasing outgoing rules from iptables?
Top

sareak
Posts: 4
Joined: Fri Dec 02, 2016 1:43 pm

Re: DNS lookup doesn't work after update
  • Quote

Post by sareak » Fri Dec 02, 2016 5:38 pm

Same question is it posible to save rules permanently?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: DNS lookup doesn't work after update
  • Quote

Post by skurudo » Thu Mar 02, 2017 6:57 pm

Did you try iptables-save ?
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password