LinuxQuestions.org
Help answer threads with 0 replies.
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 08-19-2013, 03:54 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 537

Rep: Reputation: 30
Arrow router dhcp and dnsmasq hosts resolotion problem?


I am running debian wheezy and use the dnsmasq for my local web and mails server, recently i got the D-link Wireless N 300 ASDL2+Modem Router, the router is connected to eth0 of the debian box, the debian box get it is private ip and default gateway 192.168.1.1 from the router dhcp the router ip is 192.168.1.1.
The problem is i cannot reach the outside internet:
Quote:
ping google.com
Unknown host google.com
these are some files:
Quote:
cat /etc/resolv.conf
nameserver 127.0.0.1
Quote:
cat /etc/hosts
127.0.0.1 localhost
Quote:
cat /var/run/dnsmasq/resolv.conf
nameserver 192.168.1.1
I also has ubuntu 12.10 in the same pc, i didn't touch the default configurations of ubuntu the internet is working fine wih the same above router.

Last edited by shams; 08-20-2013 at 08:42 PM.
 
Old 08-28-2013, 06:05 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
Show you routing table, ip, check firewall
Code:
ifconfig -a
iptables -L
route -n
It should show something like that
Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
Can you ping router and external IP?
Code:
ping 192.168.1.1
ping 217.30.152.149
If yes, then problem will be DNS.

Check that your DNS is working, for example
Code:
nmap -PN -p 53 127.0.0.1
nmap -PN -p 53 192.168.1.1
or
dig @127.0.0.1 google.com
dig @192.168.123.1 google.com

Last edited by eSelix; 08-28-2013 at 06:09 PM.
 
Old 08-29-2013, 12:51 PM   #3
shams
Member
 
Registered: Jan 2004
Posts: 537

Original Poster
Rep: Reputation: 30
Thanks for reply, i just changed from the dialup connection to the ADSL router so after some work i configured the system now working fine.
 
  


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
[SOLVED] dnsmasq: how to prevent upstream queries for hosts in /etc/hosts? catkin Linux - Networking 2 02-18-2013 11:50 AM
DHCP: Problem creating Private Network using 3G modem, fedora(DHCP) and wifi router sd|| Linux - Networking 1 07-23-2011 07:12 AM
ppp, dnsmasq, dhcp: a triple chicken-and-egg problem hujuice Linux - Networking 1 04-14-2009 02:37 PM
Problem with dnsmasq. DHCP not working zhjim Linux - Software 7 02-09-2009 10:26 AM
DNSMASQ Wont expand hosts Rooboy Linux - Networking 1 01-18-2005 11:02 AM

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

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