@@ -238,22 +238,24 @@ var _ = Describe("sslip.io-dns-server", func() {
238
238
digCmd = exec .Command ("dig" , strings .Split (digArgs , " " )... )
239
239
digSession , err = Start (digCmd , GinkgoWriter , GinkgoWriter )
240
240
Expect (err ).ToNot (HaveOccurred ())
241
+ Eventually (digSession ).Should (Say (`146.190.110.69` ))
242
+ Eventually (digSession ).Should (Say (`104.155.144.4` ))
241
243
Eventually (digSession ).Should (Say (`5.78.115.44` ))
242
244
Eventually (digSession ).Should (Say (`51.75.53.19` ))
243
- Eventually (digSession ).Should (Say (`51.79.178.89` ))
244
245
Eventually (digSession , 1 ).Should (Exit (0 ))
245
- Eventually (string (serverSession .Err .Contents ())).Should (MatchRegexp (`TypeA ns.sslip.io. \? 5.78.115.44, 51.75.53.19, 51.79.178.89 \n` ))
246
+ Eventually (string (serverSession .Err .Contents ())).Should (MatchRegexp (`TypeA ns.sslip.io. \? 146.190.110.69, 104.155.144.4, 5.78.115.44, 51.75.53.19\n` ))
246
247
})
247
248
It ("returns all the AAAA records" , func () {
248
249
digArgs = "@localhost aaaa ns.sslip.io +short -p " + strconv .Itoa (port )
249
250
digCmd = exec .Command ("dig" , strings .Split (digArgs , " " )... )
250
251
digSession , err = Start (digCmd , GinkgoWriter , GinkgoWriter )
251
252
Expect (err ).ToNot (HaveOccurred ())
253
+ Eventually (digSession ).Should (Say (`2400:6180:0:d2:0:1:da21:d000` ))
254
+ Eventually (digSession ).Should (Say (`2600:1900:4000:4d12::` ))
252
255
Eventually (digSession ).Should (Say (`2a01:4ff:1f0:c920::` ))
253
256
Eventually (digSession ).Should (Say (`2001:41d0:602:2313::1` ))
254
- Eventually (digSession ).Should (Say (`2402:1f00:8001:d59::1` ))
255
257
Eventually (digSession , 1 ).Should (Exit (0 ))
256
- Eventually (string (serverSession .Err .Contents ())).Should (MatchRegexp (`TypeAAAA ns.sslip.io. \? 2a01:4ff:1f0:c920::, 2001:41d0:602:2313::1, 2402:1f00:8001:d59 ::1\n` ))
258
+ Eventually (string (serverSession .Err .Contents ())).Should (MatchRegexp (`TypeAAAA ns.sslip.io. \? 2400:6180:0:d2:0:1:da21:d000, 2600:1900:4000:4d12::, 2a01:4ff:1f0:c920::, 2001:41d0:602:2313::1\n` ))
257
259
})
258
260
})
259
261
When ("there are multiple MX records returned (e.g. sslip.io)" , func () {
@@ -274,21 +276,24 @@ var _ = Describe("sslip.io-dns-server", func() {
274
276
digCmd = exec .Command ("dig" , strings .Split (digArgs , " " )... )
275
277
digSession , err = Start (digCmd , GinkgoWriter , GinkgoWriter )
276
278
Expect (err ).ToNot (HaveOccurred ())
277
- Eventually (digSession ).Should (Say (`flags: qr aa rd; QUERY: 1, ANSWER: 3 , AUTHORITY: 0, ADDITIONAL: 6 ` ))
279
+ Eventually (digSession ).Should (Say (`flags: qr aa rd; QUERY: 1, ANSWER: 4 , AUTHORITY: 0, ADDITIONAL: 8 ` ))
278
280
Eventually (digSession ).Should (Say (`;; ANSWER SECTION:` ))
279
281
Eventually (digSession ).Should (Say (`;; ADDITIONAL SECTION:` ))
282
+ Eventually (digSession ).Should (Say (`ns-do-sg.sslip.io..*146.190.110.69\n` ))
283
+ Eventually (digSession ).Should (Say (`ns-do-sg.sslip.io..*2400:6180:0:d2:0:1:da21:d000\n` ))
284
+ Eventually (digSession ).Should (Say (`ns-gce.sslip.io..*104.155.144.4\n` ))
285
+ Eventually (digSession ).Should (Say (`ns-gce.sslip.io..*2600:1900:4000:4d12::\n` ))
280
286
Eventually (digSession ).Should (Say (`ns-hetzner.sslip.io..*5.78.115.44\n` ))
281
287
Eventually (digSession ).Should (Say (`ns-hetzner.sslip.io..*2a01:4ff:1f0:c920::\n` ))
282
288
Eventually (digSession ).Should (Say (`ns-ovh.sslip.io..*51.75.53.19\n` ))
283
289
Eventually (digSession ).Should (Say (`ns-ovh.sslip.io..*2001:41d0:602:2313::1\n` ))
284
- Eventually (digSession ).Should (Say (`ns-ovh-sg.sslip.io..*51.79.178.89\n` ))
285
- Eventually (digSession ).Should (Say (`ns-ovh-sg.sslip.io..*2402:1f00:8001:d59::1\n` ))
286
290
Eventually (digSession , 1 ).Should (Exit (0 ))
287
291
// the server names may appear out-of-order
292
+ Eventually (string (digSession .Out .Contents ())).Should (MatchRegexp (`NS\tns-do-sg.sslip.io.\n` ))
293
+ Eventually (string (digSession .Out .Contents ())).Should (MatchRegexp (`NS\tns-gce.sslip.io.\n` ))
288
294
Eventually (string (digSession .Out .Contents ())).Should (MatchRegexp (`NS\tns-hetzner.sslip.io.\n` ))
289
295
Eventually (string (digSession .Out .Contents ())).Should (MatchRegexp (`NS\tns-ovh.sslip.io.\n` ))
290
- Eventually (string (digSession .Out .Contents ())).Should (MatchRegexp (`NS\tns-ovh-sg.sslip.io.\n` ))
291
- Eventually (string (serverSession .Err .Contents ())).Should (MatchRegexp (`TypeNS example.com. \? ns-hetzner.sslip.io., ns-ovh.sslip.io., ns-ovh-sg.sslip.io.\n` ))
296
+ Eventually (string (serverSession .Err .Contents ())).Should (MatchRegexp (`TypeNS example.com. \? ns-do-sg.sslip.io., ns-gce.sslip.io., ns-hetzner.sslip.io., ns-ovh.sslip.io.\n` ))
292
297
})
293
298
})
294
299
When (`there are multiple TXT records returned (e.g. SPF for sslip.io)` , func () {
@@ -410,8 +415,8 @@ var _ = Describe("sslip.io-dns-server", func() {
410
415
// use regex to account for rotated nameserver order
411
416
Entry ("an NS record with acme_challenge with a forbidden string is not delegated" ,
412
417
"@localhost _acme-challenge.raiffeisen.fe80--.sslip.io ns +short" ,
413
- `\Ans-[a-z-]+.sslip.io.\nns-[a-z-]+.sslip.io.\nns-[a-z-]+.sslip.io.\n\z` ,
414
- `TypeNS _acme-challenge.raiffeisen.fe80--.sslip.io. \? ns-hetzner .sslip.io., ns-ovh .sslip.io., ns-ovh-sg .sslip.io.\n$` ),
418
+ `\Ans-[a-z-]+.sslip.io.\nns-[a-z-]+.sslip.io.\nns-[a-z-]+.sslip.io.\nns-[a-z-]+.sslip.io.\ n\z` ,
419
+ `TypeNS _acme-challenge.raiffeisen.fe80--.sslip.io. \? ns-do-sg .sslip.io., ns-gce .sslip.io., ns-hetzner.sslip.io., ns-ovh .sslip.io.\n$` ),
415
420
Entry ("an A record with a forbidden CIDR is redirected" ,
416
421
"@localhost nf.43.134.66.67.sslip.io +short" ,
417
422
`\A52.0.56.137\n\z` ,
0 commit comments