LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dns not working! (https://www.linuxquestions.org/questions/linux-networking-3/dns-not-working-183599/)

jimthing2001 05-26-2004 08:27 PM

Winsnomore,

The netgear router has been there all along. It worked fine when I used it with just Windows XP, and then I added Linux. It still works fine with windows XP, but wont resolve url names in Linux.

After looking THOUROUGHLY, I found this on my router...maybe it will help.

Maintenence - System Status:
-----------------------------------------------------------------------------------
System Name :
Firmware Version: V3.26(CD.0) | 8/17/2001


WAN Port :
IP Address : 24.211.34.101 DHCP : Client
IP Subnet Mask : 255.255.254.0

LAN Port :
IP Address : 192.168.0.1 DHCP : Server
IP Subnet Mask : 255.255.255.0
-----------------------------------------------------------------------------------



Maintenence - System Table:
-----------------------------------------------------------------------------------
1 192.168.0.1 00
2 192.168.0.2 xxxp 00:50:da:17:be:d0
3 192.168.0.3 metcalfe 00:08:a1:2a:6b:b3
4 192.168.0.4 jhughes 00:04:76:4f:a9:13
5 192.168.0.5 Scarlet 00:80:1e:11:c1:2a
6 192.168.0.6 D9ZX0P11 00:08:74:05:a9:23
-----------------------------------------------------------------------------------

Advanced - LAN:
-----------------------------------------------------------------------------------
Pool Starting Address 192.168.0.1 count = 32
Primary DNS Server 0.0.0.0
Secondary DNS Server 0.0.0.0


LAN TCP/IP:

IP Address 192.168.0.1
IP Subnet Mask 255.255.255.0
-----------------------------------------------------------------------------------



Advanced - Server
-----------------------------------------------------------------------------------
# start port end port server IP address
4662 4662 192.168.0.2
8860 8860 192.168.0.2
-----------------------------------------------------------------------------------


That is about all of the info on my router that might be relevant to the problem.
And one question, what did you mean by "(BTW make sure you remove the static IP address and routes that you entered before starting this way)." What static ip addresses and routes did I enter? Thanks for your help!

mikell

jimthing2001 05-26-2004 09:41 PM

ppuru,

I'll try #iptables -nvL, but I'm not really sure what to look for. Right now my resolv.conf file is being overwritten with this.

search sc.rr.com
nameserver 192.168.0.1


I think that is right, because when I do ipconfig /all in windows, it has 192.168.0.1 next to DNS and DHCP. So obviously the router should be providing all that information. DHCP seems to work fine because I have an ip address of 192.169.0.3.

Dig and nslookup do not work. they both timeout and say server can't be reached.

Any ideas anyone??

jimthing2001 05-27-2004 12:26 AM

YES!! I got it workin. I was looking around other forums and someone said trying the 'service iptables stop' comman and seeing if that helped...I thought it might be a long shot, but it worked. Now...in that same thread, something was mentioned about how that command shuts down your firewall. Anyone have any advice or comments? thanks!

ps. mission number 2 now...get this mouse wheel working...

ppuru 05-28-2004 12:44 AM

Actually your mission #2 should be to get iptables up again and while allowing DNS traffic. Other wise your system will be hacked in no time.

jimthing2001 05-28-2004 01:16 AM

Thats probably a good idea ppuru., and luckily I discovered the "security Level" GUI that let me configure my firewall to allow http/website traffic in. I guess that was the big problem all along, cause after I set that, I restarted the iptables and it worked fine. But just out of curiosity...I started my programming / computer science career my freshmen year in college, and now I'm out and working at a web design company. And I still have no idea how someone could, first of all, even find my computer to hack it, and second, hack it! I mean, how the hell would you do that? I would really love to try that from work, just for fun to see if I could do it. I could drop the iptables, leave for work, and see if I can actually get on this machine. Where would I even start to learn how to do that??

mikell


All times are GMT -5. The time now is 02:47 AM.