Hi ,
I'm beginner and I'm trying to forward dns local request to my local web server in order to block games and movie website in the lan.
There are 2 virtual machines: a webserver and a dns server (dnsmasq server)
and 2 client.
192.168.1.3 is the webserver
192.168.1.4 is the dnsmasq server
1) webserver can ping dnsmasq server and viceversa.
2) Dnsmasq works and resolve the example address
3) I can call the webserver page from any client by IP
4) The clients can ping the dnsmasq server and the webserver and viceversa
dig command returns the right webserver ip (192.168.1.3)
I configured the router with dns server ( dnsmasq , that is 192.168.1.4)
Configuration files:
/etc/dnsmasq.conf :
no-dhcp-interface=
server=8.8.8.8
no-hosts
addn-hosts=/etc/dnsmasq.hosts
/etc/dnsmasq.hosts :
192.168.1.3 www.gamexample.com
Log queries from dnsmasq returns the right ip ( 192.168.1.3) so when the client write for example
www.gamexample.com , the request is forwarded to 192.168.1.3 ( the webserver).
The webserver is just a webpage with "forbidden" message.
The problem:
When I write the name ( www.gamexample.com) the browser returns 'ERR_CONNECTION_REFUSED'
Dnsmasq works becouse it return the right IP , but i cant use that name..Can you help me ?
Sorry for bad english , I'm learning it
if you need clarification , just ask please
Thanks so much for any help
I'm beginner and I'm trying to forward dns local request to my local web server in order to block games and movie website in the lan.
There are 2 virtual machines: a webserver and a dns server (dnsmasq server)
and 2 client.
192.168.1.3 is the webserver
192.168.1.4 is the dnsmasq server
1) webserver can ping dnsmasq server and viceversa.
2) Dnsmasq works and resolve the example address
3) I can call the webserver page from any client by IP
4) The clients can ping the dnsmasq server and the webserver and viceversa
dig command returns the right webserver ip (192.168.1.3)
I configured the router with dns server ( dnsmasq , that is 192.168.1.4)
Configuration files:
/etc/dnsmasq.conf :
no-dhcp-interface=
server=8.8.8.8
no-hosts
addn-hosts=/etc/dnsmasq.hosts
/etc/dnsmasq.hosts :
192.168.1.3 www.gamexample.com
Log queries from dnsmasq returns the right ip ( 192.168.1.3) so when the client write for example
www.gamexample.com , the request is forwarded to 192.168.1.3 ( the webserver).
The webserver is just a webpage with "forbidden" message.
The problem:
When I write the name ( www.gamexample.com) the browser returns 'ERR_CONNECTION_REFUSED'
Dnsmasq works becouse it return the right IP , but i cant use that name..Can you help me ?
Sorry for bad english , I'm learning it
if you need clarification , just ask please
Thanks so much for any help