FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 11-28-2008, 07:52 PM
Alex Samad
 
Default Possible DNS issue in Debian/Lenny?

On Fri, Nov 28, 2008 at 04:04:32AM -0600, Mike Chorak wrote:
> Alex Samad wrote:
>>
>> can you show us /etc/nsswitch.conf, also /etc/resolv.conf and try
>> dig google.com
>>
>>
>> I am guessing you have the mdns in nsswitch (just a guess off the top of
>> my head)
>>
>
> # /etc/nsswitch.conf
> #
> # Example configuration of GNU Name Service Switch functionality.
> # If you have the `glibc-doc-reference' and `info' packages installed, try:
> # `info libc "Name Service Switch"' for information about this file.
>
> passwd: compat
> group: compat
> shadow: compat
>
> hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
> networks: files
>
> protocols: db files
> services: db files
> ethers: db files
> rpc: db files
>
> netgroup: nis
> ___________________________________________
> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by
> resolvconf(8)
> # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
> nameserver 4.2.2.2
> nameserver 68.94.156.1
> nameserver 68.94.157.1

Sounds like you have fixed you problem (disabling ipv6 )

but/if not

your resolv.conf is being created by you dhcp server. I would check that
these are valid dns server and allow you to resolve names.

dig @<serverip> google.com


/etc/nsswitch.conf

is used by the system from (glibc I think), when a request is made for
hostname it looks in here for how to access the host db (the host line),
first it looks in (files!) /etc/hosts then it tries the mdn4_minimal
service (this could be were the time might happen - seen on other
systems) then try traditional dns (using the /etc/resolv.conf
nameservers) and then back to mdns4


i usually only have

hosts: files dns ldap

on my systems


alex

>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a
> subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>

--
Actors will happen even in the best-regulated families.
 
Old 11-28-2008, 08:10 PM
Mike Chorak
 
Default Possible DNS issue in Debian/Lenny?

Alex Samad wrote:

On Fri, Nov 28, 2008 at 04:04:32AM -0600, Mike Chorak wrote:

Alex Samad wrote:

can you show us /etc/nsswitch.conf, also /etc/resolv.conf and try
dig google.com


I am guessing you have the mdns in nsswitch (just a guess off the top of
my head)


# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis
___________________________________________
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by
resolvconf(8)

# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 4.2.2.2
nameserver 68.94.156.1
nameserver 68.94.157.1


Sounds like you have fixed you problem (disabling ipv6 )

but/if not

your resolv.conf is being created by you dhcp server. I would check that
these are valid dns server and allow you to resolve names.

dig @<serverip> google.com


/etc/nsswitch.conf

is used by the system from (glibc I think), when a request is made for
hostname it looks in here for how to access the host db (the host line),
first it looks in (files!) /etc/hosts then it tries the mdn4_minimal
service (this could be were the time might happen - seen on other
systems) then try traditional dns (using the /etc/resolv.conf
nameservers) and then back to mdns4


i usually only have


hosts: files dns ldap

on my systems


alex



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a
subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org







When I removed mdns4 and mdns4-minimal from my /etc/nsswitch.conf file,
and reenabled ipv6, i get the same problem...slow resolution of
www.facebook.com! I'm really scratching my head on this one. I don't
really disabling ipv6 because I have no use for it...as far as I
know...but it seems like kind of an adhoc solution.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 11-29-2008, 09:25 AM
Alex Samad
 
Default Possible DNS issue in Debian/Lenny?

On Fri, Nov 28, 2008 at 03:10:02PM -0600, Mike Chorak wrote:
> Alex Samad wrote:
>> On Fri, Nov 28, 2008 at 04:04:32AM -0600, Mike Chorak wrote:
>>> Alex Samad wrote:
>>>> can you show us /etc/nsswitch.conf, also /etc/resolv.conf and try

[snip]

>
> When I removed mdns4 and mdns4-minimal from my /etc/nsswitch.conf file,
> and reenabled ipv6, i get the same problem...slow resolution of
> www.facebook.com! I'm really scratching my head on this one. I don't
> really disabling ipv6 because I have no use for it...as far as I
> know...but it seems like kind of an adhoc solution.

if you delve in to the glibc resolver code I believe it does a ipv6
lookup first (type AAAA), you can check this, in another window do

tcpdump -pni eth0 port 53 -vv

and in another window try wget www.facebook.com -O /dev/null

you should see a request for a AAAA record and then a A record.

ipv6 will auto configure an address, but shouldn't configure any routing
unless it has been enabled on the network. have a look at ip -6 r and ip
-6 a.

If you don't need ipv6 then turn it off

>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a
> subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>

--
"We're working with Chancellor Schr´┐Ż on what's called 10-plus-10-over-10: $10 billion from the U.S.,$10 billion from other members of the G7 over a 10-year period, to help Russia securitize the dismantling -- the dismantled nuclear warheads."

- George W. Bush
05/23/2002
Berlin, Germany
 

Thread Tools




All times are GMT. The time now is 12:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ę2007 - 2008, www.linux-archive.org