LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-19-2004, 03:02 PM   #1
movery
Member
 
Registered: Jun 2004
Posts: 30

Rep: Reputation: 15
Cool IPv6 stopping DNS lookup on localhost


I think I have a problem with DNS lookups on 127.0.0.1. Currently a number of programs (openoffice, gedit, gkrellm and others) hang for a long time when running and all hang on the following code:

connect(19, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("62.30.112.39")}, 28) = 0
send(19, "\257\3\1\0\0\1\0\0\0\0\0\0\tlocalhost\0\0\1\0\1", 27, 0) = 27
gettimeofday({1090270763, 754230}, NULL) = 0
poll([{fd=19, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
ioctl(19, FIONREAD, [43]) = 0
recvfrom(19, "\257\3\201\200\0\1\0\1\0\0\0\0\tlocalhost\0\0\1\0\1\300"..., 1024, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("62.30.112.39")}, [16]) = 43
close(19) = 0
time(NULL) = 1090270763
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 19
fcntl64(19, F_SETFD, FD_CLOEXEC) = 0
setsockopt(19, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
setsockopt(19, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(19, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("127.0.0.1")}, 16

You can see from the trace above that it is doing something on 62.30.112.39, which is specified in my resolv.conf file, and then also on localhost, which is not. This problem has been made better by minimising the timeouts on DNS lookups but I would like to stop this completely.

I have read on the following site http://www.jw-stumpel.nl/leakage.html that ipv6 can cause 'leakage' and lookups to be performed on my localhost address. Does anyone know how to stop this?
 
Old 07-19-2004, 03:12 PM   #2
Ztyx
Member
 
Registered: Dec 2001
Location: Stockholm, Sweden
Distribution: Ubuntu, Kubuntu and Debian
Posts: 338

Rep: Reputation: 30
I had this problem with a recent SuSE install. For some reason SuSE had IPv6 turned on as standard and my lookups took a hell of a time because it first tried DNS lookup thrue IPv6.

After some tries I managed to turn IPv6 off. I think I did it by adding the line
Code:
alias net-pf-10 off
to the file /etc/modprobe.conf.local. If you don't have that file in your distribution you could probably put the line at the end of /etc/modprobe.conf.

I'm happy to hear if this solves your problem.

Regards,

Jens

PS. There are a lot of old threads dealing with similar problems here at LinuxQuestions, so if this doesn't help I suggest you do a search and try some of the other solutions. DS.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM
Can't lookup internet address for localhost.localadmin? joshnerl Linux - Newbie 8 04-13-2004 07:30 AM
could not lookup internet address for localhost.localdomain verstapp Linux - Networking 1 03-15-2004 03:44 PM
dns requests from localhost to localhost keex Linux - Networking 2 11-13-2003 01:47 PM
DNS lookup going out for "localhost"?? chris_mate Linux - Networking 6 12-22-2002 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration