Linode Forum
https://forum.linode.com/

DNS playing up after installing bastille
https://forum.linode.com/viewtopic.php?f=19&t=1395
Page 1 of 1

Author:  radeon [ Tue Jan 11, 2005 5: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.

Author:  caker [ Thu Jan 13, 2005 7:56 pm ]
Post subject: 

What is the output of:

iptables -L -n

-Chris

Author:  radeon [ Thu Jan 13, 2005 8: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

Author:  caker [ Thu Jan 13, 2005 8: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

Author:  radeon [ Thu Jan 13, 2005 8: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?

Author:  caker [ Thu Jan 13, 2005 8: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

Author:  radeon [ Thu Jan 13, 2005 8: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.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/