LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Web browsers cannot open the local web servers? (https://www.linuxquestions.org/questions/linux-networking-3/web-browsers-cannot-open-the-local-web-servers-4175423574/)

shams 08-23-2012 05:51 AM

Web browsers cannot open the local web servers?
 
I use debian wheezy with dnsmasq and apache2 as dns and web servers, i have local domains for local web servers that was working ok, but since few days when i want to open the local web server, web browser is asking from the upstream dns nameservers to resolve the address and apparently this fail this is the result of nslookup for the local domain:
Quote:

# nslookup example.dynet.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: example.dynet.com
Address: 192.168.1.1
but cannot ping the local domain:
Quote:

# ping example.dynet.com
PING example.dynet.com (192.168.1.1) 56(84) bytes of data.
From 58.27.222.13 icmp_seq=2 Packet filtered
From 58.27.222.13 icmp_seq=8 Packet filtered
^C
--- example.dynet.com ping statistics ---
55 packets transmitted, 0 received, +2 errors, 100% packet loss, time 63442ms
any idea pleas?

unSpawn 08-23-2012 07:31 AM

Quote:

Originally Posted by shams (Post 4761957)
(..) was working ok, but since few days (..) web browser is asking from the upstream dns nameservers to resolve the address (..)
any idea pleas?

So what changed configuration-wise between "was working ok" and "since few days"?

jefro 08-23-2012 10:27 AM

http://homepage.ntlworld.com/jonatha...t-to-ping.html

unSpawn 08-23-2012 10:36 AM

Well-spotted!

shams 08-24-2012 12:14 AM

thanks for the replies the tor was installed and was desabled i enabled that but now it is completely removed and i still cannot ping the local domain.
The new thing i just found is i use the resolveconf with dnsmasq, the file "/var/run/dnasmasq/resolv.conf" is empty that was not empty before. the main "/etc/resolv.conf" is configured for the local nameserver 127.0.0.1 and there is two more files /etc/resolv.dnsmasq for the upstream nameservers and /etc/hosts.dnsmasq for the local domains which is:
Quote:

127.0.0.1 localhost
192.168.1.1 debian.example.net example.net example.dynet.com example.linkpc.net
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
this part of dnsmasq.conf is configured as:
Quote:

# Add other name servers here, with domain specs if they are for
# non-public domains.
#server=/localnet/192.168.0.1
server=208.67.222.123
server=208.67.222.222
server=208.67.220.220
I was thinking if this is the problem of this part of dnsmasq.conf so i removed the above name servers but the new problem i get even then cannot ping the global net is well and not the loal domains is before.


All times are GMT -5. The time now is 12:13 PM.