Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


DNS playing up after installing bastille

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux Networking
Author Message
radeon



Joined: 11 Jan 2005
Posts: 4

Posted: Tue Jan 11, 2005 4:20 pm    Post subject: DNS playing up after installing bastille  

I installed bastille and ran the configuration program and proceeded to reboot my linode as it explains to do so. I then installed TITAN in an attempt to further lockdown the linode. After my reboot i had restarted my IRCd and been able to connect to IRC using irssi without any difficulties.

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.
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2404
Location: Galloway, NJ

Posted: Thu Jan 13, 2005 6:56 pm    Post subject:  

What is the output of:

iptables -L -n

-Chris
Back to top  
radeon



Joined: 11 Jan 2005
Posts: 4

Posted: Thu Jan 13, 2005 7:15 pm    Post subject: Re:  

Code: 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
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2404
Location: Galloway, NJ

Posted: Thu Jan 13, 2005 7:28 pm    Post subject:  

Run these commands, and see if that fixes it:

Code: 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
Back to top  
radeon



Joined: 11 Jan 2005
Posts: 4

Posted: Thu Jan 13, 2005 7:33 pm    Post subject: Re:  

Ive issued all those commands and i still get:

Code: ping: unknown host www.yahoo.com

Do i need to restart the linode first?
Back to top  
caker



Joined: 15 Apr 2003
Posts: 2404
Location: Galloway, NJ

Posted: Thu Jan 13, 2005 7:35 pm    Post subject: Re:  

radeon wrote: Do i need to restart the linode first?
No. What is the output of "cat /etc/resolv.conf"?

-Chris
Back to top  
radeon



Joined: 11 Jan 2005
Posts: 4

Posted: Thu Jan 13, 2005 7:49 pm    Post subject: Found it..  

cat /etc/nsswitch.conf
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.
Back to top  
 
       Linode.com Forum Forum Index -> Linux Networking
Page 1 of 1