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.

6 Replies

What is the output of:

iptables -L -n

-Chris

````
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
````

Run these commands, and see if that fixes it:

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

Ive issued all those commands and i still get:

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

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct