This is an old revision of the document!
Domain names, domain nameservers, DNS and DHCP
Domain names, Domain nameservers, DNS and DHCP are a key part of the internet back bone.
- DNS (Domain Name System) resolves the text domain names to the relevant IP (Internet Protocol) addresses.
- DHCP (Dynamic Host Configuration Protocol) allows the automatic assignment of IP addresses to hardware via a MAC (Medium Access Control) address, sometime domain names are also assigned.
- IPv4 used a broadcast system for ARP (Address Resolution Protocol)
- IPv6 assigns a link-local address to every network interface. It then uses the link local addresses with neighbor discovery for global IP addressing, with a DHCP or Router Advertisements.
- Each hardware connection point has an associated MAC number to which one or more IP addresses can be assigned
- Unmanaged switches only use tables of the source attached MAC number of the related connected ports for communication.
- An unmanaged switch does not normally have its own MAC number nor IP address.
- It builds a table of source MAC numbers for each port, which it change then use for addressing purposes.
- A port can have multiple source MAC numbers, such when it is attached to another unmanaged switch.
- An unmanaged switch can not transfer data between VLANs (Virtual Local Area Network). It can transfer data on the same VLAN domain.
- Managed switches have a MAC number
- Managed switches usually have an assigned IP address for management access associated with the switch MAC number. (It may be possible that is a separate out of band management port, usually Ethernet, but can be serial port type)
- Managed switches can be Level 2 only, which allows VLANs to be managed and routed between ports.
- Managed switches can be Level 3, which allows IP routing as well as VLANs to function. The IP routing functions are often limited, that is not all IP router functions are available on Level 3 switches.
- The exact management functionality of managed switches varies and not all features maybe available on every model of switch. In fact functionality of managed switches can be expected to vary considerably between models.
- domain names are the text used to identify internet resources. The are registered with a domain name registrar.
- domain nameservers are used to assign IP addresses as well as other information to a domain name.
There are a number of levels of DNS, the system interrogates in the following order:
- host file, this is a basic file on each computer operating system
- The usual automatic entries are:
- The local machine host name and ip address
- The loop back address
- Additional manual entries can be added for any host name and IP address. (This can be hand on occassions, such as setting up VPNs where the setup process changes internet access for DNS stop working. The host file manual can still allow address resolution.
- local dns resolver
- machine based
- many operating systems have a local caching DNS server installed to improve DNS performance.
- LAN based
- This can act as a local caching DNS server and also be used for LAN
- public resolver
- authoritative domain resolver
Public DNS providers
- Quad9, free no commercial foundation
- IPv4 (filtered)
- 9.9.9.9
- 149.112.112.112
- IPv6 (filtered)
- 2620:fe::fe
- 2620:fe::9
- Quad9 Service Addresses & Features some other options
- OpenDNS, belongs to Cisco
- IPv4
- 208.67.222.222
- 208.67.220.220
- IPv4 (filtered family shield, not-configurable)
- 208.67.222.123
- 208.67.220.123
- IPv6 (filtered)
- 2620:119:35::35
- 2620:119:53::53
- IPv6 (unfiltered)
- 2620:0:ccc::2
- 2620:0:ccd::2
- one.one.one.one (Cloudflare)
- IPv4 (unfiltered)
- 1.1.1.1
- 1.0.0.1
- IPv6 (unfiltered)
- 2620:4700:4700::1111
- 2620:4700:4700::1001
- See one.one.one.one/family for filtered options
Linux DNS Setup
The local OS DNS servers are specified in /etc/resolv.conf
The bind9 file that configs the DNS forwarders is /etc/bind/name.conf.options
, the DNS forwarders
are configured.
The kea dhcp configuration has the following related to DNS and gateway setup.
DNS Performance Checker
A good resource for checking DNS performance is from GRC Gibson reserch Corporation (Steve Gibson). The speed checker bench marking program GRC DNS Bench marker is only Windows based. It reportedly runs in Linux/WINE.