From 5aafb2bf78ba7e421d75cdef028850a6dc8c286f Mon Sep 17 00:00:00 2001 From: Shulhan Date: Wed, 28 Jan 2026 00:15:52 +0700 Subject: all: set the resolv.conf symlinked to systemd stub-resolv.conf The default resolv.conf is empty. This cause program that depends on resolv.conf for name resolution will fail. As a test, we create small Go program "cmd/golookup" that can lookup IP address of host name using pure Go resolver (using/etc/resolv.conf). --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index aac02ab..8a6af9a 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,8 @@ image.publish: awwan local gcloud-image-cleanup.aww 5- .PHONY: image.test -image.test: - awwan local gcloud-image-test.aww 4-18 +image.test: golookup + awwan local gcloud-image-test.aww 4-25 ## Preview the .md files in local using [ciigo]. ## Open http://127.0.0.1:8080/README.html to preview the README. @@ -27,3 +27,8 @@ image.test: .PHONY: serve.doc serve.doc: ciigo -address 127.0.0.1:8080 serve . + +golookup: CGO_ENABLED=0 +golookup: cmd/golookup/main.go + go build ./cmd/golookup + go version -m golookup -- cgit v1.3