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-12-2003, 01:27 PM   #1
shorttimer
LQ Newbie
 
Registered: Mar 2003
Posts: 2

Rep: Reputation: 0
Unhappy Linux PC not getting name service


I have a PC set up to dual-boot Win2k and Red Hat 8.0. My organization just got its own domain and class C service. We have a dedicated box providing web, mail, and DNS service, and its running on all cylinders. I had no problem configuring Win2k to use the new static IP address, gateway, subnet mask, and DNS servers. But after installing RH 8.0 on a second disk, I can ping out to other machines but I'm not getting any name service under Linux.

Setup:
> Intel box running RH 8.0
> static IP address on a LAN w/ class C domain
> PC has a single Fast Ethernet connection to LAN
> a local machine runs BIND, sendmail, Apache
> have local machine as primary DNS, outside machines for secondary and tertiary
> ipchains appears to be running (I didn't want it, but that's what Anaconda wants me to have), I made sure everything is allowed

Symptoms:
> from Linux I can ping other machines inside our router
> from Linux I can ping the server box which is running BIND
> when running Linux I don't get any name resolution when using ping or nslookup, even when specifying 1st, 2nd, or 3rd nameserver numerically on nslookup command line
> an SGI workstation on the LAN gets name service OK
> from my PC running Win2k I get name service OK; can ping, nslookup, surf web etc.

I am stumped. It can't be the DNS server, other machines get name service just fine. Can't be the PC itself or its network connection, as everything works fine when running Win2k. The ethernet device definition in Linux must be OK, since I can numerically ping other local machines when running Linux.

What the heck is going on?
 
Old 03-12-2003, 01:54 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Add your names servers IP address to the /etc/resolv.conf. Also
make sure that there is no firewall running (stop iptables/ipchains).
 
Old 03-12-2003, 02:06 PM   #3
aetengoku
LQ Newbie
 
Registered: Mar 2003
Posts: 20

Rep: Reputation: 0
does your resolv.conf have your domain entered

domain <domain name>
nameserver <ip address>
 
Old 03-12-2003, 05:27 PM   #4
osfestus
Member
 
Registered: Feb 2003
Posts: 92

Rep: Reputation: 15
check iptables. Lokkit probably didn't do it, but often it will add something like

-A RH-Lokkit-0-50-INPUT -p udp -m udp -s xxx.xxx.xxx.xxx --sport 53 -d 0/0 -j ACCEPT (xxx.xxx.xxx.xxx being your nameserver)

This will likely clear it up without disabling iptables altogether assuming that your problem is firewall related. You can just stop iptables and see if it starts working.

jeff
 
Old 03-13-2003, 04:38 PM   #5
shorttimer
LQ Newbie
 
Registered: Mar 2003
Posts: 2

Original Poster
Rep: Reputation: 0
resolv.conf was OK (identical to other machines here), but I think iptables was hosing it. I fumbled around some with it and the DNS info started getting thru. Not sure what I did that made the difference, but I seem to be up and running.

thx
 
  


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
Linux fax service colabus Linux - Software 1 03-28-2005 04:31 PM
/sbin/service is empty every weekend and changed to service.1 LineS Linux - General 0 05-24-2004 02:08 AM
Trying to Install linux service AndreL Linux - Networking 4 04-06-2004 03:41 AM
Internet Service for Linux Demenz4Life Linux - Networking 3 01-19-2004 12:25 AM
programming service in linux herambshembekar Programming 2 04-07-2002 07:27 AM

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

All times are GMT -5. The time now is 10:52 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
Open Source Consulting | Domain Registration