[Dnsmasq-discuss] Help: computer overwrites my server=/blabal/filed
Niklas Johansson
raphexion at gmail.com
Fri May 1 10:43:27 BST 2015
Hey,
I am having some troubles. Maybe someone can help me.
Thankful for any help
Niklas
@brief
I am trying to block a site with a reg-exp
It works fine after restart.
I surf into a site (www.svd.se) on another laptop
Now my hardcoded IPs are overwritten :(
@steps before surfing in with laptop
$ dnsmasq -v
Dnsmasq version 2.62 Copyright (c) 2000-2012 Simon Kelley
$ cat /etc/dnsmasq.conf | grep conf-file
conf-file=/etc/dnsmasq.conf.adblock
conf-file=/etc/dnsmasq.conf.trackblock
conf-file=/etc/dnsmasq.conf.adblock_re
$ cat /etc/dnsmasq.conf.adblock_re
server=/[\.a-zA-Z0-9]*2o7\.net/127.0.0.1
$ sudo service dnsmasq restart
[ ok ] Restarting DNS forwarder and DHCP server: dnsmasq.
$ dig a.b.c.2o7.net
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> a.b.c.2o7.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56636
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;a.b.c.2o7.net. IN A
;; ANSWER SECTION:
a.b.c.2o7.net. 0 IN A 127.0.0.1
;; Query time: 23 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri May 1 11:32:31 2015
;; MSG SIZE rcvd: 47
$ dig svd.112.2o7.net
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> svd.112.2o7.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 125
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;svd.112.2o7.net. IN A
;; ANSWER SECTION:
svd.112.2o7.net. 0 IN A 127.0.0.1
;; Query time: 12 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri May 1 11:33:31 2015
;; MSG SIZE rcvd: 49
$ dig svd.112.2o7.net # One more time
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> svd.112.2o7.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37402
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;svd.112.2o7.net. IN A
;; ANSWER SECTION:
svd.112.2o7.net. 0 IN A 127.0.0.1
;; Query time: 12 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri May 1 11:35:29 2015
;; MSG SIZE rcvd: 49
@On another computer surf into www.svd.se
@ Steps when it goes wrong
$ dig svd.112.2o7.net # After laptop surfed in
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> svd.112.2o7.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26875
;; flags: qr rd ra; QUERY: 1, ANSWER: 10, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;svd.112.2o7.net. IN A
;; ANSWER SECTION:
svd.112.2o7.net. 175 IN A 66.235.139.19
svd.112.2o7.net. 175 IN A 66.235.139.18
svd.112.2o7.net. 175 IN A 66.235.139.17
svd.112.2o7.net. 175 IN A 66.235.139.207
svd.112.2o7.net. 175 IN A 66.235.139.206
svd.112.2o7.net. 175 IN A 66.235.139.205
svd.112.2o7.net. 175 IN A 66.235.138.194
svd.112.2o7.net. 175 IN A 66.235.138.195
svd.112.2o7.net. 175 IN A 66.235.138.193
svd.112.2o7.net. 175 IN A 66.117.29.38
;; Query time: 19 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri May 1 11:37:51 2015
;; MSG SIZE rcvd: 193
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20150501/d48a8f95/attachment.html>
More information about the Dnsmasq-discuss
mailing list