Visit Jeremy's Blog.
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 10-30-2004, 07:21 AM   #1
LQ Newbie
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
Not connecting to my DNS nameserver


I am using an ISP connection (dialup modem) using wvdial with REDHAT 8
I am getting assigned IP address and my routing table looks fine.

But i am nt able to browse the Internet , since the DNS lookup is failing

I have the following two entries in my /etc/resolv.conf


I am able to ping these Server IPs. Also, i tried giving an IP address of
yahoo(i found this by dialing up from windows), and my yahoo first page came up.

So, i could figure out that the routing is fine , but somehow my DNS look up is failing

Then i tried the following 'strace route' When i do this, i found the
tcp connect (... ) not succeeding on both the nameserver ips mentioned above

I also tried telnet <ip> 53 ( assuming 53 is where DNS server listens to )

Again, I also tried giving the IP address of some Public Domain Nameserver
ie ...etc , but no luck :-(

Is there anything i am missing.?

Can someone pls help me ?

Thanks in advance

When i use the same dialup connection in Windows 98 and then using winipcfg command , i found that that the "above" DNS IP addresses are
present in DNS IP in "More info" tab
Old 10-30-2004, 07:34 AM   #2
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Have you checked to see if your linux box is starting a firewall script of some kind that is blocking DNS requests? I don't remember what RH8 used, but its either ipchains -L or iptables -L.
Old 10-30-2004, 07:35 AM   #3
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Make sure you do not have a gateway set on the connecting box because it will try to connect via a network card if you have one.
Old 10-30-2004, 08:18 AM   #4
LQ Newbie
Registered: Oct 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Hi ,

It is working now :-) am writing this browsing thru my linux box :-)

Thanks a lot to the reply esp. from scowles

I tried iptables -L . saw the following

[root@localhost root]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Lokkit-0-50-INPUT (1 references)
target prot opt source destination
ACCEPT udp -- anywhere udp spt:domain dpts:1025:65535
ACCEPT udp -- anywhere udp spt:domain dpts:1025:65535
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp flags:SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere tcp dpt:http flags:SYN,RST,ACK/SYN
ACCEPT all -- anywhere anywhere
REJECT tcp -- anywhere anywhere tcp flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT udp -- anywhere anywhere udp reject-with icmp-port-unreachable

I used lokkit and disabled the firewall and then I am able to reach DNS and am able to browse :-)

BTW, i have a question :: The firewall rules seem OK to me ,, ie it should accept UDP Packets
from the and . Still somehow the packets were nt accepted ( when the firewall rule
was present )

Any thing i am missing here?

Thanks a lot



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
problems connecting to dns server Paintballguy59 Linux - Networking 6 10-28-2004 12:55 PM
BT Broadband DNS Nameserver Jaymac Linux - Networking 2 05-28-2004 09:36 AM
Gentoo DNS(nameserver)! Xerop Linux - Networking 3 05-20-2004 06:47 AM
DNS nameserver issue - pppsetup the_rydster Slackware 2 03-04-2004 09:09 AM
BIND: wildcard DNS and nameserver noisybastard Linux - Networking 0 10-05-2003 04:13 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:12 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