-
2 compartment consist of [[tailscale]] & [[openwrt]] and wanting to introduce
adguard home
orpi hole
-
revisit some [[networking]] terminologies
-
[[dns]]: domain name system
-
dns
: take a domainexample.com
and resolve into ip address192.0.0.1
-
reverse dns
: take an ip address192.0.0.1
and then turn it to a domainexample.com
-
upstream, local dns
andetc/hosts
: adomain
usually resolved by following order:-
/etc/hosts
: the record in here is absolute, usuallylocalhost
-
nameserver
: then it senddomain
tonameserver
to resolvedomain
ip-
usually an
ip address
withport 53
, could be your localhost:53, could be1.1.1.1
or8.8.8.8
-
-
nameserver
will also check/etc/hosts
and if not available then will be sent to anotherupstream nameserver
, usually ended with your isp nameserver -
where do we get
nameserver
from?: usually it automatically assign from yourrouter
alongside with yourip address
throughdhcp
-
-
dhcp
: dynamic host configuration protocol-
tl;dr: the protocol usually run on your
router
to automatically assign yourip address
anddns nameserver
-
without
ip address
your machine will not have internet to use, since there is no ip address to establish the connection wit -
so if i turned of my
dhcp service
from my router, how the hell that i can manually assignip address
to my machines-
this way harder than it sound and should not rely on external thing to manage
ip address
since [[openwrt]] already doing a great job at this
-
-
-
-
our dns still resolve for local domain probably due to resolution order
-
since we only forward what we can’t resolve so nothing really happened
-