LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-28-2011, 09:35 AM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 115Reputation: 115
emacs freezes doing DNS lookup


When emacs freezes doing a DNS lookup, that makes it rather hard to fix a network configuration file. Why does it need to do that?
 
Old 04-29-2011, 05:32 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Sorry, I don't use emacs... but a quick fix would be to use a plain text editor like vi, nano .. etc.

cheers
 
Old 04-29-2011, 08:35 AM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 115Reputation: 115
In emergency situations like that, I need a familiar keybinding. I've been using emacs for 29 years. But lately they've been doing some really oddball programming on it. It's as if they don't understand stuff like DNS but try to use it, anyway.
 
Old 04-29-2011, 05:35 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
Originally Posted by Skaperen View Post
... I've been using emacs for 29 years. But lately they've been doing some really oddball programming on it...
only lately??? I thought this "editor" has always been overloaded with everything....

but I agree with kbp, you should use an editor instead of emacs.



Markus
 
Old 05-02-2011, 10:23 AM   #5
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by markush View Post
only lately??? I thought this "editor" has always been overloaded with everything....

but I agree with kbp, you should use an editor instead of emacs.



Markus
Well, maybe it's been there a while, but I haven't seen any activity to do DNS lookups for routine editing until recently. Or maybe this only recently made it into a blocking DNS query.
 
Old 05-02-2011, 11:36 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
What I don't understand is why are the DNS-lookups going on? did you check the network-traffic with tcpdump? If your NIC is eth0 use
Code:
tcpdump -i eth0 port 53
in order to check the dns-lookup-traffic. This may verify that actually the lookups make emacs so slow.

Markus
 
Old 05-02-2011, 04:22 PM   #7
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by markush View Post
What I don't understand is why are the DNS-lookups going on? did you check the network-traffic with tcpdump? If your NIC is eth0 use
Code:
tcpdump -i eth0 port 53
in order to check the dns-lookup-traffic. This may verify that actually the lookups make emacs so slow.

Markus
Did that. It was querying the hostname itself when emacs started.
 
Old 05-02-2011, 04:28 PM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
If I understand you correctly you mean that Emacs looks up the ip-adress of the local machine? Maybe you can suppress this with an adequate entry in the /etc/hosts file.

Markus
 
Old 05-03-2011, 09:25 AM   #9
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Original Poster
Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by markush View Post
If I understand you correctly you mean that Emacs looks up the ip-adress of the local machine? Maybe you can suppress this with an adequate entry in the /etc/hosts file.

Markus
I've considering that. But that means deploying a system of updating /etc/hosts, because other programs would be doing lookups and need it to be accurate across all the hosts. This is normally what DNS is for.

I think at this point, just installing an alternate editor like jed will be the quick solution. Emacs is certainly very powerful. I just think that power has gone to the heads of the developers.
 
  


Reply

Tags
emacs


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
Forward DNS lookup to different DNS Servers ghight Linux - Networking 2 09-28-2006 05:54 AM
DNS Lookup machan Linux - Networking 4 07-12-2006 07:47 AM
DNS lookup Cabous Linux - Networking 11 07-18-2005 12:36 AM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM
DNS lookup arsham Linux - General 2 05-07-2005 08:44 AM


All times are GMT -5. The time now is 11:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration