LinuxQuestions.org
Help answer threads with 0 replies.
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 03-01-2004, 09:04 AM   #1
complus
Member
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 76

Rep: Reputation: 15
name resolution problem?? Please help - urgent!


Hi - thanks for checking out the post. Any help is extremely appreciated since I'm in an urgent situation to get this working...

I believe I am having some name resolution issues. I have my name server in /etc/resolv.conf . I can ping the IP address from my server, so I know I can see it... but when I try to resolve any names my server just hangs.

I can resolve names that are in my /etc/hosts file. Other than that - nothing. For example, when I try to ping www.yahoo.com it just hangs. Here is the output from ifconfig:
Code:
eth0      Link encap:Ethernet  HWaddr 00:06:5B:8E:18: D7  
          inet addr:10.10.10.217  Bcast:10.10.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1051 errors:0 dropped:0 overruns:0 frame:0
          TX packets:964 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:110161 (107.5 Kb)  TX bytes:372620 (363.8 Kb)
          Interrupt:5 Base address:0xdce0 Memory:feb60000-feb80000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
And the output of route:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.10.10.0      *               255.255.255.0   U     0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         10.10.10.1      0.0.0.0         UG    0      0        0 eth0
Very strange though - it hangs after the 127.0.0.0 route and the default doesn't come up for a good 5 seconds or so... I know I've run into this a while ago but can't remember why that is...

Thanks in advance...
 
Old 03-01-2004, 09:24 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
try dig -x 216.109.117.109 to check your nameserver from resolv.conf

or dig -x 216.109.117.109 @x.x.x.x to check nameserver x.x.x.x directly..
 
Old 03-01-2004, 09:27 AM   #3
complus
Member
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 76

Original Poster
Rep: Reputation: 15
peter - thanks for responding so quickly!

in either case (with and without specifying my DNS) the response I get is:
; <<>> DiG 9.2.1 <<>> -x 216.109.117.109
;; global options: printcmd
;; connection timed out; no servers could be reached


I'm still thinking name resolution problem... but I could be wrong since I am a newbie even though I've been trying to learn Linux for almost a year now

Last edited by complus; 03-01-2004 at 09:29 AM.
 
Old 03-01-2004, 09:30 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
looks like the connection is being blocked...

Turn off your firewall and try again...
 
Old 03-01-2004, 09:33 AM   #5
complus
Member
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 76

Original Poster
Rep: Reputation: 15
Quote:
Turn off your firewall and try again... [/B]
Unfortunately turning off my firewall is not an option... This is an external firewall. I know I have IPTABLES installed on my server, but I have not configure it yet (plan on it as a secondary line of defense but only after I get this working properly). How do I make sure IPTABLES is not running? Here is the output of my ps -ef:

Code:
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 09:46 ?        00:00:03 init
root         2     1  0 09:46 ?        00:00:00 [keventd]
root         3     1  0 09:46 ?        00:00:00 [ksoftirqd_CPU0]
root         8     1  0 09:46 ?        00:00:00 [bdflush]
root         4     1  0 09:46 ?        00:00:00 [kswapd]
root         5     1  0 09:46 ?        00:00:00 [kscand/DMA]
root         6     1  0 09:46 ?        00:00:00 [kscand/Normal]
root         7     1  0 09:46 ?        00:00:00 [kscand/HighMem]
root         9     1  0 09:46 ?        00:00:00 [kupdated]
root        10     1  0 09:46 ?        00:00:00 [mdrecoveryd]
root        16     1  0 09:46 ?        00:00:00 [scsi_eh_0]
root        17     1  0 09:46 ?        00:00:00 [scsi_eh_1]
root        20     1  0 09:46 ?        00:00:00 [kjournald]
root        78     1  0 09:46 ?        00:00:00 [khubd]
root       183     1  0 09:46 ?        00:00:00 [kjournald]
root       184     1  0 09:46 ?        00:00:00 [kjournald]
root       185     1  0 09:46 ?        00:00:00 [kjournald]
root       186     1  0 09:46 ?        00:00:00 [kjournald]
root       187     1  0 09:46 ?        00:00:00 [kjournald]
root       188     1  0 09:46 ?        00:00:00 [kjournald]
root       448     1  0 09:46 ?        00:00:00 syslogd -m 0
root       452     1  0 09:46 ?        00:00:00 klogd -x
root       535     1  0 09:46 ?        00:00:00 /usr/sbin/sshd
root       548     1  0 09:46 ?        00:00:00 gpm -t imps2 -m /dev/mouse
root       557     1  0 09:46 ?        00:00:00 crond
root       565     1  0 09:46 tty1     00:00:00 /sbin/mingetty tty1
root       566     1  0 09:46 tty2     00:00:00 /sbin/mingetty tty2
root       567     1  0 09:46 tty3     00:00:00 /sbin/mingetty tty3
root       568     1  0 09:46 tty4     00:00:00 /sbin/mingetty tty4
root       569     1  0 09:46 tty5     00:00:00 /sbin/mingetty tty5
root       570     1  0 09:46 tty6     00:00:00 /sbin/mingetty tty6
root       571   535  0 09:47 ?        00:00:00 /usr/sbin/sshd
root       573   571  0 09:47 pts/0    00:00:00 -bash
root       722   573  0 10:31 pts/0    00:00:00 ps -ef
Thanks.
 
Old 03-01-2004, 09:38 AM   #6
complus
Member
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 76

Original Poster
Rep: Reputation: 15
Actually - sorry - I didn't even realize that iptables was listed as one of the services to start on boot. I disabled it and rebooted. But I still get the same results.

The config of my external firewall has not changed and it was working previously, so I don't think the external firewall is the problem. It seems that someone on my server itself is the culprit....
 
Old 03-01-2004, 10:04 AM   #7
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
do iptables-save to print your current rules on the screen...

If any are listed, do /etc/init.d/iptables stop and see if they clear.

If it's not you blocking them, then you have to look further out...
 
Old 03-01-2004, 10:56 AM   #8
complus
Member
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 76

Original Poster
Rep: Reputation: 15
Well - it was in fact the external firewall. I compared configs from now and before this all happened.. and there was a freaking typo!! A hyphen was used instead of an underscore....


Thanks so much for your help peter
 
Old 03-01-2004, 11:00 AM   #9
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
 
  


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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 10:21 AM
Urgent !!! Monitor resolution problem in Suse 9.2 vitalstatistix Linux - Software 2 04-14-2005 02:47 PM
URGENT problem...please help!!! otacon 14112 Linux - Networking 8 12-02-2004 11:23 PM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 02:22 AM
Urgent Problem quozt Linux - General 30 08-22-2003 05:37 PM

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

All times are GMT -5. The time now is 12:58 AM.

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