DNS playing up after installing bastille
I realised that i was unable to connect to rsync.gentoo.org when i tried to 'emerge sync'
I then proceeded to try pinging the domain but had no luck. It seems i can ping IP addresses fine and connect to IP addresses fine but that the DNS is playing up and not resolving hostnames to IP addresses.
I expect i should point out that TITAN made a backup when i used it and i restored the backup successfully with no error messages. I have looked through the bastille configuration script again and dont believe i made any changes that would affect DNS.
6 Replies
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- 64.62.190.9 0.0.0.0/0
ACCEPT udp -- 64.62.190.9 0.0.0.0/0
ACCEPT udp -- 64.62.175.2 0.0.0.0/0
ACCEPT udp -- 64.62.176.2 0.0.0.0/0
ACCEPT udp -- 64.62.174.2 0.0.0.0/0
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
````
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
iptables -t nat -P OUTPUT ACCEPT
iptables -t mangle -P PREROUTING ACCEPT
iptables -t mangle -P OUTPUT ACCEPT
iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -X
iptables -t nat -X
iptables -t mangle -X
-Chris
ping: unknown host www.yahoo.com
Do i need to restart the linode first?
@radeon:
Do i need to restart the linode first?
No. What is the output of "cat /etc/resolv.conf"?
-Chris
passwd: files
shadow: files
group: files
hosts: files dns
networks: files dns
services: db files
protocols: db files
rpc: db files
ethers: db files
netmasks: files
netgroup: files
bootparams: files
automount: files
aliases: files
Somehow this file got fsked up. Ive added dns to the networks line and it works fine
Anyway, thanks for your help, much appreciated.