Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-19-2004, 03:02 PM   #1
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 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("")}, 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("")}, [16]) = 43
close(19) = 0
time(NULL) = 1090270763
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("")}, 16

You can see from the trace above that it is doing something on, 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 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
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
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.



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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:52 AM.

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