Re: DNS not working well on ubuntu8
Dave Uhring wrote:
> On Fri, 02 May 2008 15:56:37 +0800, David Shen wrote:
>> Dave Uhring wrote:
>>> On Fri, 02 May 2008 14:19:28 +0800, David Shen wrote:
>>>
>>>> I am connected to the internet, and is able to ping with IP address. I
>>>> see in the /etc/resolv.conf file that the nameservers are listed
>>>> correctly. Also, I am able to ping the machines by hostname in my
>>>> domain, which means it is able to resolve the name. But when I try to
>>>> ping a Internet website by its name, say ping google.com, the ping
>>>> exited immediately, stating a unknown host. It looks like it never
>>>> tried to resolve it.
>>> Check /etc/nsswitch.conf. This is from Debian but you should have a
>>> similar entry for hosts:
>>>
>>> hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
>> Yes, I do! So...what should I do?
>
> OK, you state that the nameservers are listed correctly in
> /etc/resolv.conf, however that statement is really unconvincing. Please
> post the contents of that file. You may, of course, munge the numbers,
> but nothing else.
My /etc/resolv.conf file looks like this:
search my.corp.domain.com
nameserver ip1
nameserver ip2
nameserver ip3
I compared the IPs and the domain name with what was get from one of my
Windows PC, they are the same. So, I think it should work.
On thing I forgot to tell you last time, is that, I am in a domain which
is controlled by a ISA server. I am not sure if accessing the DNS server
needs authentication also...
Thanks,
David
|