[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Weird DNS error?



Greg van Anders wrote:
> I just did a brand new installation of Squeeze. The install seemed
> to go fine and I didn't notice any problems.

Did you select, at the task selection menu, the "DNS Server" task?
You should be able to resolve names in both cases but the debug route
is different in the different cases.  If you selected it then you will
have bind9 installed.  If not then you won't.  Either is okay.  We
just need to know.

  $ dpkg -l bind9

> Upon booting, however, I don't seem to be able to resolve any hosts
> other than www.debian.org and security.debian.org.

That is odd.  You are booting using a DHCP address or a static
address?  DHCP will supply a nameserver.  If static then you must
supply one statically.

What are the contents of your /etc/network/interfaces file?

  $ cat /etc/network/interfaces

What are the contents of your /etc/resolv.conf file?

  $ cat /etc/resolv.conf

Also /etc/nsswitch.conf just to make sure it isn't a reason either.

  $ grep hosts /etc/nsswitch.conf
  hosts:          files dns

Unfortunately there are several possibilities here depending upon the
contents of the files and the debug path is different depending upon
the result.  I will stop there but that should get things going.

> If I open up a terminal, ifconfig shows an IP address, and I can
> traceroute to other hosts for which I know the IP, but I can't for
> anything I specify by name.

Good.  You have network connectivity.  Network connectivity is a
prerequisite for DNS to work.  But those are two separate things and
otherwise unrelated to each other.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: