Ubuntu Server Won't Resolve Hostnames

Just installed a fresh build of Ubuntu Server 12.04.4 x64 to find that I can't get DNS functionality to work.  In the configuration wizard, I entered the name server of 8.8.8.8.  I can successfully ping this IP and can see its entry in /etc/resolv.conf and /etc/network/interfaces.  But I can't perform nslookup or ping any hostname.
LVL 1
marrjAsked:
Who is Participating?
 
MazdajaiConnect With a Mentor Commented:
>>I've got a Windows server set up the same way and have no problems performing nslookup on 8.8.8.8.

Can you confirm the Ubuntu server and the Windows are in the same subnet? As well as UDP53 is open?
0
 
MazdajaiCommented:
Is iptables running? What is your network configuration?
0
 
marrjAuthor Commented:
I'm fairly new to Linux.  How do I tell if iptables is running?

By network configuration, do you mean the content of the /etc/network/interfaces file?
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
TintinCommented:
What's the output of

iptables -L
0
 
MazdajaiCommented:
Yes. Beside iptables provide the following -

dig google.com 8.8.8.8

Open in new window

0
 
SandyCommented:
Also check with your network guy whether port 53 is open or not to allow name resolution.

TY/SA
0
 
SurranoSystem EngineerCommented:
Instead of asking to open port 53 I'd recommend to ask your network team to give you a proper DNS IP within the intranet. Tends to be more friendly and less prone to future nasty comments from network team :)
0
 
marrjAuthor Commented:
Output from iptables -L

Chain INPUT (policy ACCEPT)
target     prot opt source     destination

Chain FORWARD (policy ACCEPT)
target     prot opt source     destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source     destination




Output from dig google.com 8.8.8.8

;; global options: +cmd
;; connection timed out; no servers could be reached
;; connection timed out; no servers could be reached



I happen to the be the network guy, and I am certain that outbound TCP53 is open at my ASA.  This server is going to be in a DMZ, and I really don't want to open up anything from the DMZ to the inside that I don't have to.  I've also got a static NAT created at my ASA for this machine.  As I said, I can ping any IP (public or private) that I want to.  I just can't perform name lookups.  I don't think it's a NAT or port issue.  I've got a Windows server set up the same way and have no problems performing nslookup on 8.8.8.8.
0
 
TintinConnect With a Mentor Commented:
Make sure you have UDP 53 opened on the ASA.   Most DNS queries are over UDP rather than TCP.
0
 
marrjAuthor Commented:
I decided to reinstall the OS from scratch.  Now, DNS works fine.  Strange.  Thanks for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.