1. Install dnsmasq
# install "dnsmasq" package from `ModMyi`
apt-get install uk.org.thekelleys.dnsmasq
/etc/resolv.conf
nameserver 8.8.8.8
ping
- "inetutils"(Cydia)nslookup
,dig
,host
- "BIND DNS Server"(Cydia), which also needs/etc/resolv.conf
filetraceroute
- "network-cmds"(Cydia)
# list all installed packages
dpkg -l
# list installed package's files
# `-L` stands for `--listfiles`
dpkg-query -L <package_name>
#or
dpkg -L <package_name>
# list files that `deb` package will install
# `-c` stands for `--contents`
dpkg-query -c <package_name.deb>
for more, please visit here
- expose DNS port which is
53
(includes DNS(TCP) and DNS(UDP)) in most cases - change
/etc/resolv.conf
to configure dns server, e.g. you can use8.8.8.8
as your nameserver - install
dnsmasq
apt-get install dnsmasq
service dnsmasq start
- edit
/etc/dnsmasq.conf
and add additional host file config -addn-hosts=/etc/hosts.acme
difference between
dnsmasq
andresolvconf
can be found here
Add this line address=/googlevideo.com/127.0.0.1
to /etc/dnsmasq.conf
.
NOTE: 127.0.0.1 is the ip you want to resolved to.