diff --git a/cmd/gvproxy/main.go b/cmd/gvproxy/main.go index 137c09c1e..6cffa2e16 100644 --- a/cmd/gvproxy/main.go +++ b/cmd/gvproxy/main.go @@ -111,6 +111,19 @@ func main() { "192.168.127.2": "5a:94:ef:e4:0c:ee", }, DNS: []types.Zone{ + { + Name: "containers.internal.", + Records: []types.Record{ + { + Name: "gateway", + IP: net.ParseIP("192.168.127.1"), + }, + { + Name: "host", + IP: net.ParseIP("192.168.127.254"), + }, + }, + }, { Name: "apps-crc.testing.", DefaultIP: net.ParseIP("192.168.127.2"), diff --git a/test/basic_test.go b/test/basic_test.go index f225653f3..7b7fadfac 100644 --- a/test/basic_test.go +++ b/test/basic_test.go @@ -47,9 +47,15 @@ var _ = Describe("dns", func() { Expect(string(out)).To(ContainSubstring("Address: 209.132.183.105")) }) - It("should resolve gateway.crc.testing", func() { - out, err := sshExec("nslookup gateway.crc.testing") + It("should resolve gateway.containers.internal", func() { + out, err := sshExec("nslookup gateway.containers.internal") Expect(err).ShouldNot(HaveOccurred()) Expect(string(out)).To(ContainSubstring("Address: 192.168.127.1")) }) + + It("should resolve host.containers.internal", func() { + out, err := sshExec("nslookup host.containers.internal") + Expect(err).ShouldNot(HaveOccurred()) + Expect(string(out)).To(ContainSubstring("Address: 192.168.127.254")) + }) })