LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-25-2004, 11:38 AM   #1
ryoga92
LQ Newbie
 
Registered: Jun 2004
Location: U.S.A.
Distribution: Redhat
Posts: 5

Rep: Reputation: 0
DNS problems with RH 9


I believe that I am having DNS problems with RH 9. I just recently upgraded from RH 7.3 to RH 9. [Prior to the upgrade, I had no problem connecting (via ethernet cable modem with Comcast ISP) to the internet.] I think that it is a DNS problem because I can ping an IP address (198.x.x.x) successfully, but I cannot ping a domain name.

I tried changing the DNS nameservers in my /etc/resolv.conf file, however that does not seem to work.

Could this be an ipv6 related issue?

Does anybody have any suggestions on how to fix this issue?
 
Old 06-25-2004, 11:51 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
could it be an iptables issue?

Try stopping iptables, try to resolve some addresses ... if they work, modify your iptables rules to allow DNS traffic udp/53 out.
 
Old 06-25-2004, 01:15 PM   #3
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
ryoga92; try http://www.tldp.org/HOWTO/HOWTO-INDEX section;4.4.4DNS
and the rest if it helps. other parts to section4.4-4.4.5,4.4.6,4.4.7,4.4.8and 4.4.10
 
Old 06-25-2004, 03:33 PM   #4
hasnain
Member
 
Registered: Jun 2004
Location: Karachi
Distribution: Redhat
Posts: 56

Rep: Reputation: 15
Thumbs up DNS Problem

well ur DNS problem seems to be simple....there can be a number of reasons for not pinging the domain name.....im asuming that u have proper concepts of DNS and have properly configured DNS

1. start the named service

service named start

2. in your network settings add ur domain name in place of DNS
 
Old 06-26-2004, 04:50 PM   #5
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
ryoga92; one more try; try thishttp://tldp.org/HOWTO/HOWTO-INDEX/howtos.html page 12 of56, DNS-HOWTO also section 4.4NetWorking
susections:4.4.1-4.4.10
 
Old 06-26-2004, 11:46 PM   #6
ryoga92
LQ Newbie
 
Registered: Jun 2004
Location: U.S.A.
Distribution: Redhat
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your suggestions. I'll give them a try and let you know how it turns out!
 
Old 06-28-2004, 01:36 AM   #7
ryoga92
LQ Newbie
 
Registered: Jun 2004
Location: U.S.A.
Distribution: Redhat
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks ppuru!

Your suggestion worked. Actually, it was the ipchains service that was the culprit. I guess that since I upgraded from RH 7.3 (which uses kernel 2.2.x), ipchains was used instead of iptables. When I stopped ipchains, everything seemed to work. My plan is to prevent ipchains from starting upon boot and start iptables, instead. Am I correct?

Thanks again!
 
Old 06-28-2004, 02:04 AM   #8
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you can remove ipchains totally.

rpm -e ipchains <and the related dependencies>

#chkconfig --list iptables

You can get it started at init level 2

#chkconfig --level 235 iptables on
 
Old 06-28-2004, 02:19 AM   #9
ryoga92
LQ Newbie
 
Registered: Jun 2004
Location: U.S.A.
Distribution: Redhat
Posts: 5

Original Poster
Rep: Reputation: 0
ppuru,

I haven't removed ipchains yet (although I will soon).
I set iptables for run levels 2,3,4,5. Was there any particular reason for your suggestion of
run levels 235? (Any particular reason for leaving out level 4?)

Also, how can I tell if iptables is properly configured? I used lokkit to specify my firewall with the highest level of security.
Is that good enough?

thanks again!
 
Old 06-28-2004, 03:30 AM   #10
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
I have never used lokkit ... just make sure you don'g get into the same situation you had with ipchains.

you can post the output of

#iptables -nvL

here and request for comments/enhancements.
 
Old 06-28-2004, 05:56 AM   #11
basanta
LQ Newbie
 
Registered: Jun 2004
Posts: 14

Rep: Reputation: 0
Dear mr. ppuru and mr. ali
ryoga92's problem seems to have been solved. but like Mr. ali said is it ok to make the computer itself as a dns server?
 
  


Reply


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 with DNS aqoliveira Linux - Networking 12 10-29-2003 11:01 AM
DNS problems Wimpie22 Linux - Networking 4 05-25-2003 03:30 AM
Dns Problems. SpookMonkey Linux - Networking 0 05-09-2002 11:11 AM
DNS problems (again!) Aleks Linux - Networking 3 01-26-2002 10:58 PM
DNS Problems goochable Linux - Networking 3 05-06-2001 11:40 PM

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

All times are GMT -5. The time now is 06:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration