Skip to content

Instantly share code, notes, and snippets.

@grahamc
Created June 3, 2019 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/37c2d42c86e3c83ced06dd2d323c8e5c to your computer and use it in GitHub Desktop.
Save grahamc/37c2d42c86e3c83ced06dd2d323c8e5c to your computer and use it in GitHub Desktop.
machine: must succeed: ip link set eth0 down
machine# [ 6.145621] dhcpcd[785]: eth0: carrier lost
machine: exit status 0
(0.01 seconds)
machine: must fail: systemd-cat /nix/store/yl40s9qnr3sjnknsxzxhh3rk0bfswzd7-bind-9.12.4-P1-dnsutils/bin/dig A bogus.com
machine# [ 6.179560] dhcpcd[785]: eth0: deleting address fe80::5054:ff:fe12:3456
machine# [ 6.180707] dhcpcd[785]: eth0: deleting route to 10.0.2.0/24
machine# [ 6.181600] dhcpcd[785]: eth0: deleting default route via 10.0.2.2
machine# [ 6.234242] nscd[772]: 772 monitored file `/etc/resolv.conf` was written to
machine# [ 6.249201] systemd[1]: Stopping Name Service Cache Daemon...
machine# [ 6.253453] systemd[1]: Stopped Name Service Cache Daemon.
machine# [ 6.256160] systemd[1]: Starting Name Service Cache Daemon...
machine# [ 6.282103] nscd[854]: 854 monitoring file `/etc/passwd` (1)
machine# [ 6.283102] nscd[854]: 854 monitoring directory `/etc` (2)
machine# [ 6.284335] nscd[854]: 854 monitoring file `/etc/group` (3)
machine# [ 6.285609] nscd[854]: 854 monitoring directory `/etc` (2)
machine# [ 6.286921] nscd[854]: 854 monitoring file `/etc/hosts` (4)
machine# [ 6.288405] nscd[854]: 854 monitoring directory `/etc` (2)
machine# [ 6.293173] nscd[854]: 854 monitoring file `/etc/resolv.conf` (5)
machine# [ 6.294815] nscd[854]: 854 monitoring directory `/etc` (2)
machine# [ 6.296331] nscd[854]: 854 monitoring file `/etc/services` (6)
machine# [ 6.299527] nscd[854]: 854 monitoring directory `/etc` (2)
machine# [ 6.300823] nscd[854]: 854 disabled inotify-based monitoring for file `/etc/netgroup': No such file or directory
machine# [ 6.302473] nscd[854]: 854 stat failed for file `/etc/netgroup'; will try again later: No such file or directory
machine# [ 6.305559] systemd[1]: Started Name Service Cache Daemon.
machine# [ 24.263350] dig[806]: ; <<>> DiG 9.12.4-P1 <<>> A bogus.com
machine# [ 24.264262] dig[806]: ;; global options: +cmd
machine# [ 24.265228] dig[806]: ;; connection timed out; no servers could be reached
machine: exit status 9
(18.12 seconds)
machine: must fail: systemd-cat ping -c1 bogus.com
machine# [ 24.301756] ping[873]: ping: bogus.com: Name or service not known
machine: exit status 2
(0.04 seconds)
machine: must fail: WG_ENDPOINT_RESOLUTION_RETRIES=infinity systemd-cat wg set wg0 peer t4kkmbExKLGnKPG6pUU0XjhR8YDfEi8GrltdM3Yhj10= allowed-ips 10.10.10.10/32 endpoint bogus.com:12345
machine# [ 24.327813] .wg-wrapped[874]: Name or service not known: `bogus.com:12345'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment