Im running ubuntu 16.04 and i have accidently flushed my iptables while trying to troubleshoot a slow internet issue. I used following command
Now i cannot open any website, log into skype, or even ping any website using url.
I can ping internet ip addresses though, can open websites using their ip address, and can see ERR_NAME_RESOLUTION_FAILED in chrome when i try to use url.
I have tried fixes listed in following answer https://serverfault.com/questions/497438/how-to-reset-ubuntu-12-04-iptables-to-default-without-locking-oneself-out but it didnt fix the issue. The exact commands that i ren are as follows
iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -F INPUT iptables -F OUTPUT iptables -F FORWARD
You can say that im not exactly sure what im doing since im not a server admin or a networking guy.
Any help would be greatly appreciated.
Since it appears to be DNS related, I just went ahead and added my ISP's DNS server's address in network connection settings
IPV4 Settings > DNS Servers input box, restarted the machine, and it has come back to life. The internet appears to be working fine now.
I think I've found a way around the problem but the original problem is still there. Is it?
I'm having another internet related issue (the original speed issue) that I've put the description of into another question. The question is here Routing tables - Default gateway and traceroute discrepancy