Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
Env Debian 9.12
dnsmasq 2.76-5+deb9u2
in /etc/dnsmasq.conf i put the following line
address=/akamaized.net/127.0.0.1
but if issue
ping mediagol-meride-tv.akamiazed.net
it does not route to local host 127.0.0.1
it find an answering internet router...
what i'm missing ?
thanks in adavance
Maurizio
going in /etc/init.d and restarting dnsmasq it issue a message stating resolv.conf not find ...according to debian wiki i set in dnsmasq the line
no-resolv
now dnsmasq starts without issuing any error messages ...
but it still does not work ..ping continue to reach destination servers
Hi
i write again into dnsmasq.conf
# no-resolv
then i go in /etc and i issue
ls -l resolv.conf
lrwxrwxrwx 1 root root 35 Apr 20 11:58 resolv.conf -> /var/run/NetworkManager/resolv.conf
opening the file i can read
# Generated by NetworkManager
nameserver 192.168.42.129
i write as first line
nameserver 127.0.0.1
save the file and restart dnsmasq service
issue
ping mediagol-meride-tv.akamaized.net
it correctly routes to localhost
but resolv.conf is generated automatically each time network manager starts
so i lost at every boot "nameserver 127.0.0.1"
how to proceeed ?
any help will be appreciated
Maurizio
DNSMasq reads the /etc/hosts file to pre-load tables. I suggest you put an entry "127.0.0.1 <name>" for the hosts you want to block by redirecting to localhost. That will preload that filtering into DNSMasq on startup.
Hi
I already use hosts file to filter data ....but in hosts file i have to specify the full address name ....in the dnsmasq.conf i can specify address=/akamaized.net/
and it blocks all domain addresses ...
this trackers are smart and use a lot of different address ...
there is a github hosts file well maintened ...but it is huge and network performances decrease ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.