Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jan 11, 2005 5:20 pm 
Offline
Newbie

Joined: Tue Jan 11, 2005 5:14 pm
Posts: 4
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.


Top
   
 Post subject:
PostPosted: Thu Jan 13, 2005 7:56 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
What is the output of:

iptables -L -n

-Chris


Top
   
 Post subject: Re:
PostPosted: Thu Jan 13, 2005 8:15 pm 
Offline
Newbie

Joined: Tue Jan 11, 2005 5:14 pm
Posts: 4
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


Top
   
 Post subject:
PostPosted: Thu Jan 13, 2005 8:28 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
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


Top
   
 Post subject: Re:
PostPosted: Thu Jan 13, 2005 8:33 pm 
Offline
Newbie

Joined: Tue Jan 11, 2005 5:14 pm
Posts: 4
Ive issued all those commands and i still get:

Code:
ping: unknown host www.yahoo.com


Do i need to restart the linode first?


Top
   
 Post subject: Re:
PostPosted: Thu Jan 13, 2005 8:35 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
radeon wrote:
Do i need to restart the linode first?

No. What is the output of "cat /etc/resolv.conf"?

-Chris


Top
   
 Post subject: Found it..
PostPosted: Thu Jan 13, 2005 8:49 pm 
Offline
Newbie

Joined: Tue Jan 11, 2005 5:14 pm
Posts: 4
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group