-
2 compartment consist of [[tailscale]] & [[openwrt]] and wanting to introduce
adguard homeorpi hole -
revisit some [[networking]] terminologies
-
[[dns]]: domain name system
-
dns: take a domainexample.comand resolve into ip address192.0.0.1 -
reverse dns: take an ip address192.0.0.1and then turn it to a domainexample.com -
upstream, local dnsandetc/hosts: adomainusually resolved by following order:-
/etc/hosts: the record in here is absolute, usuallylocalhost -
nameserver: then it senddomaintonameserverto resolvedomainip-
usually an
ip addresswithport 53, could be your localhost:53, could be1.1.1.1or8.8.8.8
-
-
nameserverwill also check/etc/hostsand if not available then will be sent to anotherupstream nameserver, usually ended with your isp nameserver -
where do we get
nameserverfrom?: usually it automatically assign from yourrouteralongside with yourip addressthroughdhcp
-
-
dhcp: dynamic host configuration protocol-
tl;dr: the protocol usually run on your
routerto automatically assign yourip addressanddns nameserver -
without
ip addressyour 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 servicefrom my router, how the hell that i can manually assignip addressto my machines-
this way harder than it sound and should not rely on external thing to manage
ip addresssince [[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
-