Autosave: 2024-06-12 18:45:04
This commit is contained in:
parent
5c0ffb2c07
commit
811cabc825
4 changed files with 70 additions and 1 deletions
BIN
.zk/notebook.db
BIN
.zk/notebook.db
Binary file not shown.
12
zk/Headless_network_setup.md
Normal file
12
zk/Headless_network_setup.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
id: hb10
|
||||
title: Headless network setup
|
||||
tags: []
|
||||
created: Wednesday, June 12, 2024
|
||||
---
|
||||
# Headless network setup
|
||||
|
||||
|
||||
## Related notes
|
||||
|
||||
|
|
@ -19,4 +19,17 @@ arp-scan --interface=wlan0 --localnet
|
|||
nmap -sn 192.168.0.0/24
|
||||
```
|
||||
|
||||
## Related notes
|
||||
## Check DNS resolution
|
||||
|
||||
```sh
|
||||
dig google.com
|
||||
```
|
||||
|
||||
Key output:
|
||||
|
||||
```
|
||||
;; Query time: 6 msec
|
||||
;; SERVER: 192.168.0.4#53(192.168.0.4) (UDP)
|
||||
;; WHEN: Wed Jun 12 18:27:27 BST 2024
|
||||
;; MSG SIZE rcvd: 55
|
||||
```
|
||||
|
|
44
zk/Set_DNS_settings.md
Normal file
44
zk/Set_DNS_settings.md
Normal file
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
id: 2w0e
|
||||
title: Set DNS settings
|
||||
tags: [Linux, networks]
|
||||
created: Wednesday, June 12, 2024
|
||||
---
|
||||
|
||||
# Set DNS settings
|
||||
|
||||
## Change the default DNS server
|
||||
|
||||
On Arch and most modern Linux distributions domain name resolution is handled
|
||||
via the `systemd-resolved` #systemd configuration.
|
||||
|
||||
Within the system systemd files this will be handled in
|
||||
`/systemd/network/wired.network` or `systemd/network/wlan.network` files etc.
|
||||
|
||||
In the file below I have turned of DHCP routing and specified the address of my
|
||||
Pi-hole device to handle domain name resolution:
|
||||
|
||||
```
|
||||
#wlan.network
|
||||
|
||||
[Match]
|
||||
Name=wl*
|
||||
|
||||
[Link]
|
||||
RequiredForOnline=routable
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
||||
DNS=192.168.0.4
|
||||
MulticastDNS=yes
|
||||
|
||||
[DHCPv4]
|
||||
UseDNS=no
|
||||
RouteMetric=600
|
||||
|
||||
[IPv6AcceptRA]
|
||||
RouteMetric=600
|
||||
|
||||
```
|
||||
|
||||
## Related notes
|
Loading…
Add table
Reference in a new issue